mirror of
https://github.com/trebonian/visual6502.git
synced 2024-12-21 21:29:16 +00:00
Extended test program to test simple memory writes
This commit is contained in:
parent
3315f309a7
commit
8a9fe6f57e
@ -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(){
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user