napisal arith.asm

This commit is contained in:
privsk 2025-10-22 10:08:05 +02:00
parent 31c132ee72
commit bda365abe0

32
ass1/arith.asm Normal file
View 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