I need to know how to do a assembly program that accepts a string with the Instruction format and understand it and then execute it
Input:
String as“mov eax,10”
Output:
The string instruction will be executed.

Do you mean the assembly language implementation of basicly an assembly language
interpreter? That would be pretty long code...

An example of such a program though would be the
Ketman Assembly Language Tutorial, a 8086 tutorial and assembly language
interpreter.

Instruction format deals with the binary encoding of a processor's instructions,
not it's mnemonics which is the human readable form, but it's exact
syntax varies from assembler to assembler:

1F32: 8B1E0301 MOV CX, WORD [0103]

__8B_____1E_____03_____01__
_/__\_ _/ \_ _/ \_ _/ \
*1011
____^---- 16 bit operands, Bit 1 Specifies Reg as Destination
_______00*110 <-- High two-bits + R/M of 6 specifies Direct Addressing Mode
_________^-------- 001 CX register

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.