Re: A86: Re: Bug in TI86EMU?
[Prev][Next][Index][Thread]
Re: A86: Re: Bug in TI86EMU?
Ah, thanks. I didn't think of that. Actually, it's the same speed, but
your way doesn't trash DE... ;-)
At 11:28 PM 9/28/98 -0400, you wrote:
>
>
>Yeah, it's a fast way to call ld hl,(hl). The fastest way to do what you
>want is:
>
> ld a,(hl)
> inc hl
> ld h,(hl)
> ld l,a
> jp (hl)
>
>
>>
>>Hmm, that explains alot. Then why the indirection? Why not just JP HL?
>>
>>What is call $33? Is it LD HL,(HL)? I'd appreciate any code faster than
>>this:
>>
>>ld e,(hl) ; 7
>>inc hl ; 6
>>ld d,(hl) ; 7
>>ex de,hl ; 4
>> ; 24 t-states, DE = HL + 1, HL = (HL)
>>
>>At 12:53 AM 9/28/98 -0400, you wrote:
>>>
>>>
>>>No, <jp (hl)> is supossed to jump to HL. If you want to fix it do <call
>$33
>>>/ jp (hl)>
>>>
>>>
>>
>>
>>--
>>David Phillips
>>mailto:electrum@tfs.net
>>ICQ: 13811951
>>AOL/AIM: Electrum32
>>
>
--
David Phillips
mailto:electrum@tfs.net
ICQ: 13811951
AOL/AIM: Electrum32