STx instructions mostly done
This commit is contained in:
parent
91c53ef074
commit
95ee08a318
@ -13,7 +13,7 @@
|
||||
SECTION .text
|
||||
START: LDAB MYSTRING ; Put string address into AB
|
||||
PHAB ; and push to the stack
|
||||
PJSR PRINTSTRING ; Call PRINTSTRING routine
|
||||
JSR PRINTSTRING ; Call PRINTSTRING routine
|
||||
|
||||
SECTION .printstring
|
||||
PRINTSTRING: PLAB
|
||||
@ -39,7 +39,7 @@ ROLLOVER: ADD D, $1
|
||||
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
|
||||
RTS
|
||||
|
||||
SECTION .data
|
||||
DISPLAY equ D00000h
|
||||
|
1513
js/isa/stx.js
1513
js/isa/stx.js
File diff suppressed because it is too large
Load Diff
@ -225,3 +225,4 @@ class IS_TDC extends Microcode_Instruction {
|
||||
|
||||
is_TDC = new IS_TDC;
|
||||
Instructions.push(is_TDC);
|
||||
|
||||
|
@ -28,7 +28,7 @@ cpu.RAM[0xD9] = is_LDAB_cda.Bytecode; // printloop
|
||||
cpu.RAM[0xDA] = is_CMP.Bytecode;
|
||||
cpu.RAM[0xDB] = is_BEQ_i.Bytecode;
|
||||
cpu.RAM[0xDC] = v_return;
|
||||
cpu.RAM[0xDD] = is_STAL_spin.Bytecode;
|
||||
cpu.RAM[0xDD] = is_STAL_spa24.Bytecode;
|
||||
cpu.RAM[0xDE] = is_ADD_gpci.Bytecode
|
||||
cpu.RAM[0xDF] = 1;
|
||||
cpu.RAM[0xE0] = is_BCS_i.Bytecode;
|
||||
|
Loading…
Reference in New Issue
Block a user