[A83] Re: call (hl)


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

[A83] Re: call (hl)




>    ld hl,(label)
>    ld (hack+1),hl
> hack:
>    call 0                ; any number

hmmm...

>   ld hl,label1
>   push hl
>   ld hl,label2
>   jp (hl)
> label1:
> ...etc...
>   ret
> 
> label2:
> ...etc...
>   ret

hmmm... (bis)

Now I see that the z88dk is usefull now and then. That C compiler uses this
'trick' for doing calculated calls.

	Henk Poley <><