Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Gotchas/Z80-Assembly/gotchas-1.z80
Normal file
5
Task/Gotchas/Z80-Assembly/gotchas-1.z80
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
LD HL,(&C000) ;load the word at address &C000 into HL
|
||||
LD A,(HL) ;treating the value in HL as a memory address, load the byte at that address into A.
|
||||
EX (SP),HL ;exchange HL with the top two bytes of the stack.
|
||||
|
||||
JP (HL) ;set the program counter equal to HL. Nothing is loaded from memory pointed to by HL.
|
||||
3
Task/Gotchas/Z80-Assembly/gotchas-2.z80
Normal file
3
Task/Gotchas/Z80-Assembly/gotchas-2.z80
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ld a,&46
|
||||
ld bc,&0734
|
||||
out (C),a ;write &46 to port &0734 if the ports are 16-bit. Otherwise, it writes to port &34.
|
||||
2
Task/Gotchas/Z80-Assembly/gotchas-3.z80
Normal file
2
Task/Gotchas/Z80-Assembly/gotchas-3.z80
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
EI ;RETI doesn't enable interrupts on this Z80.
|
||||
RET
|
||||
Loading…
Add table
Add a link
Reference in a new issue