Re: A86: version
[Prev][Next][Index][Thread]
Re: A86: version
Does anyone know how fast those calls are? I'd think that flipping pages or
even calling something on page 0 would be slower than doing it yourself.
And it's only 4 bytes, versus 3 for a call. You could even make into a
macro (since it's silly to use a 3 byte call for a 4 byte routine, where the
call/ret takes 3 t-states more than the whole routine), or play with
tasm80.tab to make it exactly like an actual instruction...
ld_hlhl:
ld a,(hl)
inc hl
ld l,(hl)
ld h,a ; 24 t-states
-----Original Message-----
From: Dux Gregis <assets@eden.rutgers.edu>
To: assembly-86@lists.ticalc.org <assembly-86@lists.ticalc.org>
Date: Friday, November 20, 1998 9:13 PM
Subject: Re: A86: version
>
>
>>
>>don't think so. i can think of one good way of getting that, although
>>you really shouldn't need it:
>>
>> ld hl,(_ask_self_text+1) ;$494f+1
>> ld de,11 ;offset to address in a ld hl,xxxx inst.
>> add hl,de
>> call _ldhlhl ;$4010 may be wrong in some include files aka LD_HL_MHL
>
>I think the official equate (ie, TI's equate) is _ldhlind, but call $33 is
>faster than using page $0d (it's very unlikely to change in future roms)
>
>>
>>hl now points to the string
>>"Enter self test? 1.x ",0
>>
>>that should work in any version, but no guarantee because it relies on
>>page 0
>>
>>-josh
>>
>>On Fri, 20 Nov 1998 17:09:45 -0800 Cassady Roop <croop@oregontrail.net>
>>writes:
>>>
>>>Is there a call that will output the ROM version but not give the
>>>option
>>>of a self-test?
>>>
>>
>>___________________________________________________________________
>>You don't need to buy Internet access to use free Internet e-mail.
>>Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
>>or call Juno at (800) 654-JUNO [654-5866]