flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 25 Jun 2018, 12:07
I'm not sure that 64 bit real mode is a thing. In long mode you have to enable paging and set up a page table. The CPU enforces this.
|
|||
![]() |
|
CandyMan 25 Jun 2018, 17:00
where you define GDT and IDT?
|
|||
![]() |
|
connor 26 Jun 2018, 04:05
i don't know what a page table, GDT or IDT is
all I want is some ideas and brainstorming. _________________ cars tech weed bitches country & thug life |
|||
![]() |
|
CandyMan 26 Jun 2018, 08:28
protected mode is not the same like real mode. you must define segment descriptors in Global Descriptor Table (GDT) and interupts and exceptions in Interrupt Descriptor Table (IDT). without it your program will be suspended or a computer will reset. additionally one should check (smsw instruction) whether we are in the real mode or can already in virtual. in long mode a paging is necessary.
that's all it isn't so difficult, a little reading documentation requires. see also: https://patater.com/gbaguy/x86asm.htm http://www.cs.virginia.edu/~evans/cs216/guides/x86.html https://wiki.osdev.org/GDT_Tutorial http://prodebug.sourceforge.net/pmtut.html https://www.codeproject.com/Articles/45788/The-Real-Protected-Long-mode-assembly-tutorial-for |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.