Fixed bug in return code

This commit is contained in:
MatCat 2021-04-09 02:11:29 -07:00
parent a76e01aca1
commit 6168e57ab1
2 changed files with 4 additions and 2 deletions

View File

@ -38,6 +38,7 @@ ROLLOVER: ADD D, $1
PHAB PHAB
JMP PRINTLOOP ; Loop back and keep reading in the string JMP PRINTLOOP ; Loop back and keep reading in the string
RETURN: PLAB ; To return we need to clean up our stack use first RETURN: PLAB ; To return we need to clean up our stack use first
PLA
PRTS PRTS
SECTION .data SECTION .data

View File

@ -48,8 +48,9 @@ cpu.RAM[0xEC] = 1;
cpu.RAM[0xED] = is_PHAB.Bytecode; cpu.RAM[0xED] = is_PHAB.Bytecode;
cpu.RAM[0xEE] = is_JMP_i.Bytecode; cpu.RAM[0xEE] = is_JMP_i.Bytecode;
cpu.RAM[0xEF] = v_printloop; cpu.RAM[0xEF] = v_printloop;
cpu.RAM[0xF0] = is_PLAB.Bytecode; // return cpu.RAM[0xF0] = is_PLAB.Bytecode;
cpu.RAM[0xF1] = is_PRTS.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); 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);