From bda365abe0f91b296c7fcbc857fb42978f4d3ff7 Mon Sep 17 00:00:00 2001 From: privsk Date: Wed, 22 Oct 2025 10:08:05 +0200 Subject: [PATCH] napisal arith.asm --- ass1/arith.asm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 ass1/arith.asm 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