initial commit
added 'hello world' program
This commit is contained in:
commit
6613ecdc5a
3 changed files with 61 additions and 0 deletions
53
hellow.asm
Normal file
53
hellow.asm
Normal file
|
@ -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
|
||||
|
1
hellow.dp
Normal file
1
hellow.dp
Normal file
|
@ -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]
|
7
readme.md
Normal file
7
readme.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
## Despro-e programs
|
||||
replace the d<sub>isk</sub> 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) |
|
Loading…
Reference in a new issue