Fixed bug in return code
This commit is contained in:
parent
a76e01aca1
commit
6168e57ab1
@ -38,6 +38,7 @@ ROLLOVER: ADD D, $1
|
||||
PHAB
|
||||
JMP PRINTLOOP ; Loop back and keep reading in the string
|
||||
RETURN: PLAB ; To return we need to clean up our stack use first
|
||||
PLA
|
||||
PRTS
|
||||
|
||||
SECTION .data
|
||||
|
@ -48,8 +48,9 @@ cpu.RAM[0xEC] = 1;
|
||||
cpu.RAM[0xED] = is_PHAB.Bytecode;
|
||||
cpu.RAM[0xEE] = is_JMP_i.Bytecode;
|
||||
cpu.RAM[0xEF] = v_printloop;
|
||||
cpu.RAM[0xF0] = is_PLAB.Bytecode; // return
|
||||
cpu.RAM[0xF1] = is_PRTS.Bytecode;
|
||||
cpu.RAM[0xF0] = is_PLAB.Bytecode;
|
||||
cpu.RAM[0xF1] = is_PLA.Bytecode; // return
|
||||
cpu.RAM[0xF2] = is_PRTS.Bytecode;
|
||||
|
||||
|
||||
stringToRAM("Welcome to the MatCat 8SA1 Computer Simulator!\n\nThis is a full hardware simulation of the computer to allow for easy development testing. It is currently a heavy work in progress as it is very early alpha, so check back often for new features!\n\n\nThis demo can be seen in the examples folder on the git page at: \nhttps://mygit.space/MatCat.OpenSource/8SA1Sim",cpu.RAM,0x100);
|
||||
|
Loading…
Reference in New Issue
Block a user