This commit is contained in:
Timon 2025-12-10 18:28:54 +01:00
parent 705c7bcb58
commit d50c62106e
14 changed files with 344 additions and 156 deletions

View file

@ -7,28 +7,29 @@ program
ADDR S, A
ADDR T, A
STA sum
WD #1
. Odstejemo x in y
LDA S
LDA x
SUBR T, A
STA diff
WD #1
. Zmnozimo x in y
LDA S
LDA x
MULR T, A
STA prod
WD #1
. Zdelimo x in y
LDA S
LDA x
DIVR T, A
STA quot
WD #1
. Ostanek pri deljenju x z y
LDA quot
MULR T, A
SUBR A, S
STS mod
#WD 1
halt J halt
sum RESW 1
@ -37,7 +38,7 @@ quot RESW 1
prod RESW 1
mod RESW 1
x WORD 20
y WORD 10
x WORD 15
y WORD 5
END program