SPO/SPO/arith.asm
2025-11-11 17:59:08 +01:00

35 lines
383 B
NASM

arith START 0
LDA x
LDB y
ADDR A, B
STB sum
LDB y
SUBR A, B
STB dif
LDB y
MULR A, B
STB mul
LDB y
DIVR A, B
STB div
LDA y
MULR A,B
LDA x
SUBR A, B
STB mod
halt J halt
.podatki
x WORD 42
y WORD 66
.res
sum RESW 1
mul RESW 1
mod RESW 1
div RESW 1
dif RESW 1