diff --git a/examples/printstring.asm b/examples/printstring.asm index f3e41db..5c6a467 100644 --- a/examples/printstring.asm +++ b/examples/printstring.asm @@ -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 diff --git a/js/main.js b/js/main.js index 0f3dcc3..4e08aa4 100644 --- a/js/main.js +++ b/js/main.js @@ -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);