NASM Forum > Using NASM

Can I select an opcode?

(1/1)

fuzzball:
NASM converts "and al,al" to "20C0", but I need "22C0".
Is there a way?

fuzzball:
additional information:

--- Code: ---% ndisasm test.bin
00000000  20C0              and al,al  ; AND reg/mem,reg
00000002  22C0              and al,al  ; AND reg,reg/mem

--- End code ---

vitsoft:
Only few assemblers let you choose operation code used for encoding, for instance €ASM:

|0000:20C0    |  AND AL,AL
|0002:20C0    |  AND AL,AL,CODE=SHORT
|0004:22C0    |  AND AL,AL,CODE=LONG

fuzzball:

--- Quote from: vitsoft on August 30, 2020, 10:43:26 PM ---Only few assemblers let you choose operation code used for encoding, for instance €ASM:

--- End quote ---

Thank you. I will try that a little.
I want to work on Windows and macOS, so it's a shame I can't find a binary for macOS.

Navigation

[0] Message Index

Go to full version