A83: More Code...


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

A83: More Code...




What am I doing wrong?  All I want it to do is run an assembly program
stored in Ans...thanks.

James.

.NOLIST
#define equ .equ
#define EQU .equ
#define end .end
#include "ti83asm.inc"
#include "tokens.inc"
.LIST
_exec_assembly equ 5102h
_FINDSYM equ 442Eh
PROGOBJ equ 05h
strngobj equ 04h
.org 9327h

  call _zerooop1
  ld   a,tAns
  ld   (op1+1),a
  call _findsym
  jr   c,quit
;  call _rclsystok

  and     1fh
  cp      strngobj
  jr      nz,quit

  ld   hl,op1
  ld   (hl),progobj
  inc  h
  ld   a,(de)           ; get size of name
  ld   c,a
  ld   b,0
  inc  de
  inc  de               ; (de) = 1st byte of prog name
  ex   de,hl
  ldir                     ; name to op1
  call _chkfindsym      ; look up

  call _exec_assembly
quit:

  ret
.end
END

____________________

James Matthews.
E-mail (family):    matthews@tkb.att.ne.jp
E-mail (private):  james_matthews@hotmail.com

Homepage:  http://home.att.ne.jp/gold/tomcat21/index.html
ICQ:  7413754
____________________________________