From 6613ecdc5a24f18aec0190697604f2292ef48fb8 Mon Sep 17 00:00:00 2001 From: Andy Killorin <37423245+Speedy6451@users.noreply.github.com> Date: Wed, 19 Jan 2022 08:39:51 -0600 Subject: [PATCH] initial commit added 'hello world' program --- hellow.asm | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ hellow.dp | 1 + readme.md | 7 +++++++ 3 files changed, 61 insertions(+) create mode 100644 hellow.asm create mode 100644 hellow.dp create mode 100644 readme.md diff --git a/hellow.asm b/hellow.asm new file mode 100644 index 0000000..b283ab2 --- /dev/null +++ b/hellow.asm @@ -0,0 +1,53 @@ +; hellow +; outputs "hello world" and exits after a prompt +; made with manual assembling in mind +; some debugging may not have been transfered to asm + +hellow: +.db 16,19,12,25,24,11, +.db len(74) +.db 5,53,10,1, + +ldr 0,1,len(74),1,1 ; copy to zero page + +jp 1,21 + +ldr 3,1,420,2,1 ; clear display +ldr(ir) 0,+17,9,2,31 ; disp hello world +jrnz 0,23 +.db (42) 0,0,1,22,25,0,33,25,28,22,14, +.db 26,28,15,29,29,0,43,27,43, + +cmp(xr) =,1,-2,-5,1 ; input q? +jp 0,9 ; quit + + + +jnc 0,39 ; recheck + +16,19,12,25,24,11, +74, +5,53,10,1, + +17,0,1,74,1,1, + +53,1,1, + +17,3,1,420,2,1, + +18,0,15,11,2,1, +18,0,20,9,2,31, + +54,0,23, + +18,15,22,22,25,0,33,25,28,22,14, +26,28,15,29,29,0,43,27,43, + +34,2,1,-2,-5,1, +49,0,9, +54,0,-9,0,0 + + + +18,15,22,22,25,33,74, 5,53,10,1, 17,0,1,74,1,1,53,1,21,17,3,1,420,2,1, 18,0,15,11,2,1, 18,0,20,9,2,31, 54,0,23, 18,15,22,22,25,0,33,25,28,22,14, 26,28,15,29,29,0,43,27,43,34,2,1,-2,-5,1, 49,0,9, 54,0,-9,0,0 + diff --git a/hellow.dp b/hellow.dp new file mode 100644 index 0000000..3cd9e82 --- /dev/null +++ b/hellow.dp @@ -0,0 +1 @@ +d_{isk}=\left[ 18,15,22,22,25,33,74, 5,53,10,1, 17,0,1,74,1,1,53,1,21,17,3,1,420,2,1, 18,0,15,11,2,1, 18,0,20,9,2,31, 54,0,23, 18,15,22,22,25,0,33,25,28,22,14, 26,28,15,29,29,0,43,27,43,34,2,1,-2,-5,1, 49,0,9, 54,0,-9,0,0\right] diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..6357474 --- /dev/null +++ b/readme.md @@ -0,0 +1,7 @@ +## Despro-e programs +replace the disk variable on your [despro](https://www.desmos.com/calculator/txzhdy0s7u) with the executable and load the disk from the OS (0 on homepage) + + +| Name | Description | executable | source | +| - | - | - | - | +| HELLOW | ~ minimum program, outputs 'HELLO WORLD' and exits | [link](hellow.dp) | [pseudo](hellow.asm) |