Extended test program to test simple memory writes

This commit is contained in:
David Banks 2018-09-19 15:07:27 +01:00
parent 3315f309a7
commit 8a9fe6f57e
2 changed files with 7 additions and 2 deletions

View File

@ -47,9 +47,9 @@ function halfStep(){
eval(clockTriggers[cycle]);
if (clk) {setLow('clk'); }
else {setHigh('clk'); }
// DMB: It's almost certainly wrong to execute the on both clock edges
// DMB: It's almost certainly wrong to execute these on both clock edges
handleBusRead();
handleBusWrite;
handleBusWrite();
}
function goUntilSyncOrWrite(){

View File

@ -16,6 +16,11 @@ readTriggers[0x8000]="var c=consolegetc; consolegetc=undefined; (c)";
testprogram = [
0xD9, // EXX
0x21, 0x00, 0x01, // LD HL,$0100
0x36, 0xCC, // LD (HL),$CC
0x00, // NOP
0x7E, // LD A, (HL)
0x00, // NOP
0x21, 0x34, 0x12, // LD HL,$1234
0x31, 0xfe, 0xdc, // LD SP,0xDCFE
0xe5, // PUSH HL