flat assembler
Message board for the users of flat assembler.
  
|  Index
      > Main > 8086 undefined opcode? | 
| Author | 
 | 
| Artlav 23 Dec 2009, 16:34 I've been looking around for some time, but can't find the answer for less than 286 - what will a 8086 CPU do if it hits an undefined opcode? | |||
|  23 Dec 2009, 16:34 | 
 | 
| LocoDelAssembly 23 Dec 2009, 17:05 Quote: 
 This pope thing again... (not everybody know that's your way of calling POP  ) | |||
|  23 Dec 2009, 17:05 | 
 | 
| chaoscode 27 Dec 2009, 03:20 what is POPE? | |||
|  27 Dec 2009, 03:20 | 
 | 
| windwakr 27 Dec 2009, 03:26 chaoscode wrote: what is POPE? It's the way DOS386 defines pop. I think it's just so push and pop are the same length for him, lol. EDIT: Loco says it right above you anyways. LocoDelAssembly wrote: 
 | |||
|  27 Dec 2009, 03:26 | 
 | 
| Tyler 27 Dec 2009, 03:29 Chaoscode wrote: 
 LocoDelAssembly wrote: 
 @DOS386: What do you mean by "hang"? Sounds destructive. | |||
|  27 Dec 2009, 03:29 | 
 | 
| DOS386 27 Dec 2009, 03:34 windwakr wrote: so push and pop are the same length for right  | |||
|  27 Dec 2009, 03:34 | 
 | 
| sinsi 27 Dec 2009, 03:36 A lot of opcodes use 0Fh as the prefix byte - unfortunately to an 8088/8086 this is the 'pop cs' instruction.
 Your computer will hang or reboot since CS has changed... Maybe you jump into the middle of a DOS write-to-disk function and trash your C: push/pope - why not use psh/pop ? | |||
|  27 Dec 2009, 03:36 | 
 | 
| revolution 27 Dec 2009, 03:40 Why not just push/pop   | |||
|  27 Dec 2009, 03:40 | 
 | 
| Fanael 27 Dec 2009, 10:43 revolution wrote: Why not just push/pop | |||
|  27 Dec 2009, 10:43 | 
 | 
| revolution 27 Dec 2009, 11:20 ldmfd/stmfd | |||
|  27 Dec 2009, 11:20 | 
 | 
| MazeGen 28 Dec 2009, 09:08 Artlav wrote: I've been looking around for some time, but can't find the answer for less than 286 - what will a 8086 CPU do if it hits an undefined opcode? Accroding to the manual, 186/188 generates int 6 if it executes 0F, 63-67, F1, FE /7, or FF/7. (Don't know why it doesn't list FE /2-6 and few others.) | |||
|  28 Dec 2009, 09:08 | 
 | 
| < Last Thread | Next Thread > | 
| Forum Rules: 
 | 
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.