retf for 16bit or 32bit? CS:IP or CS:EIP?



Hi,

there are a few tutorials on how to write your own boot sequence
(http://www.tutorials.de/tutorials2070). The booter loads a program (a
BIN file) into the RAM am position 0x1000, puts the Adress
0x0000:0x1000 on the stack and calls the retf function to jump to the
loaded program.

I wondered where to define weather the program is a 16 Bit or a 32 Bit
program?

This means when can I use the extended data registers (eax, ebx, ecx,
edx) and adress registers (esp, ebp, eip, esi, edi)?

How does the assembler know when to load the address from the stack as
CS:IP and when to load the address from the stack as CS:EIP?

THX, Langi
.



Relevant Pages

  • retf for 16bit or 32bit? CS:IP or CS:EIP?
    ... This means when can I use the extended data registers (eax, ebx, ecx, ... edx) and adress registers? ... How does the assembler know when to load the address from the stack as ... CS:IP and when to load the address from the stack as CS:EIP? ...
    (comp.lang.asm.x86)
  • Re: Why does the stack have a fixed size?
    ... The high-load inefficiencies are more a problem of CPU load than memory load, at least that's been my impression. ... Correct AR copying/sharing on stack is as we know very difficult, ...
    (comp.lang.functional)
  • Re: Device Driver Etiquette
    ... >>> not nice) to simply fix it this way, by disabling irqs while it ... >> I would say to just disable IRQs while loading firmware. ... As long as it's only done at module load ... I think if I can disable that while the firmware is loading that will fix the stack overflow ...
    (Linux-Kernel)
  • Anyone know where to price old games ?
    ... Just having a loft clear out before we move and I've come across some boxes of stuff I'd forgotten I had... ... A box full of Traveller stuff, black box, again First edition I think. ... Plus a stack of add on bookbought at the same time. ... A load of Tunnels and Trolls book, ...
    (rec.games.board.marketplace)
  • Pricing help with some old games !!!
    ... Just having a loft clear out before we move and I've come across some boxes of stuff I'd forgotten I had... ... A box full of Traveller stuff, black box, again First edition I think. ... Plus a stack of add on bookbought at the same time. ... A load of Tunnels and Trolls book, ...
    (uk.adverts.games.roleplay)