*For Assembly Language class. Must written using Visual Studio Thank You in Adva
ID: 3799269 • Letter: #
Question
*For Assembly Language class. Must written using Visual Studio
Thank You in Advance!
Exercise 2 Write a simple program of your own to use BL, BH, BX, respectively a) Mov ten char A, 'B, y, 'a', 'b', j' into 8-bit registers. Upper case letter goes BH, lower case goes BL b) Swap the information stored at BH and BL c) Show the BX, BH, and BL before and after swapping d) Continue your ASM programming and explore more registers Ax/BX/CX/DX, AH/BH/CH/DH and AL/BL/CL/DL. Show these registers before and after swapping Exercise 3-Explore the relationship among... a) AL, AH, AX, and EAX b) BL, BH, BX, and EBX c) CL CH, CX, and ECX d) activities for extra credit. the overlap architecture of the general registers. These are extraExplanation / Answer
Excercise2:
a)
you can use simple move instruction for the same
mov bh,33442211 // assuming the ascii values of these characters
mov bl,55669988
b)
for this we can use the xchd instruction
xch bl,bh
c)
after swapping bl will become 33442211 and bh will become 55669988
d)
same way we can swap other registers as well.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.