flat assembler
Message board for the users of flat assembler.

Index > DOS > Bug in the DOS interface "MODES.INC"?

Author
Thread Post new topic Reply to topic
MCD



Joined: 21 Aug 2004
Posts: 602
Location: Germany
MCD 23 Dec 2004, 15:49
May it be that there is a bug in the DOS interface for Fasm? It is just a tiny thing, but I guess that this might cause troubles someday.

I mean, the IDT and GDT defined in "MODES.INC" should be aligned on a 8byte boundary, because the LGDT and LIDT instructions need GDTR and IDTR values aligned on QWORD.

This caused problems with another self coded PM program by me, but it doesn't seem to cause any harm to Fasm DOS.

Perhaps I'm wrong, I'm not sure.

_________________
MCD - the inevitable return of the Mad Computer Doggy

-||__/
.|+-~
.|| ||
Post 23 Dec 2004, 15:49
View user's profile Send private message Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1166
Location: Overflow
Matrix 24 Dec 2004, 00:04
hmm,
it never hurts to align these kind of stuff ...
you can prefer aligning your core functions too, it can speed up things a bit.
Post 24 Dec 2004, 00:04
View user's profile Send private message Visit poster's website Reply with quote
MCD



Joined: 21 Aug 2004
Posts: 602
Location: Germany
MCD 25 Dec 2004, 18:40
I meant to remembered that somewhere in the Intel documentation you can read that descriptor tables should be aligned on 8 byte boundary. I don't guess that this would affect Fasms speed, rather it's safety?
Post 25 Dec 2004, 18:40
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.