Author Topic: Format insns.dat  (Read 17750 times)

Offline Borneq

  • Jr. Member
  • *
  • Posts: 26
Format insns.dat
« on: August 12, 2010, 04:46:21 AM »
Hi
What is format insns.dat?
 AAA is opcode 37, in insns.dat is AAA void \1\x37 086,NOLONG
\1 means one byte?
 AAD imm D5 ib   is AAD imm   \1\xD5\24   8086,SB,NOLONG
what means \1 at start, SB and NOLONG?

regards

Offline Keith Kanios

  • Full Member
  • **
  • Posts: 383
  • Country: us
    • Personal Homepage
Re: Format insns.dat
« Reply #1 on: August 12, 2010, 06:32:54 AM »
IIRC, the top of assemble.c has the relevant information regarding the internal instruction format.

Offline Cyrill Gorcunov

  • NASM Developer
  • Full Member
  • *****
  • Posts: 179
  • Country: 00
Re: Format insns.dat
« Reply #2 on: August 12, 2010, 06:52:00 PM »
As Keith already pointed out -- see the head of assembly.c file it contains byte codes meanings.

About SB,NOLONG -- they are "Instruction template flags", perl script adds IF_ prefix to them
so you could find their meaning in insns.h file.

Hope this help.

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: Format insns.dat
« Reply #3 on: August 13, 2010, 05:27:48 PM »
If you're trying to figure out how Nasm works, Borneq, the format of insns.dat may help you. If what you're really looking for is an instruction set reference, try this one:

http://home.myfairpoint.net/fbkotler/nasmdocr.html

Best,
Frank