hypothetical "DOS 0.0", but the high parts of EAX-EBX-ECX-EDX
spell "SYSLINUX":
- EAX=53590000h EBX=534C0000h ECX=494E0000h EDX=55580000h
+ EAX=59530000h EBX=4C530000h ECX=4E490000h EDX=58550000h
This function can thus be used to distinguish running on
SYSLINUX from running on DOS.
asm("int $0x21"
: "+a" (eax), "+b" (ebx), "+c" (ecx), "+d" (edx));
- return (eax == 0x53590000) && (ebx == 0x534c0000) &&
- (ecx == 0x494e0000) && (edx == 0x55580000);
+ return (eax == 0x59530000) && (ebx == 0x4c530000) &&
+ (ecx == 0x4e490000) && (edx == 0x58550000);
}
int issyslinux(void)