ST2202A
19.4 Example Program 2:
Thisꢀprogramꢀmovesꢀdataꢀinꢀaddressꢀ$1080~$12FFꢀtoꢀ$1000~$127F.ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
LDAꢀ
STAꢀ
LDAꢀ
STAꢀ
STAꢀ
STZꢀ
LDAꢀ
STAꢀ
LDAꢀ
STAꢀ
ꢀ ꢀ ꢀ :ꢀ
ꢀ ꢀ ꢀ :ꢀ
#$80ꢀ
<DMSLꢀ
#$10ꢀ
<DMSHꢀꢀ
<DMDHꢀ
<DMDLꢀꢀ
#$02ꢀ
<DCNTHꢀ
#$7Fꢀ
;;ꢀsourceꢀ=ꢀ$1080ꢀ
;;ꢀdestinationꢀ=ꢀ$1000ꢀ
<DCNTLꢀ
ꢀ
;;ꢀmoveꢀ$280ꢀbytesꢀ
19.5 Application Program 3:
Thisꢀprogramꢀmovesꢀdataꢀinꢀaddressꢀ$8000~$803Fꢀoneꢀsingleꢀportꢀatꢀ$0200.ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
STZꢀ
LDAꢀ
STAꢀ
STZꢀ
LDAꢀ
STAꢀ
LDAꢀ
STAꢀ
LDAꢀ
STAꢀ
ꢀ ꢀ ꢀ :ꢀ
ꢀ ꢀ ꢀ :ꢀ
<DMSLꢀ
#$80ꢀ
<DMSHꢀꢀ
<DMDLꢀ
#$02ꢀ
<DMDHꢀꢀ
#$10ꢀ
<DCNTHꢀ
#$3Fꢀ
;;ꢀsourceꢀ=ꢀ$8000ꢀ
;;ꢀdestinationꢀ=ꢀ$0200ꢀ
<DCNTLꢀ
ꢀ
;;ꢀmoveꢀ$40ꢀbytesꢀ
Verꢀ2.5ꢀ
59
/75
ꢀ
9/16/2008ꢀ