added M records
This commit is contained in:
parent
e0ce2fb3d0
commit
a711223abf
11 changed files with 297 additions and 20 deletions
32
simulator_SIC_XE/res/simple.asm
Normal file
32
simulator_SIC_XE/res/simple.asm
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
SIMPLE START 0
|
||||
|
||||
+LDA NUM1
|
||||
+ADD NUM2
|
||||
+STA RESULT
|
||||
|
||||
LDX NUM1
|
||||
LDL NUM2
|
||||
|
||||
LDA #0
|
||||
ADDR X,A
|
||||
ADDR L,A
|
||||
|
||||
+LDA RESULT
|
||||
ADD #48
|
||||
RMO A,S
|
||||
SHIFTL S,16
|
||||
SHIFTR S,16
|
||||
RMO S,A
|
||||
STCH RESULT
|
||||
LDCH RESULT
|
||||
WD OUTPUT
|
||||
|
||||
HALT J HALT
|
||||
|
||||
OUTPUT BYTE 1
|
||||
|
||||
NUM1 WORD 1
|
||||
NUM2 WORD 2
|
||||
RESULT RESW 1
|
||||
|
||||
END SIMPLE
|
||||
11
simulator_SIC_XE/res/test_format4.asm
Normal file
11
simulator_SIC_XE/res/test_format4.asm
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
TESTF4 START 1000
|
||||
+LDA BUFFER
|
||||
+STA OUTPUT
|
||||
+JSUB FUNC
|
||||
RSUB
|
||||
|
||||
BUFFER RESW 1
|
||||
OUTPUT RESW 1
|
||||
FUNC LDA #0
|
||||
RSUB
|
||||
END TESTF4
|
||||
Loading…
Add table
Add a link
Reference in a new issue