Code No: NR310506
NR
Set No. 2
in
III B.Tech I Semester Supplementary Examinations,June 2010 SYSTEMS PROGRAMMING Common to Computer Science And Engineering, Computer Science And Systems Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ????? 1. (a) Explain two pass algorithm for the design of a macro processor.
[8+8]
ld .
(b) What are the different data structures used in this algorithm.
2. Write the necessary Code block for implementing the following Screen Functionalities
or
(a) Clearing the Screen from top-left corner to bottom-right corner (assuming standard text-mode display)
(b) Write the code for printing the message ‘IBM PC ASSEBLY LANGUAGE PROGRAMMING’ with RED foreground on a WHITE background? (c) Write the Code Block for Setting the Cursor at a Specified location? [6+5+5]
uW
3. (a) What is the BIOS memory location of the keyboard buffer? (b) What is its size in bytes?
(c) How many keyboard characters can it contain?
[6+5+5]
4. Use the following data definitions and code string operations for parts (a)-(f): DATASG SEGMENT PARA CONAME DB ‘SPACE LAUNCHES, INC.’ PRLINE DB 20 DUP(‘ ’)
nt
(a) Move CONAME to PRLINE, from left to right
(b) Move CONAME to PRLINE, from right to left. (c) Load the third and fourth bytes of CONAME into the AX.
(d) Store the AX beginning at PRLINE +5.
Aj
(e) Compare CONAME with PRLINE (they will be unequal). (f) Scan CONAME for a blank character and, if one is found, move it to the BH. [3+3+3+3+2+2]
5. (a) Explain PAGE and TITLE listing Directives. (b) In the simplified segement directives, the .MODEL directive provides for TINY, SMALL, MEDIUM, COMPACT and LARGE Models. Under what circumstances would you use each model? (c) Explain about EQU Directive.
[7+6+3] 1
Code No: NR310506
NR
Set No. 2
6. (a) What is meant by a MACRO? With suitable example explain a MACRO instruction? (b) Explain the pass-2 macro definition and expansion algorithm.
[8+8]
i. ii. iii. iv.
Track Sector Cylinder Cluster
[8+8]
ld .
(b) What is the purpose of a disk controller ? Explain briefly.
in
7. (a) Explain the following terms with respect to a disk.
8. What are the two major disadvantages of using BIOS INT 13H? That is, why is the use of DOS interrupts usually preferred? [16]
Aj
nt
uW
or
?????
2
Code No: NR310506
NR
Set No. 4
in
III B.Tech I Semester Supplementary Examinations,June 2010 SYSTEMS PROGRAMMING Common to Computer Science And Engineering, Computer Science And Systems Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ?????
ld .
1. (a) What is meant by a MACRO? With suitable example explain a MACRO instruction? (b) Explain the pass-2 macro definition and expansion algorithm.
[8+8]
2. (a) What is the BIOS memory location of the keyboard buffer? (b) What is its size in bytes?
[6+5+5]
or
(c) How many keyboard characters can it contain?
3. Use the following data definitions and code string operations for parts (a)-(f): DATASG SEGMENT PARA CONAME DB ‘SPACE LAUNCHES, INC.’ PRLINE DB 20 DUP(‘ ’)
uW
(a) Move CONAME to PRLINE, from left to right
(b) Move CONAME to PRLINE, from right to left. (c) Load the third and fourth bytes of CONAME into the AX. (d) Store the AX beginning at PRLINE +5. (e) Compare CONAME with PRLINE (they will be unequal).
nt
(f) Scan CONAME for a blank character and, if one is found, move it to the BH. [3+3+3+3+2+2] 4. (a) Explain two pass algorithm for the design of a macro processor. (b) What are the different data structures used in this algorithm.
[8+8]
Aj
5. Write the necessary Code block for implementing the following Screen Functionalities (a) Clearing the Screen from top-left corner to bottom-right corner (assuming standard text-mode display)
(b) Write the code for printing the message ‘IBM PC ASSEBLY LANGUAGE PROGRAMMING’ with RED foreground on a WHITE background? (c) Write the Code Block for Setting the Cursor at a Specified location? [6+5+5]
6. What are the two major disadvantages of using BIOS INT 13H? That is, why is the use of DOS interrupts usually preferred? [16] 3
Code No: NR310506
NR
Set No. 4
7. (a) Explain the following terms with respect to a disk. Track Sector Cylinder Cluster
(b) What is the purpose of a disk controller ? Explain briefly. 8. (a) Explain PAGE and TITLE listing Directives.
[8+8]
in
i. ii. iii. iv.
(c) Explain about EQU Directive.
ld .
(b) In the simplified segement directives, the .MODEL directive provides for TINY, SMALL, MEDIUM, COMPACT and LARGE Models. Under what circumstances would you use each model?
[7+6+3]
Aj
nt
uW
or
?????
4
Code No: NR310506
NR
Set No. 1
in
III B.Tech I Semester Supplementary Examinations,June 2010 SYSTEMS PROGRAMMING Common to Computer Science And Engineering, Computer Science And Systems Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ?????
ld .
1. (a) What is meant by a MACRO? With suitable example explain a MACRO instruction? (b) Explain the pass-2 macro definition and expansion algorithm.
[8+8]
2. (a) What is the BIOS memory location of the keyboard buffer? (b) What is its size in bytes?
[6+5+5]
or
(c) How many keyboard characters can it contain?
3. Use the following data definitions and code string operations for parts (a)-(f): DATASG SEGMENT PARA CONAME DB ‘SPACE LAUNCHES, INC.’ PRLINE DB 20 DUP(‘ ’)
uW
(a) Move CONAME to PRLINE, from left to right
(b) Move CONAME to PRLINE, from right to left. (c) Load the third and fourth bytes of CONAME into the AX. (d) Store the AX beginning at PRLINE +5. (e) Compare CONAME with PRLINE (they will be unequal).
nt
(f) Scan CONAME for a blank character and, if one is found, move it to the BH. [3+3+3+3+2+2] 4. (a) Explain PAGE and TITLE listing Directives.
Aj
(b) In the simplified segement directives, the .MODEL directive provides for TINY, SMALL, MEDIUM, COMPACT and LARGE Models. Under what circumstances would you use each model?
(c) Explain about EQU Directive.
[7+6+3]
5. (a) Explain the following terms with respect to a disk. i. ii. iii. iv.
Track Sector Cylinder Cluster
(b) What is the purpose of a disk controller ? Explain briefly.
5
[8+8]
Code No: NR310506
NR
Set No. 1
6. What are the two major disadvantages of using BIOS INT 13H? That is, why is the use of DOS interrupts usually preferred? [16] 7. Write the necessary Code block for implementing the following Screen Functionalities
in
(a) Clearing the Screen from top-left corner to bottom-right corner (assuming standard text-mode display)
(b) Write the code for printing the message ‘IBM PC ASSEBLY LANGUAGE PROGRAMMING’ with RED foreground on a WHITE background?
ld .
(c) Write the Code Block for Setting the Cursor at a Specified location? [6+5+5] 8. (a) Explain two pass algorithm for the design of a macro processor. (b) What are the different data structures used in this algorithm.
Aj
nt
uW
or
?????
6
[8+8]
Code No: NR310506
NR
Set No. 3
in
III B.Tech I Semester Supplementary Examinations,June 2010 SYSTEMS PROGRAMMING Common to Computer Science And Engineering, Computer Science And Systems Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ????? 1. (a) Explain two pass algorithm for the design of a macro processor.
[8+8]
ld .
(b) What are the different data structures used in this algorithm.
2. Write the necessary Code block for implementing the following Screen Functionalities
or
(a) Clearing the Screen from top-left corner to bottom-right corner (assuming standard text-mode display)
(b) Write the code for printing the message ‘IBM PC ASSEBLY LANGUAGE PROGRAMMING’ with RED foreground on a WHITE background? (c) Write the Code Block for Setting the Cursor at a Specified location? [6+5+5]
uW
3. Use the following data definitions and code string operations for parts (a)-(f): DATASG SEGMENT PARA CONAME DB ‘SPACE LAUNCHES, INC.’ PRLINE DB 20 DUP(‘ ’) (a) Move CONAME to PRLINE, from left to right (b) Move CONAME to PRLINE, from right to left.
(c) Load the third and fourth bytes of CONAME into the AX.
nt
(d) Store the AX beginning at PRLINE +5. (e) Compare CONAME with PRLINE (they will be unequal). (f) Scan CONAME for a blank character and, if one is found, move it to the BH. [3+3+3+3+2+2]
Aj
4. (a) What is meant by a MACRO? With suitable example explain a MACRO instruction? (b) Explain the pass-2 macro definition and expansion algorithm.
[8+8]
5. What are the two major disadvantages of using BIOS INT 13H? That is, why is the use of DOS interrupts usually preferred? [16]
6. (a) What is the BIOS memory location of the keyboard buffer? (b) What is its size in bytes? (c) How many keyboard characters can it contain? 7
[6+5+5]
Code No: NR310506
NR
Set No. 3
7. (a) Explain PAGE and TITLE listing Directives. (b) In the simplified segement directives, the .MODEL directive provides for TINY, SMALL, MEDIUM, COMPACT and LARGE Models. Under what circumstances would you use each model? [7+6+3]
i. ii. iii. iv.
Track Sector Cylinder Cluster
ld .
8. (a) Explain the following terms with respect to a disk.
(b) What is the purpose of a disk controller ? Explain briefly.
Aj
nt
uW
or
?????
8
in
(c) Explain about EQU Directive.
[8+8]