Author Topic: How can I know the instruction format of a given computer system  (Read 5578 times)

Offline maplesirop

  • Jr. Member
  • *
  • Posts: 60
I know how to get the number of bits of an opcode based on the number of instructions, but how do you know the size of the operand field for instance?

Offline hhh3h

  • Jr. Member
  • *
  • Posts: 41
Re: How can I know the instruction format of a given computer system
« Reply #1 on: April 04, 2013, 04:24:37 PM »
As far as I understand, that information is not something you "get" with code.  You need to know what platform you're coding for before you start coding.  For example, if you want to write a program for the family of x86 or x86-64 CPU's, you can refer to the Intel manuals for this information.  On the other hand, if you want to write a program for an ARM CPU, you would get the manual from ARM