napisal arith.asm
This commit is contained in:
parent
31c132ee72
commit
bda365abe0
1 changed files with 32 additions and 0 deletions
32
ass1/arith.asm
Normal file
32
ass1/arith.asm
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
arithm 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 x
|
||||
DIV y
|
||||
MUL y
|
||||
STA temp
|
||||
LDA x
|
||||
SUB temp
|
||||
STA mod
|
||||
halt J halt
|
||||
|
||||
. podatki
|
||||
x WORD 17
|
||||
y WORD 4
|
||||
sum WORD 0
|
||||
diff WORD 0
|
||||
prod WORD 0
|
||||
quot WORD 0
|
||||
temp WORD 0
|
||||
mod WORD 0
|
||||
END arithm
|
||||
Loading…
Add table
Add a link
Reference in a new issue