added to aas3
This commit is contained in:
parent
527d2e7346
commit
9ac28aa798
48 changed files with 7134 additions and 0 deletions
32
ass3/simulator_SIC_XE/res/simple.asm
Normal file
32
ass3/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue