flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > ureal mode |
Author |
|
vid 27 Sep 2005, 07:27
you have computer with 3gb RAM?
|
|||
27 Sep 2005, 07:27 |
|
revolution 27 Sep 2005, 08:07
Try this:
Code: use32 smsw eax shr eax,1 ;test for PE jc SystemIsInPortectedMode or eax,-1 shr eax,16 jz SystemIsInRealMode use32 ;code for unreal mode goes here ret SystemIsInRealMode: use16 ;code for real mode goes here ret SystemIsInPortectedMode: use32 ;code for protected mode goes here ret Assemble for 32 bit run mode (use32). If the code is running in 16 bit mode (real mode) at run time then it will still run but using AX instead of EAX. |
|||
27 Sep 2005, 08:07 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.