home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.development      Operating system development chatter      4,255 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 3,101 of 4,255   
   wolfgang kern to wolfgang kern   
   Re: The EA jump immediately after enabli   
   21 Feb 22 18:18:17   
   
   From: nowhere@nevernet.at   
      
   On 21/02/2022 15:33, wolfgang kern wrote:   
      
   >> If so, can you think of an instruction or sequence which would   
   >> distinguish between the two?   
      
   > give me some time to check in deep detail, I'll be back on this soon.   
      
   here we go:   
   this works in RM as long it points to an far RETURN:   
   you can test this yourself   
   9A xxxx 0000 call far 0000:xxxx ;raise exception if PM   
      
   PM only (raise invalid opcode exception in RM):   
   63 xx        ARPL  (seems obsolete)   
   0F 00 /1     STR   an easy test possibility ie:   
   0F 00 c8     STR ax |eax |rax   
   0F 00 08 xx  STR [mem16] ; all except RM   
      
   0F 00 /0     SLDT r16/r32/r64/m16   
   0F 00 /2     LLDT rm16   
      
   0F 00 /3     LTR   
   0F 02 /r     LAR   
   0F 03 /r,[m] LSL   
      
   these work in UNreal after correct loaded   
   0F 00 /4     VERR   
   0F 00 /5     VERW   
   __   
   wolfgang   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca