Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
2
Task/Null-object/Z80-Assembly/null-object-1.z80
Normal file
2
Task/Null-object/Z80-Assembly/null-object-1.z80
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ld a,(&0000) ;dereference the null pointer as a uint8
|
||||
ld hl,(&0000) ;dereference the null pointer as a uint16
|
||||
9
Task/Null-object/Z80-Assembly/null-object-2.z80
Normal file
9
Task/Null-object/Z80-Assembly/null-object-2.z80
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
LD HL,myPointers
|
||||
;there is no LD BC,(HL) so we have to do this:
|
||||
LD c,(hl)
|
||||
inc hl
|
||||
LD b,(hl)
|
||||
;and compare to null
|
||||
LD a,b
|
||||
or c ;compare BC to zero
|
||||
JR z,isNull
|
||||
Loading…
Add table
Add a link
Reference in a new issue