Mnemonics, Opcodes and Assembler Languages Rev792011
Mnemonics, Opcodes and Assembler Languages Rev792011
Mnemonics, Opcodes and Assembler Languages Rev792011
tulisnota.blogspot.com
logic instructions including AND, OR and XOR instructions ex: RCL instruction
tulisnota.blogspot.com
to control the operation of the processor and set or clear the status indicators ex: HLT instruction
tulisnota.blogspot.com
SOFTWARE (INSTRUCTION)
Op-code
Operand
tulisnota.blogspot.com
Address
Label
Mnemonic
Comments
tulisnota.blogspot.com
A reference point given a name to help relate the program to a flow chart.
Anything to help understand how the program works. The semicolon identifies the start of a comment.
tulisnota.blogspot.com
mode: Used to describe the way a particular instruction lets the microprocessor know where the source or destination is located Method of specifying an operand
tulisnota.blogspot.com
addressing modes are categorized into three types: 1. Register addressing mode 2. Immediate addressing mode 3. Memory addressing mode
tulisnota.blogspot.com
1. 2. 3. 4. 5.
memory addressing mode: Direct addressing mode Register indirect addressing mode Based addressing mode Indexed addressing mode Based-indexed addressing mode
tulisnota.blogspot.com
Addressing Mode Register addressing is an addressing mode where the source and the destination are both register. Ex: MOV DS, AX ;copy AX into DS
tulisnota.blogspot.com
Addressing Mode Immediate addressing is the addressing mode where the required data(operand) is part of the instruction. Ex: MOV AX, 1000H ;load AX with 1000H
tulisnota.blogspot.com
Addressing Mode Direct (absolute, extended etc) is an addressing mode where the operand specifies the source or the destination. Ex: MOV CX, [1234H] ;move content in 1234H into CX
tulisnota.blogspot.com
Indirect Addressing Mode Storing the memory address in a pointer or index register (SP,BP,SI,or DI). Ex: MOV [SI],00FFH ;load data 00FF into address that stored in SI
tulisnota.blogspot.com
Addressing Mode The effective address of the operand is obtained by adding a direct or indirect displacement to the contents of either base register BX or base pointer register BP Ex: MOV [BX] + 1243H, AL
tulisnota.blogspot.com
Addressing Mode Use the value of displacement as a pointer to the starting point of an array of data in memory and the contents of the specified register as an index that select specific element in the array that is to be accessed. Ex: MOV AL, [SI] + 2000H
tulisnota.blogspot.com
Addressing Mode Use to access complex data structures such as two-dimensional array Ex: MOV AH, [BX] [SI] + 1234H