Far jump to code segment with D inline assembler

Alexander Panek a.panek at brainsware.org
Tue Mar 13 05:46:38 PDT 2007


On Tue, 13 Mar 2007 11:49:22 +0100, Frits van Bommel  
<fvbommel at REMwOVExCAPSs.nl> wrote:
> This doesn't have much to do with the multiboot standard, just the x86  
> architecture. Multiboot just doesn't allow you to assume the GDT is  
> already correctly loaded (though the segment registers will be).

Yea, I've seen that after the second time of reading, too. X-P

> Sorry, I have no idea how to do this in the D inline assembler. I just  
> have an external .asm file that sets up the GDT (and rudimentary paging)  
> before calling the D code. I prefer the NASM variation of asm syntax  
> anyway.

I do have an assembler file for exactly that, which I just try to  
translate to D code.


More information about the Digitalmars-d-learn mailing list