Re: A83: Ian...


[Prev][Next][Index][Thread]

Re: A83: Ian...




here it is. maybe i will post this under miscelleanous assembly programs
on ticalc.

.NOLIST
#define equ .equ
#define EQU .equ
#define end .end
#include "ti83asm.inc"
#include "tokens.inc"
.LIST

_createprog .equ 448Ah
PROGOBJ .equ 05h

.org 9327h

     call _zerooop1    ; load var name
     ld hl,progname    ;
     ld de,op1         ;
     ld bc,5           ;
     ldir              ;
     call _chkfindsym  ; look it up
     call nc,_delvar   ; if it is there delete it
     ld hl,15          ; length of program
     call _createprog  ; create it
     inc de            ; skip 1st length byte
     inc de            ; skip 2nd length byte
     ld hl,prog        ; program data
     ld bc,15          ; program size
     ldir              ; copy data
     ret

progname:

     .db PROGOBJ,"IAN",0  ; object type prog, name "IAN", 0 terminator

prog:

     .db tDisp,tString,"IAN",tSpace,"IS",tSpace,"A",tSpace,"PIMP"  ;
Disp "IAN IS A PIMP

.end
END


References: