RosettaCodeData/Task/Gotchas/Z80-Assembly/gotchas-2.z80
2023-07-01 13:44:08 -04:00

3 lines
115 B
Z80 Assembly

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.