ASM 8085 Cheat Sheet
|
A (Accumulator)
After performing arithmetical or logical operations, the result is stored here
|
|
BC
General-purpose register that is capable of storing 16-bit data (B - 8-bit) (C - 8-bit)
|
|
DE
General-purpose register that is capable of storing 16-bit data (D - 8-bit) (E - 8-bit)
|
|
HL
Usually used to store a memory address Ex. (00 - H) (36 - L). It also creates a hypothetical register labeled as 'M'
|
|
S (Sign Flag)
If MSB bit = 0 then the number is positive, else it is negative.
|
|
Z (Zero Flag)
If an operation performed in A results 0 value of entire 8-bits then zero flag is set, else it resets.
|
|
AC (Auxiliary Carry Flag)
If an operation performed in A generates the carry from lower nibble (D0 to D3) to upper nibble (D4 to D7) AC flag is set, else it resets.
|
|
P (Parity Flag)
If the result contains even no. of ones this flag is set and for odd no. of ones this flag is reset.
|
|
CY (Carry Flag)
If an operation performed in A generates the carry from D7 to next stage then CY flag is set, else it is reset.
|
|
PC (Program Counter)
Stores the address of the next instruction to be executed.
|
|
SP (Stack Pointer)
Stack pointer maintains the address of the last byte that is entered into stack.
|
|
PSW (Program Status Word)
It combines the Accumulator register with all the flag registers in a 16-bit format
|
|
Opcode Fetch Machine Cycle
4T or 6T
|
|
Memory Read Machine Cycle
3T
|
|
Memory Write Machine Cycle
3T
|
|
I/O Read Machine Cycle
3T
|
|
I/O Write Machine Cycle
3T
|
|
Direct Addressing
In this addressing mode, the address of the operand (data) is given in the instruction itself.
|
|
Register Addressing
In register addressing mode, the operand is in one of the general purpose registers. The opcode specifies the address of the register(s) in addition to the operation to be performed.
|
|
Register Indirect Addressing
In Register Indirect mode of addressing, the address of the operand is specified by a register pair.
|
|
Immediate Addressing
In this addressing mode, the operand is specified within the instruction itself.
|
|
Implicit Addressing
There are certain instructions which operate on the content of the accumulator. Such instructions do not require the address of the operand.
|
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.