BIOS interrupt initalization
BIOS interrupt initalization
Could someone please tell me what all the registers are initailized to but the BIOS (for your bootsector)? like DX is highbyte = ??h, lowbyte = drive num we booted from right? im pretty sure CS, DS and SS are set to 00h, but what is SP set to? is it 'valid' memory?
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:BIOS interrupt initalization
don't be sure of CS and DS : they could be 0x7C0 on some BIOSes.
SS:SP is "guaranteed to be some valid stack " (big enough to handle BIOS interrupts, imho) but you have no guarantee of how big it is, thus if you have function calls, you should better set up a new stack.
SS:SP is "guaranteed to be some valid stack " (big enough to handle BIOS interrupts, imho) but you have no guarantee of how big it is, thus if you have function calls, you should better set up a new stack.
Re:BIOS interrupt initalization
any of the other registers have useful stuff in them? (eg. like dl has the drive num)
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact: