formatiral arith.asm
This commit is contained in:
parent
27d49a9f27
commit
efac46aa32
1 changed files with 24 additions and 19 deletions
|
|
@ -1,23 +1,28 @@
|
||||||
arithm START 0
|
arithm START 0
|
||||||
LDA x
|
LDA x
|
||||||
ADD y
|
ADD y
|
||||||
STA sum
|
STA sum
|
||||||
LDA x
|
|
||||||
SUB y
|
LDA x
|
||||||
STA diff
|
SUB y
|
||||||
LDA x
|
STA diff
|
||||||
MUL y
|
|
||||||
STA prod
|
LDA x
|
||||||
LDA x
|
MUL y
|
||||||
DIV y
|
STA prod
|
||||||
STA quot
|
|
||||||
LDA x
|
LDA x
|
||||||
DIV y
|
DIV y
|
||||||
MUL y
|
STA quot
|
||||||
STA temp
|
|
||||||
LDA x
|
LDA x
|
||||||
SUB temp
|
DIV y
|
||||||
STA mod
|
MUL y
|
||||||
|
STA temp
|
||||||
|
LDA x
|
||||||
|
SUB temp
|
||||||
|
STA mod
|
||||||
|
|
||||||
halt J halt
|
halt J halt
|
||||||
|
|
||||||
. podatki
|
. podatki
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue