A86: Help!!!!!


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

A86: Help!!!!!




Why won't this program (from Ti.com) work?  I save the programs as PROG1 
and PROG2, yet I still get an error...  I need to know how to call other 
assembly programs from another assembly program for the game I am 
working on (PunchOut).  (I have run into problems with memory usuage.  
If there is a better way to solve the problem, I'm open to suggestions.)  
I'll appreciate any help....

#include "ti86asm.inc"
#include "asm86.h"
#include "ti86und.inc"

 .org _asm_exec_ram

asm_prog1:
 ld hl,prog2name-1
 call _mov10toop1
 ld a,1
 call _exec_assembly

 ld hl,prog2name-1
 call _mov10toop1
 ld a,2
 call _exec_assembly
 ret
prog2name:
 .db 5,'PROG2'

.end


;new program...

#include "ti86asm.inc"
#include "asm86.h"
#include "ti86und.inc"

 .org _asm_exec_ram

asm_prog2:
 ld a,(_asm_reg_a)
 cp 1
 push af
 call z,_op1set1
 pop af
 call nz,_op1set2
 ld a,1
 ld bc,0ffffh
 ld de,1111h
 ld hl,2222h
 ret

.end

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com