From: Paul D. <du...@ho...> - 2003-07-12 13:16:06
|
Looking through x_sw2.nsm (eXtender sources) I see something like this: db 066h mov eax,cr0 ; switch to pm mov [ds:_old_CR0],eax ; store old CR0 value or ax,1 db 066h mov cr0,eax I am very afraid by these db 066h. First, it seems it was in a 16 bits segment, so by seeing mov cr0,eax in a 16 bits segment, the assembler, will, should, automatically insert the toggle prefix 066h. But now, when there are two prefix, I don't know if the CPU will toggle back as if they were no 66h at all, or just ignore the fact that there is more than one. This seems ok to code explicitly the 066h when you explicitly code yourself the instruction, but not to put it before a mov, as then you may be undoing what the assembler supposed to do. _________________________________________________________________ MSN Messenger : discutez en direct avec vos amis ! http://messenger.fr.msn.ca/ |