delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/14/21:13:49

Date: Thu, 13 Nov 1997 12:04:54 +0000 ( )
From: "Gurunandan R. Bhat" <grbhat AT unigoa DOT ernet DOT in>
To: djgpp AT delorie DOT com
Cc: anakin AT pobox DOT com
Subject: Bug in NASM (possibly old)
Message-Id: <Pine.LNX.3.91.971113115915.3133A-100000@aditya.unigoa.ernet.in>
Mime-Version: 1.0

Greetings,
	
	I had, yesterday, posted some NASM code that seemed to 
	disable interrupts in protected mode. It turns out after
	some watching with fsdb that there is a bug in NASM,
	which has nothing to do with interrupts. 

	When I push a segment register 

	push cs

	the stack pointer gets decremented by 4 instead of 2. 
	This screws up the stack and pops the wrong eflags 
	which clears the i-flag.

	If any NASM watcher/user has a patch for this, I 
	would be grateful for pointers.

	Thanks in advance

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019