RosettaCodeData/Task/Assertions/Z80-Assembly/assertions.z80

4 lines
138 B
Z80 Assembly

ld a,(&C005) ;load A from memory (this is an arbitrary memory location designated as the home of our variable)
cp 42
jp nz,ErrorHandler