
April 8th, 2009, 06:42 PM
|
|
Registered User
|
|
Join Date: Apr 2009
Posts: 5
Time spent in forums: 1 h 20 m 25 sec
Reputation Power: 0
|
|
Question about assembly output
Hey everyone i am taking a computer architechture class and i have a huge exam tomorrow. I got a practice test which he didnt give us the answers to and i wanted to see if anyone could double check me on a problem. The question is:
After the following instructions are executed, what will be the value of AL?
Code:
.data
rowSize = 5
How2T db "The key of teaching is to give your student a reciever"
.code
mov bx,offset How2T
add bx,rowSize
mov si,2
mov al,[bx+si+2]
I think the answer is 9, but it seems to easy this teacher loves to throw curveballs. We dont use any assembly language only machine instructions and since we dont do alot of coding im abit confused. Without mov ah, 9 the string wouldnt be outputted would it? And if thats the case then what happens? Maybe im making to much out of this and its as simple as it seems but im not sure. Thanks for your help.
|