Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,5 @@
foo equ &C000
bar equ &C001
ld (foo),a ;store A into memory location &C000
ld a,b ;copy B to A
ld (bar),a ;store "B" into memory location &C001

View file

@ -0,0 +1,8 @@
foo equ &C000
bar equ &C001
ld bc,foo ;notice the lack of parentheses here. This is important.
ld (bc),a
ld de,bar
ld (de),a

View file

@ -0,0 +1,9 @@
foo equ &C000
bar equ &C001
ld hl,foo
ld (hl),b ;store the contents of B into foo
;since bar just happens to equal foo+1, we can do this:
inc hl
ld (hl),c ;store the contents of C into bar

View file

@ -0,0 +1,4 @@
foo equ &C000
bar equ &C001
ld (foo),bc ;store C into "foo" and B into "bar"

View file

@ -0,0 +1,5 @@
foo equ &C000
bar equ &C001
ld (foo),de ;store E into &C000 and D into &C001
ld (bar),bc ;store C into &C001 and B into &C002