Re: LZ: Stupid Newbie Question: Why doesn't this work?


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

Re: LZ: Stupid Newbie Question: Why doesn't this work?



At 06:54 PM 7/20/97 +0000, you wrote:
>> I'm having a little trouble putting a number into HL, and trying to figure
>> out how to display this number on the screen. I've tried this:
>> 
>> #include "ti-85.h"
>> 
>> org 0
>> db "Numbers",0
>> 
>
>You have to set the correct rom-page here. You know, ti-85 has 128kb 
>of rom, and only 32kb of it is visible to Z80 simultaneously. The 
>CLEARLCD  routine is in the page 4. So we put  this here:
>
>ld a,4
>out (5),a   
>
>>   ROM_CALL(CLEARLCD)

[snip]

Actually, the CLEARLCD routine is on page 1.  But this doesn't matter,
because on page 0, there is a table for calling functions on other rom
pages.  This is what the shell calls when you call CLEARLCD.

--
Brian Leech
butvis@mindspring.com
ICQ UIN: 1355611
World Wide Web Pager: http://wwp.mirabilis.com/1355611



References: