Vaja2 osnove v1

This commit is contained in:
aljazbrodar. 2025-10-23 18:44:59 +02:00
parent d3a493a7fd
commit 480e0e84ce
12 changed files with 277 additions and 0 deletions

33
vaja2/osnove/arith.asm Normal file
View file

@ -0,0 +1,33 @@
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