Re: A83: SOS v1.7... Basic?


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

Re: A83: SOS v1.7... Basic?




This is how:

 ld hl,progname
 rst 20h
 set 1,(iy+8)
 ld hl,(usermemoff)
 push hl
 call $4E8C
 pop hl
 ld (usermemoff),hl
 jp $9327

The problem was the offset of the free memory was getting messed up when the
second asm program ran, so I simply saved the offset!

Joe Wingbermuehle
http://www.usmo.com/~joewing

-----Original Message-----
From: James Matthews <matthews@tkb.att.ne.jp>
To: assembly-83@lists.ticalc.org <assembly-83@lists.ticalc.org>
Date: Sunday, January 03, 1999 8:10 PM
Subject: Re: A83: SOS v1.7... Basic?


>
>Out of interest, Joe, how did you do it?
>
>Thanks,
>
>James.
>
>==========================================
>E-mail matthews@tkb.att.ne.jp              ICQ: 7413754
>http://home.att.ne.jp/gold/tomcat21/index.html
>http://hyperion.advanced.org/18242/
>==========================================
>-----Original Message-----
>From: Joe Wingbermuehle <joewing@usmo.com>
>To: assembly-83@lists.ticalc.org <assembly-83@lists.ticalc.org>
>Date: Monday, January 04, 1999 10:44 AM
>Subject: Re: A83: SOS v1.7... Basic?
>
>
>>
>>I figured out how to run Basic programs such that they can call asm
>>programs...
>>Now is the Basic support good enough? If you want to try out the new SOS
>let
>>me know!
>>
>>Joe Wingbermuehle
>>http://www.usmo.com/~joewing
>>
>>-----Original Message-----
>>From: Joe Wingbermuehle <joewing@usmo.com>
>>To: assembly-83@lists.ticalc.org <assembly-83@lists.ticalc.org>
>>Date: Sunday, January 03, 1999 6:53 PM
>>Subject: Re: A83: SOS v1.7... Basic?
>>
>>
>>>
>>>Yeah, that's not going to be too good is it...
>>>Well, if I can figure out how to get rid of this memory leak.... but I
>>don't
>>>think I'm going to.
>>>I really don't want to have two versions either...
>>>Does anyone have the slightest idea how to have an asm program (prgmZSOS)
>>>call a basic program (prgmBASIC) call an asm program (prgmZASM)? This is
>>>without modifying a Basic program of course...
>>>The problem is that the second asm program messes up the memory allocated
>>by
>>>the first asm program.
>>>
>>>Joe Wingbermuehle
>>>http://www.usmo.com/~joewing
>>>
>>>-----Original Message-----
>>>From: Jkhum98@aol.com <Jkhum98@aol.com>
>>>To: assembly-83@lists.ticalc.org <assembly-83@lists.ticalc.org>
>>>Date: Sunday, January 03, 1999 6:42 PM
>>>Subject: Re: A83: SOS v1.7... Basic?
>>>
>>>
>>>>
>>>>
>>>>In a message dated 01/03/99 7:32:33 PM, joewing@usmo.com writes:
>>>>
>>>>>- the calculator will eat memory if the Basic program attempts to run
>>>>>    an assembly language program (about 700 bytes, gone).
>>>>
>>>>Ouch, thats going to suck for this ASM Library I'm making for BASIC
>users.
>>>It
>>>>uses the "Send(9" command so they can call my program with certain input
>>>and
>>>>it will do stuff that couldnt be done before in Basic...  If you have
>>>>detection for the Basic functionality, and it causes that to happen,
well
>>I
>>>>say drop that and just make two seperate versions... =P
>>>> --Jason K.
>>>>
>>>
>>
>>
>>
>