1 |
2 |
MichaelA |
AS65 Assembler for R6502 [1.42]. Copyright 1994-2007, Frank A. Kingswood Page 1
|
2 |
|
|
--------------------------------------------------------- m65c02_tst5.a65 ---------------------------------------------------------
|
3 |
|
|
|
4 |
|
|
---------------------------------------------------------- Symbol Table -----------------------------------------------------------
|
5 |
|
|
|
6 |
|
|
Symbol Value Decimal
|
7 |
|
|
|
8 |
|
|
BROM_Start : $f800 63488
|
9 |
|
|
Delay_Loop : $f807 63495
|
10 |
|
|
Delay_Lp1 : $f80b 63499
|
11 |
|
|
Delay_Lp2 : $f80f 63503
|
12 |
|
|
Last_Addrs : $f820 63520
|
13 |
|
|
SPI_CR : $f7ff 63487
|
14 |
|
|
Start : $f800 63488
|
15 |
|
|
ZP_Cntr_Hi : $00ff 255
|
16 |
|
|
ZP_Cntr_Lo : $00fe 254
|
17 |
|
|
ZP_LED_Cntr : $00fd 253
|
18 |
|
|
__65SC02__ : $0001 1
|
19 |
|
|
|
20 |
|
|
11 labels used
|
21 |
|
|
|
22 |
|
|
59 lines read, no errors in pass 1.
|
23 |
|
|
AS65 Assembler for R6502 [1.42]. Copyright 1994-2007, Frank A. Kingswood Page 2
|
24 |
|
|
--------------------------------------------------------- m65c02_tst5.a65 ---------------------------------------------------------
|
25 |
|
|
|
26 |
|
|
f800 = BROM_Start equ $F800
|
27 |
|
|
|
28 |
|
|
f7ff = SPI_CR equ $F7FF
|
29 |
|
|
|
30 |
|
|
00fd = ZP_LED_Cntr equ $00FD
|
31 |
|
|
00fe = ZP_Cntr_Lo equ $00FE
|
32 |
|
|
00ff = ZP_Cntr_Hi equ $00FF
|
33 |
|
|
|
34 |
|
|
bss
|
35 |
|
|
;;
|
36 |
|
|
0000 = Zero_Page: org $0000
|
37 |
|
|
;;
|
38 |
|
|
0100 = Stack_Page: org $0100
|
39 |
|
|
;;
|
40 |
|
|
0200 = RAM_Start: org $0200
|
41 |
|
|
;;
|
42 |
|
|
code
|
43 |
|
|
f800 = org BROM_Start
|
44 |
|
|
;;
|
45 |
|
|
f800 : a900 [ 2] Start: lda #$00 ;; load initial value to control register
|
46 |
|
|
f802 : 85fd [ 3] sta ZP_LED_Cntr
|
47 |
|
|
f804 : 8dfff7 [ 4] sta SPI_CR ;; update LEDs
|
48 |
|
|
;;
|
49 |
|
|
f807 : a004 [ 2] Delay_Loop: ldy #$04 ;; load outer delay loop counter
|
50 |
|
|
f809 : 84ff [ 3] sty ZP_Cntr_Hi
|
51 |
|
|
;;
|
52 |
|
|
f80b : a200 [ 2] Delay_Lp1: ldx #$00 ;; load inner delay loop counter
|
53 |
|
|
f80d : 86fe [ 3] stx ZP_Cntr_Lo
|
54 |
|
|
;;
|
55 |
|
|
;Delay_Lp2: dex ;; decrement inner loop counter
|
56 |
|
|
f80f : c6fe [ 5] Delay_Lp2: dec ZP_Cntr_Lo ;; decrement inner loop counter
|
57 |
|
|
f811 : d0fc [ 3] bne Delay_Lp2 ;; loop until inner loop counter is zero
|
58 |
|
|
;;
|
59 |
|
|
; dey ;; decrement external loop counter
|
60 |
|
|
f813 : c6ff [ 5] dec ZP_Cntr_Hi
|
61 |
|
|
f815 : d0f4 [ 3] bne Delay_Lp1 ;; loop until outer loop counter is zero
|
62 |
|
|
;;
|
63 |
|
|
; dec a ;; decrement accumulator
|
64 |
|
|
f817 : c6fd [ 5] dec ZP_LED_Cntr
|
65 |
|
|
f819 : a5fd [ 3] lda ZP_LED_Cntr
|
66 |
|
|
f81b : 8dfff7 [ 4] sta SPI_CR ;; update LEDs
|
67 |
|
|
|
68 |
|
|
f81e : 80e7 [ 3] bra Delay_Loop ;; Loop Continously
|
69 |
|
|
;;
|
70 |
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
71 |
|
|
;;
|
72 |
|
|
f820 : Last_Addrs:
|
73 |
|
|
;;
|
74 |
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
75 |
|
|
;;
|
76 |
|
|
;; Vector Table
|
77 |
|
|
;;
|
78 |
|
|
fffa = Vect_Table: org $FFFA
|
79 |
|
|
;;
|
80 |
|
|
fffa : 00f8 dw Start ;; NMI Interrupt Vector
|
81 |
|
|
AS65 Assembler for R6502 [1.42]. Copyright 1994-2007, Frank A. Kingswood Page 3
|
82 |
|
|
--------------------------------------------------------- m65c02_tst5.a65 ---------------------------------------------------------
|
83 |
|
|
|
84 |
|
|
fffc : 00f8 dw Start ;; Reset Vector
|
85 |
|
|
fffe : 00f8 dw Start ;; IRQ/BRK Interrupt Vector
|
86 |
|
|
;;
|
87 |
|
|
fffa = end Start
|
88 |
|
|
|
89 |
|
|
No errors in pass 2.
|
90 |
|
|
Wrote binary from address $f800 through $ffff.
|
91 |
|
|
Total size 2048 bytes.
|
92 |
|
|
Program start address is at $f800 (63488).
|
93 |
|
|
|