flat assembler
Message board for the users of flat assembler.
Index
> Main > fasmg bug for 8086, 80186, 80286 imul dx, cx |
| Author |
|
|
Shia 14 Nov 2025, 12:21
Assembling this code in fasmg
Code: INCLUDE=$PATH_TO_FASMG/fasmg/packages/x86/include/cpu fasmg hello.asm Code: include '8086.inc' imul dx, cx Results in this error: on 8086.inc Code: hello.asm [2]: imul dx, cx imul? [0] Error: extra characters on line. on 80186 80286 Code: flat assembler version g.kp60 hello.asm [2]: imul dx, cx imul? [63] Custom error: invalid combination of operands. Looking on https://www.felixcloutier.com/x86/imul it seems that IMUL r16, r/m16 is a valid instruction. |
|||
|
|
Tomasz Grysztar 14 Nov 2025, 13:28
The modern instruction set references do not have the precise information on the pre-CPUID era instruction sets. I would recommend to use a classic reference like Ralph Brown's opcodes list that has comments about the CPU generation when a specific instruction variant was introduced:
OPCODES.LST wrote: 68 PUSH imm ; NECs & 186+ OPCODES.LST wrote: AF IMUL reg,mem ; 386+ |
|||
|
|
Shia 14 Nov 2025, 13:54
Thanks
|
|||
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.