Hi,
I'm trying to find the start of a second in assembler. For that I look at the RTC.
Now when I run my code it seems as if it looks at I/O port 0x00 instead of 0xb5. Does a IN A,(C) change the C-register as well?
ORG 0xc000 db 0x0FE dw start, endadr, start start: ; wait for counter to change; that'll be the start of a second ; select seconds low register DI LD C,0xb4 LD A,0x00 OUT (C),A LD C,0xb5 IN B,(C) startwait: IN A,(C) CP B JP Z, startwait EI RET endadr:
Login or register to post comments

