Code: Select all
;16-bit Accumulator
A16 MACRO
ON16A ; jwdonal - this does nothing as far as I can tell.
; It is not a macro and it doesn't cause any code to be generated.
ReP #20h
ENDM
;8-bit Accumulator
A8 MACRO
OFF16A ; jwdonal - this does nothing as far as I can tell.
; It is not a macro and it doesn't cause any code to be generated.
SeP #20h
ENDM
.................<snip>.....................
;==============
;Transfer SPC700 program
;Wait for SPC700 to initialize -------------
A16
Init:
LdA #0BBAAh
_Wait:
Cmp 2140h
BNE _Wait
;Initialize transfer -----------------------
LdA #02h ;Store destination address
StA 2142h
LdA #1CCh ;Tell SPC700 we're ready to start
Trans:
StA 2140h
A8
_Wait:
Cmp 2140h
BNE _Wait