diff --git a/OPD/OPDLab5/main.asm b/OPD/OPDLab5/main.asm new file mode 100644 index 0000000..1b6dcf4 --- /dev/null +++ b/OPD/OPDLab5/main.asm @@ -0,0 +1,31 @@ +org 0x05D6 +start: cla +A: in 5 +and #0x40 +beq A +in 4 +swab +st x +cmp stopsym +beq stop +B: in 5 +and #0x40 +beq B +in 4 +or x +st x +and #0xFF +cmp stopsym +beq stop +ld x +st (next)+ +jump start +stop: ld x +st (next)+ +hlt +next: word $line +stopsym: word 0x0000 +x: word 0x0000 + +org 0x0603 +line: word ? \ No newline at end of file diff --git a/OPD/OPDLab5/report.pdf b/OPD/OPDLab5/report.pdf new file mode 100644 index 0000000..febb471 Binary files /dev/null and b/OPD/OPDLab5/report.pdf differ