Re: A83: A shell


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

Re: A83: A shell




You want the pointer to the last program in the list? I would do something
like this: Scan through the list. Everytime
you hit a program, store its pointer somewhere in memory. When you reach the
end of the list (the type field is 0, I think) you load hl from that memory
location. Voila!

Linus

On 03-May-98, Phelan Wolf wrote:

>OK, I did that and it works fine, but I still have a question, how do I get
it
>to
>store the 'last' program on the list (which is consistantly the last program
>run)
>to store in HL, do I at the end one load OP1 into HL?

>Linus Akesson wrote:

>> I think I know why those programs won't convert right. A few months ago,
>when
>> I was new to ti-83 asm, I also
>> wrote my programs by hand, and my first programs that accessed the program
>> list didn't work. My mistake was this:
>> I converted "LD hl,(PROGPTR)" to 211993, which is wrong because PROGPTR
>isn't
>> the actual list, it is a pointer to the
>> list. The correct instruction would be 2A1993. Perhaps you did the same
>> mistake?
>>
>> Linus
>>
>> On 01-May-98, Phelan Wolf wrote:
>>
>> >I have decided to make a shell, I have enough time to do emulation for
>> >any other shell.  If anyone knows(help) how VAT works and what calls to
>> >use; tasm does not work on my comp, so I manually convert all my progs
>> >to HEX using a z80 conversion table, which doesn't seem to convert right
>> >with PROGPTR and DELPROG, I still don't quite know how PROGPTR
>> >works(grr!).  I also need the call for 'Input'.  My shell will have a
>> >DOS like prompt with a bar at the bottom telling what program is running
>> >at the current time.  Any help would be nice.
>>
>> >-Phelan 'Amen' Wolf






References: