This should print all programs on the calculator. In jstified, I have HATCHET ZHATCHET and BIGFART but this only prints HATCHET.
Code:
The {A} and ASM code does this:
Code:
Based on this.
Code:
.HATCHET
.9830 IS PROGPTR
.982E IS PTEMP
.844B IS CURROW
.844C iS CURCOL
|E982E->GDB0
|E844B->GDB1
{GDB0+2}^^r->A
ClrHome
Repeat A={GDB0}^^r
If {A}=5 or {A}=6
A-7->A
{A+1}->B
While B
{A}
Asm(7DEF0445)
A--
B--
End
{GDB1}++
0->{GDB1+1}
Else
A-7->A
{A+1}->B
A-B->A
End
End
Repeat getKey
End
The {A} and ASM code does this:
Code:
1) {A} ;puts value of A in hl
2) 7D ; ld a,l
3) EF 0445 ;bcall putc
Based on this.