working on sicxe

This commit is contained in:
Jaka Furlan 2025-11-29 16:12:58 +01:00
parent 1b990e190c
commit d836b3955d
79 changed files with 2011 additions and 917 deletions

View file

@ -1,44 +1,44 @@
arith START 0
start LDA x
ADD y
STA sum .shrani vsoto
LDA x
SUB y
STA diff .shrani razliko
LDA x
MUL y
STA prod .sharni produkt
LDA x
DIV y
STA quot .shrani kvocient
LDA y
MUL quot
STA z
LDA x
SUB z
STA mod .shrani modulo
halt J halt
END start
.podatki
x WORD 20
y WORD 3
.rezultati
sum RESW 1
diff RESW 1
prod RESW 1
quot RESW 1
mod RESW 1
.za modulo
z RESW 1
arith START 0
start LDA x
ADD y
STA sum .shrani vsoto
LDA x
SUB y
STA diff .shrani razliko
LDA x
MUL y
STA prod .sharni produkt
LDA x
DIV y
STA quot .shrani kvocient
LDA y
MUL quot
STA z
LDA x
SUB z
STA mod .shrani modulo
halt J halt
END start
.podatki
x WORD 20
y WORD 3
.rezultati
sum RESW 1
diff RESW 1
prod RESW 1
quot RESW 1
mod RESW 1
.za modulo
z RESW 1