Re: A86: Re: stop
[Prev][Next][Index][Thread]
Re: A86: Re: stop
hmmm i suck at mem stuff....can you tell me if this would work and if not
can someone edit it a bit?
#include "asm86.h"
#include "Ti86abs.inc"
#include "Ti86asm.inc"
.org $d748
ld hl,prog_name
rst 20h
ld hl, code_end - code
call _CREATEPROG
call _SET_ABS_DEST_ADDR
ld a,0
ld hl, code_end - code
call _SET_MM_NUM_BYTES
ld de, code
ld b,0
call _mm_ldir
set 6,(iy+24)
ret
prog_name:
.db $12,$4,$10,"KEY"
code:
call $479f ;special call
call $0C29
code_end:
.end
-----Original Message-----
From: Grams Family <grams@netcarrier.com>
To: assembly-86@lists.ticalc.org <assembly-86@lists.ticalc.org>
Date: Wednesday, March 11, 1998 5:29 AM
Subject: Re: A86: Re: stop
>
>At 08:47 PM 3/10/98 -0600, you wrote:
>>
>>ok i made (sqrt)KEY (ti docs just confused me so i looked at some code i
had
>>to make a pic var) but now im still confused about how you are sposed to
>>make the program x number of bytes long...does this include the program
>>name, variable type, and $00 or is it the data just after it? and also i
>>still have no idea how to put data into the program...ti docs are no help.
>>anyone?
>>
>OK, when you make a program variable, hl is the number of bytes you want
>for your program + 2 (because the first two bytes of an asm program are
>082e, or somehing). After you call _CREATEPROG, BDE is the absolute address
>of the program data area. The best way to put data in a program is probably
>to use the routines in ti86abs.inc - that way you don't have to worry about
>if your program
>runs across two pages.
>
>--Joshua
>
Follow-Ups: