Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
22
Task/Scope-modifiers/6502-Assembly/scope-modifiers.6502
Normal file
22
Task/Scope-modifiers/6502-Assembly/scope-modifiers.6502
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
macro LDIR,source,dest,count
|
||||
;LoaD, Increment, Repeat
|
||||
lda #<source
|
||||
sta $00
|
||||
lda #>source
|
||||
sta $01
|
||||
|
||||
lda #<dest
|
||||
sta $02
|
||||
lda #>dest
|
||||
sta $03
|
||||
|
||||
ldx count
|
||||
ldy #0
|
||||
\@: ;this is a local label
|
||||
|
||||
lda ($00),y ;load a byte from the source address
|
||||
sta ($02),y ;store in destination address
|
||||
iny ;increment
|
||||
dex
|
||||
bne \@ ;repeat until x=0
|
||||
endm
|
||||
Loading…
Add table
Add a link
Reference in a new issue