From d9b615b29b00015aa3c24bbcda17219d2495869b Mon Sep 17 00:00:00 2001 From: ChUrl Date: Tue, 21 Mar 2023 19:41:58 +0100 Subject: [PATCH] Add example program outputting 0-9 in ASCII --- programs/counting.cpu8_v1 | 17 +++++++++++++++++ programs/counting.lasm8_v1 | 13 +++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 programs/counting.cpu8_v1 create mode 100644 programs/counting.lasm8_v1 diff --git a/programs/counting.cpu8_v1 b/programs/counting.cpu8_v1 new file mode 100644 index 0000000..ff1610b --- /dev/null +++ b/programs/counting.cpu8_v1 @@ -0,0 +1,17 @@ +v3.0 hex words addressed +00: 30 86 31 86 32 86 33 86 34 86 35 86 36 86 37 86 +10: 38 86 39 86 00 c4 00 00 00 00 00 00 00 00 00 00 +20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \ No newline at end of file diff --git a/programs/counting.lasm8_v1 b/programs/counting.lasm8_v1 new file mode 100644 index 0000000..7f9254d --- /dev/null +++ b/programs/counting.lasm8_v1 @@ -0,0 +1,13 @@ +# Write "0123456789..." in ASCII to the output +MOV 48, output +MOV 49, output +MOV 50, output +MOV 51, output +MOV 52, output +MOV 53, output +MOV 54, output +MOV 55, output +MOV 56, output +MOV 57, output +MOV 0, reg0 +JMP \ No newline at end of file