Far jump to code segment with D inline assembler

Alexander Panek a.panek at brainsware.org
Mon Mar 12 23:47:15 PDT 2007


On Tue, 13 Mar 2007 05:24:44 +0100, Alexander Panek  
<alexander.panek at brainsware.org> wrote:
> [...]
> void flush ( )
>
>     asm {
>         naked;
>
>         /+ ... +/
>         jmp int far ptr 0x08:flush;
>
>         flush:
>             /+ ... +/
>
>         ret;
>     }
> }
> [...]

Scratch that `int`. It's meant to be a 48-bit address.


More information about the Digitalmars-d-learn mailing list