SAP-1 SAP-2: EEE 415 - Microprocessors and Embedded Systems
SAP-1 SAP-2: EEE 415 - Microprocessors and Embedded Systems
2.1 SAP-2
SAP-1 SAP-2
1
3/6/21
Bidirectional Register
2
3/6/21
3
3/6/21
4
3/6/21
Memory Instructions
• LDA – Load Accumulator • MOV – Move between register
• MOV A,B
• STA- Store Accumulator
• MOV A,C
• MVI – Move Immediate • MOV B,A
• MVI A, Byte
• MOV B,C
• MVI B, Byte • MOV C,A
• MVI C, Byte
• MOV C,B
10
5
3/6/21
Arithmetic Instructions
• ADD – Add to accumulator • INR – Increment
• ADD B • INR A
• ADD C • INR B
• INR C
11
12
6
3/6/21
13
Flags
14
7
3/6/21
15
16
8
3/6/21
17
18
9
3/6/21
Rotate Operations
• RAL – Rotate Accumulator Left
19
20
10
3/6/21
21
22
11
3/6/21
23
24
12
3/6/21
25
26
13
3/6/21
Solution
27
Solution
28
14