I think I am going to make my OS 64 bit only. When booting, do you have to call [64 BITS] just as you do [32 BITS] to get into 64 bit mode? Also if you have to do this can you go from 16 to 64 bits or do you still have to go 16-32-64 BITS????????
64 Bit Booting
64 Bit Booting
Hi all.
I think I am going to make my OS 64 bit only. When booting, do you have to call [64 BITS] just as you do [32 BITS] to get into 64 bit mode? Also if you have to do this can you go from 16 to 64 bits or do you still have to go 16-32-64 BITS????????
I think I am going to make my OS 64 bit only. When booting, do you have to call [64 BITS] just as you do [32 BITS] to get into 64 bit mode? Also if you have to do this can you go from 16 to 64 bits or do you still have to go 16-32-64 BITS????????
nasm cannot do 64bit mode
if you want 64bit asm, try fasm, yasm, intels tool (not sure what its called), or masm
(intel is free on linux, masm is free on windows)
the manuals recomend using PMode as an intermediate state (going from 16bit to PMode then to LMode), but it may not be necessary -- never really got a clear answer, afaik, from brendens question at AMD, but because it is listed as such in the manuals, some 3rd party (not AMD or Intel) CPUs might have trouble going directly
personally, i plan to support both, so going to PMode first is obvious (also if you ever plan to use VMode (for BIOS calls, for example) you cannot use VMode from LMode)
make sure you have the latest manuals (from either intel or AMD -- both are essentially the same, just a different orginization) Intels version can be downloaded or ordered from the link in my sig
if you want 64bit asm, try fasm, yasm, intels tool (not sure what its called), or masm
(intel is free on linux, masm is free on windows)
the manuals recomend using PMode as an intermediate state (going from 16bit to PMode then to LMode), but it may not be necessary -- never really got a clear answer, afaik, from brendens question at AMD, but because it is listed as such in the manuals, some 3rd party (not AMD or Intel) CPUs might have trouble going directly
personally, i plan to support both, so going to PMode first is obvious (also if you ever plan to use VMode (for BIOS calls, for example) you cannot use VMode from LMode)
make sure you have the latest manuals (from either intel or AMD -- both are essentially the same, just a different orginization) Intels version can be downloaded or ordered from the link in my sig
sorry, i guess my sig got dissabled:
anyway, the intel manuals can be downloaded here
also from that page there is a link to the information about ordering hard-copies -- i really recomend it, its completely free (including shipping)
get all 5 books, and read through volume 3a a couple times before proceeding -- especially chapters 3 - 6
anyway, the intel manuals can be downloaded here
also from that page there is a link to the information about ordering hard-copies -- i really recomend it, its completely free (including shipping)
get all 5 books, and read through volume 3a a couple times before proceeding -- especially chapters 3 - 6
You can get a example here : http://board.flatassembler.net/topic.php?t=5421
its for yasm and fasm, but it triple faults if int are enabled in the fasm one.
its for yasm and fasm, but it triple faults if int are enabled in the fasm one.


