diff --git a/ass1/arithr.asm b/ass1/arithr.asm new file mode 100644 index 0000000..e00f7c9 --- /dev/null +++ b/ass1/arithr.asm @@ -0,0 +1,35 @@ +arithr START 0 + LDA x + LDB y + ADDR A, S + + ADDR B, A + STA sum + SUBR B, A + + SUBR B, A + STA diff + ADDR B, A + + MULR B, A + STA prod + DIVR B, A + + DIVR B, A + STA quot + MULR B, A + + SUBR A, S + STS mod + +halt J halt + +. podatki +x WORD 17 +y WORD 4 +sum RESW 1 +diff RESW 1 +prod RESW 1 +quot RESW 1 +mod RESW 1 + END arithr \ No newline at end of file