Renamed vaja1 to ass1

This commit is contained in:
Timon 2025-10-26 15:17:13 +01:00
parent f74d0d09b8
commit 86af0d53f8
12 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,43 @@
a_rel START 0
program
. Sestejemo x in y
LDS x
LDT y
ADDR S, A
ADDR T, A
STA sum
. Odstejemo x in y
LDA S
SUBR T, A
STA diff
. Zmnozimo x in y
LDA S
MULR T, A
STA prod
. Zdelimo x in y
LDA S
DIVR T, A
STA quot
. Ostanek pri deljenju x z y
LDA quot
MULR T, A
SUBR A, S
STS mod
halt J halt
sum RESW 1
diff RESW 1
quot RESW 1
prod RESW 1
mod RESW 1
x WORD 20
y WORD 10
END program