TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: PAUL WANKADIA
from: CRAIG HART
date: 1997-05-27 12:40:00
subject: opcodes

Hi..
 > Does anyone know what happens when the CPU comes across an opcode that
 > it
 > doesn't understand?  For example, what happens if a 386 tries to run a
 > 486 or
 > a Pentium opcode?
You get an exception. In this case you get exception 6 - invalid opcode, or 
exception 16 - coprocessor error (for floating point opcodes).
This 'feature' is not present on the 8088/8086, however.
A study of the 386 programmer's guide is worthwhile here - you can restart or 
bypass some exceptions, if you exception handler is written well.... or at 
least procvide a graceful exit to dos.
    Craig
--- FMail/386 1.20
---------------
* Origin: Communications Barrier BBS (03) 9585 1112, 24hrs (3:632/533)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.