vu cs507 Mid Term Subjective Solved Past Paper No.4

vu cs507 Information Systems Solved Past Papers

Solved Past Papers

This subjective solved past paper is related to book/course code vu cs507 Information Systems which belongs to vu organization. We have 8 past papers available related to the book/course Information Systems. This past paper has a total of 10 subjective questions belongs to topic Mid Term to get prepared. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to get prepared for exams by learning subjective questions online on NVAEducatio.

NVAEducation also facilitates users to download these solved past papers with an affordable prices. However, users are not enforced to pay for money, rather they can use credits to buy such stuff on NVAEducation. Users can earn credits for doing some little tasks and then you will be able to use that credits to buy solved past papers on NVAEducation.

Question 4: Why is it necessary to provide the segment and offset address in case of FAR jump?
Answer:
Segment and offset must be given to a far jump. Because, sometimes we may need to go from one code segment to another, and near and short jumps cannot take us there. Far jump must be used and a two byte segment and a two byte offset are given to it. It loads CS with the segment part and IP with the offset part.
Question 9: Write a subroutine to calculate the string length?
Answer:

subroutine to calculate the length of a string; takes the segment and offset of a string as parameters

strlen: push bp
mov bp,sp
push es
push cx
push di
les di, [bp+4] ; point es:di to string
mov cx, 0xffff ; load maximum number in cx
xor al, al ; load a zero in al
repne scasb ; find zero in the string
mov ax, 0xffff ; load maximum number in ax
sub ax, cx ; find change in cx
dec ax ; exclude null from length
pop di
pop cx
pop es
pop bp
ret 4

Solved Past Papers of cs507 Information Systems

Other cs related subjective solved past papers

Other categories of vu Solved Past Papers

Other organizations

Theme Customizer

Gaussian Texture



Gradient Background