RetroNewbie
Experienced Member
Yeah that's really nice, the fact that you can address I/O as memory is really good too. That's interesting, I dont have any machine with a 6800 yet.The nice thing about the PDP-11 instruction set is that you can generally operate on any register just the same as any other register. The Z80 has a lot of 'special register instructions'.
I cut my teeth on a 6800 then a Z80 then a PDP-11.
Let's progress slowly, but surely.
Try your echo program with bpl and see ifvthat still works first.
Dave
I changed all the beq to bpl and it still works fine. Took me a while to understand why it's a better solution but now I get it.
Code:
addr =176500
.ASECT
.=1000
clr r0
mov #addr,r1
LOOP:
checkRCX:
TSTB (r1)
bpl checkRCX
movb 02(r1),r2
waitTxReady:
TSTB 04(r1)
bpl waitTxReady
movb r2,06(r1)
br LOOP