ld bc, $4000 ; Load register pair BC with number $4000 out ($be),a ; Output to port number $be the number stored in register A dec bc ; Decrement register pair BC ld a,b ; Load register A with the number stored in register B or c ; Perform a logical OR operation between registers A and C jp nz,SomeLabel ; Jump, if the result is non-zero, to the address of SomeLabel