repo update
This commit is contained in:
parent
5591686517
commit
c56b6c92db
25 changed files with 194 additions and 252 deletions
32
ass3/zbirnik/input.asm
Normal file
32
ass3/zbirnik/input.asm
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
arith START 0
|
||||
+LDA x
|
||||
ADD y
|
||||
STA sum
|
||||
LDA x
|
||||
SUB y
|
||||
STA diff
|
||||
|
||||
LDA x
|
||||
MUL y
|
||||
STA prod
|
||||
|
||||
LDA x
|
||||
DIV y
|
||||
STA quot
|
||||
|
||||
LDA y
|
||||
MUL quot
|
||||
STA mod
|
||||
LDA x
|
||||
SUB mod
|
||||
STA mod
|
||||
HALT J HALT
|
||||
END arith
|
||||
|
||||
x WORD 11
|
||||
y WORD 5
|
||||
sum RESW 1
|
||||
diff RESW 1
|
||||
prod RESW 1
|
||||
quot RESW 1
|
||||
mod RESW 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue