Hammer111
Junior Member level 3
Hi, I've been working on Z80 PIO
First bit must be input bit and rest output bits
this is my code:
What I get on output is 10001000 regardless if I set first input bit to 1 or 0.
**broken link removed**
What am I doing wrong?
First bit must be input bit and rest output bits
this is my code:
Code:
org 0000h
ld a,11001111b <-- selecting mode
out (12h),a
ld a,10000000b <-- selecting first bit as input
out (12h),a
ld a,0001000b
out (10h),a <-- setting output to 0001000
ld a,0
halt
What I get on output is 10001000 regardless if I set first input bit to 1 or 0.
**broken link removed**
What am I doing wrong?