A86: Re: Bug in TI86EMU?
[Prev][Next][Index][Thread]
A86: Re: Bug in TI86EMU?
No, <jp (hl)> is supossed to jump to HL. If you want to fix it do <call $33
/ jp (hl)>
>
>I think I found an unfortunate bug in TI86EMU, but I'm not sure. The
>instruction JP (HL) should jump to the address stored in the memory
>location that HL points to, correct? But in TI86EMU, it jumps to HL
>instead. It is not a bug with the assembler, because the emu disassembles
>it properly as JP (HL). It's probably not a bug, I'm just too tired, but
>anyway...
>
>In an effort to work around it, I came up with this code:
>
> ld e,(hl)
> inc hl
> ld d,(hl)
> ex de,hl
> ld (DoMenuModify+1),hl
>DoMenuModify:
> jp 0
>
>I'm sure there is a much better solution, but I can't see it tonight.
>Thanks for any help.
>
>--
>David Phillips
>mailto:electrum@tfs.net
>ICQ: 13811951
>AOL/AIM: Electrum32
>