Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
foo equ &C000
|
||||
bar equ &C001
|
||||
|
||||
ld (foo),bc ;store C into "foo" and B into "bar"
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue