From d0ac5dc77d04a6cd1368193a7b8a8fe56903c6b6 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Tue, 21 Mar 2023 18:34:35 +0100 Subject: [PATCH] Add more test programs --- .../add_and_jump.cpu8_v1 | 2 +- .../add_and_jump.lasm8_v1 | 0 programs/input_output.cpu8_v1 | 17 +++++++++++++++++ programs/input_output.lasm8_v1 | 5 +++++ programs/nop_and_jump.cpu8_v1 | 17 +++++++++++++++++ programs/nop_and_jump.lasm8_v1 | 4 ++++ 6 files changed, 44 insertions(+), 1 deletion(-) rename add_and_jump.cpu8 => programs/add_and_jump.cpu8_v1 (93%) rename add_and_jump.lasm8 => programs/add_and_jump.lasm8_v1 (100%) create mode 100644 programs/input_output.cpu8_v1 create mode 100644 programs/input_output.lasm8_v1 create mode 100644 programs/nop_and_jump.cpu8_v1 create mode 100644 programs/nop_and_jump.lasm8_v1 diff --git a/add_and_jump.cpu8 b/programs/add_and_jump.cpu8_v1 similarity index 93% rename from add_and_jump.cpu8 rename to programs/add_and_jump.cpu8_v1 index 16ffe73..5e769cf 100644 --- a/add_and_jump.cpu8 +++ b/programs/add_and_jump.cpu8_v1 @@ -1,5 +1,5 @@ v3.0 hex words addressed -00: 05 81 0a 82 44 99 0f 82 45 00 80 c1 00 00 00 00 +00: 05 81 0a 82 44 99 0f 82 45 00 c1 00 00 00 00 00 10: 00 00 00 00 00 00 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 diff --git a/add_and_jump.lasm8 b/programs/add_and_jump.lasm8_v1 similarity index 100% rename from add_and_jump.lasm8 rename to programs/add_and_jump.lasm8_v1 diff --git a/programs/input_output.cpu8_v1 b/programs/input_output.cpu8_v1 new file mode 100644 index 0000000..fb0512d --- /dev/null +++ b/programs/input_output.cpu8_v1 @@ -0,0 +1,17 @@ +v3.0 hex words addressed +00: b1 0a 82 44 9e 00 00 00 00 00 00 00 00 00 00 00 +10: 00 00 00 00 00 00 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/input_output.lasm8_v1 b/programs/input_output.lasm8_v1 new file mode 100644 index 0000000..2f1c01d --- /dev/null +++ b/programs/input_output.lasm8_v1 @@ -0,0 +1,5 @@ +# Add 10 to the input number, then output the result +MOV input, reg1 +MOV 10, reg2 +ADD +MOV reg3, output \ No newline at end of file diff --git a/programs/nop_and_jump.cpu8_v1 b/programs/nop_and_jump.cpu8_v1 new file mode 100644 index 0000000..59ceb00 --- /dev/null +++ b/programs/nop_and_jump.cpu8_v1 @@ -0,0 +1,17 @@ +v3.0 hex words addressed +00: c0 00 c4 00 00 00 00 00 00 00 00 00 00 00 00 00 +10: 00 00 00 00 00 00 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/nop_and_jump.lasm8_v1 b/programs/nop_and_jump.lasm8_v1 new file mode 100644 index 0000000..9dbc767 --- /dev/null +++ b/programs/nop_and_jump.lasm8_v1 @@ -0,0 +1,4 @@ +# Endless NOP loop +NOP +MOV 0, reg0 +JMP \ No newline at end of file