diff --git a/ass1/arith.asm b/ass1/arith.asm new file mode 100644 index 0000000..1cf912d --- /dev/null +++ b/ass1/arith.asm @@ -0,0 +1,32 @@ +arithm START 0 + LDA x + ADD y + STA sum + LDA x + SUB y + STA diff + LDA x + MUL y + STA prod + LDA x + DIV y + STA quot + LDA x + DIV y + MUL y + STA temp + LDA x + SUB temp + STA mod +halt J halt + +. podatki +x WORD 17 +y WORD 4 +sum WORD 0 +diff WORD 0 +prod WORD 0 +quot WORD 0 +temp WORD 0 +mod WORD 0 + END arithm \ No newline at end of file