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**