1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

This is the bare minimum to prove that the ROM is trying properly to boot.

This commit is contained in:
Thomas Harte 2016-01-07 20:36:27 -05:00
parent 0db8938d27
commit 8c1bfa5a05

View File

@ -23,8 +23,6 @@ Machine::~Machine()
unsigned int Machine::perform_bus_operation(CPU6502::BusOperation operation, uint16_t address, uint8_t *value)
{
printf("%04x\n", address);
if(address < 32768)
{
if(isReadOperation(operation))
@ -40,7 +38,43 @@ unsigned int Machine::perform_bus_operation(CPU6502::BusOperation operation, uin
{
if(address > 49152)
{
if(isReadOperation(operation)) *value = os[address - 49152];
if((address & 0xff00) == 0xfe00)
{
printf("%c: %02x: ", isReadOperation(operation) ? 'r' : 'w', *value);
switch(address&0xf)
{
case 0x0:
printf("Interrupt status or control\n");
break;
case 0x1:
break;
case 0x2:
case 0x3:
printf("Screen start address\n");
break;
case 0x4:
printf("Cassette\n");
break;
case 0x5:
printf("Interrupt clear and paging\n");
break;
case 0x6:
printf("Counter\n");
break;
case 0x7:
printf("Misc. control\n");
break;
default:
printf("Palette\n");
break;
}
}
else
{
if(isReadOperation(operation))
*value = os[address - 49152];
}
}
else
{