You are on page 1of 1

CME321 Microprocessors Lab Applications 6 / BLM321

Mikroişlemciler Lab Uygulamaları 6

1. Fill the effected registers after execution of each instruction, if it’s required state the change step by step, and
manipulate the flags if it’s necessary. (Her bir komut çalıştırıldığında etkilenen registerların son halini doldurun, eğer
gerekiyorsa değişimi adım adım gösterin ve eğer gerekiyorsa bayrak bitlerini değiştirin.)

a. # AH AL BH BL CH CL DH DL C Z S O P A

MOV AL,38H ;1 0 00 00 00 00 00 00 00 00 0 0 0 0 0 0
ADD AL,78H ;2
1
DAA ;3
2

00 00 00 00 00 00 00 00 0 0 0 0 0 0
b.
MOV AL,0EEH ;4 4
ADD AL,1AH ;5 5
DAA ;6
6

00 00 00 00 00 00 00 00 0 0 0 0 0 0

8
c.
9
MOV BL,38H ;7
MOV AL,55H ;8 10
SUB AL,BL ;9
00 00 00 00 00 00 00 00 0 0 0 0 0 0
DAS ;10
11

12

d. 13

MOV BL,0EEH ;11 14


MOV AL,78H ;12 00 00 00 00 00 00 00 00 0 0 0 0 0 0
SUB AL,BL ;13
DAS ;14 15

16

17

18

You might also like