Guys, I'm porting the TLCS90x841 processor (src/emu/cpu/tlcs90/tlcs90.* in mame) to FBAlpha, and need some assistance.
I got it to compile without any issues, but I don't know how to hook up the internal registers_r and _w.
At the top of tlcs90.c, theres an address map:
static ADDRESS_MAP_START(tmp90841_mem, AS_PROGRAM, 8, tlcs90_device)
// AM_RANGE( 0x0000, 0x1fff ) AM_ROM // rom-less
AM_RANGE( 0xfec0, 0xffc0 ) AM_RAM // 256b RAM (internal)
AM_RANGE( T90_IOBASE, T90_IOBASE+47 ) AM_READWRITE( t90_internal_registers_r, t90_internal_registers_w )
ADDRESS_MAP_END
then later in the source, there's
READ8_MEMBER( tlcs90_device::t90_internal_registers_r )
and WRITE8_MEMBER( tlcs90_device::t90_internal_registers_w )
How do I hook that up? It doesn't seem to be called anywhere within the cpu core itself. I don't understand how the cpu actually reads or writes IO..
But what confuses me is that its an internal handler, therefore, maybe it should be called from somewhere in tlcs90.c instead of my port handler?
I would appreciate if you could take a look at this particular cpu core and give me a hand
Who knows, I could get good at this...
best regards,
- dink
[tlcs90.cpp is what I have so far, tlcs90.orig.c is the original one from mame]
I need to sort out the timers, io handlers and a few other things, but it compiles...