napisal arithr.asm
This commit is contained in:
parent
efac46aa32
commit
5bc9d33952
1 changed files with 35 additions and 0 deletions
35
ass1/arithr.asm
Normal file
35
ass1/arithr.asm
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
arithr START 0
|
||||||
|
LDA x
|
||||||
|
LDB y
|
||||||
|
ADDR A, S
|
||||||
|
|
||||||
|
ADDR B, A
|
||||||
|
STA sum
|
||||||
|
SUBR B, A
|
||||||
|
|
||||||
|
SUBR B, A
|
||||||
|
STA diff
|
||||||
|
ADDR B, A
|
||||||
|
|
||||||
|
MULR B, A
|
||||||
|
STA prod
|
||||||
|
DIVR B, A
|
||||||
|
|
||||||
|
DIVR B, A
|
||||||
|
STA quot
|
||||||
|
MULR B, A
|
||||||
|
|
||||||
|
SUBR A, S
|
||||||
|
STS mod
|
||||||
|
|
||||||
|
halt J halt
|
||||||
|
|
||||||
|
. podatki
|
||||||
|
x WORD 17
|
||||||
|
y WORD 4
|
||||||
|
sum RESW 1
|
||||||
|
diff RESW 1
|
||||||
|
prod RESW 1
|
||||||
|
quot RESW 1
|
||||||
|
mod RESW 1
|
||||||
|
END arithr
|
||||||
Loading…
Add table
Add a link
Reference in a new issue