Page 5 of 5

Re: [P] MECB Z80 CPU Card

Posted: Tue Apr 21, 2026 11:07 am
by epaell
Thanks David.

Hmm, interesting, that is actually the one I based my design on as it seemed like it was what RomWBW was expecting (though I changed the I/O ports to $90 and $91 and used a PLD just to simplify the addressing and to avoid wasting port addresses). Maybe I'll try to shift them to $60/$64 to see if it works - I may need to make some slight modification to allow that. Strangely, when I reset the keyboard controller manually (by writing the reset command to the command port) I see the correct response on its data port. I thought that was all that was needed for RomWBW to recognise that the PS/2 device was available but clearly something is still not right. Just a follow-up question ... you mentioned previously that you made a change to tms was it to add something like the following (in my case I had the same as below but with $90 and $91 instead of $60 and $64):

Code: Select all

#IF (TMSMODE == TMSMODE_MECB)
TMS_DATREG	.EQU	$80		; READ/WRITE DATA
TMS_CMDREG	.EQU	$81		; READ STATUS / WRITE REG SEL
TMS_KBDDATA	.EQU	$60		; KBD CTLR DATA PORT
TMS_KBDST	.EQU	$64		; KBD CTLR STATUS/CMD PORT
TMSKBD          .EQU    TMSKBD_KBD
		DEVECHO	"MECB"
#ENDIF