Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Variables/Z80-Assembly/variables-1.z80
Normal file
7
Task/Variables/Z80-Assembly/variables-1.z80
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
UserRam equ &C000
|
||||
|
||||
ld a,&50 ;load hexadecimal 50 into A
|
||||
ld (UserRam),a ;initialize UserRam with a value of &50
|
||||
|
||||
ld a,&40 ;load hexadecimal 40 into A
|
||||
ld (UserRam),a ;assign UserRam a new value of &40
|
||||
2
Task/Variables/Z80-Assembly/variables-2.z80
Normal file
2
Task/Variables/Z80-Assembly/variables-2.z80
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
byte &EF,&BE
|
||||
word &BEEF
|
||||
12
Task/Variables/Z80-Assembly/variables-3.z80
Normal file
12
Task/Variables/Z80-Assembly/variables-3.z80
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
org &8000
|
||||
|
||||
ld hl,TestData ;H = &90, L = &00
|
||||
|
||||
ld hl,(TestData) ;H = &BE, L = &EF
|
||||
|
||||
;In a real program you would need something here to stop the program counter from executing the data below as instructions.
|
||||
;For simplicity this was left out.
|
||||
|
||||
org &9000
|
||||
TestData:
|
||||
byte &EF,&BE
|
||||
Loading…
Add table
Add a link
Reference in a new issue