rr311501 Systems Programming
rr311501 Systems Programming
1
III B.Tech I Semester Regular Examinations, November 2006
SYSTEMS PROGRAMMING
(Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
2. Explain SHORT, NEAR and FAR addressing types in JMP instructions with suit-
able examples? [16]
(a) clears the screen ,and position cursor at the top -left corner.
(b) Let the user type text, cursor must advance after each character is displayed.
(c) Esc key to terminate the program. [6+5+5]
5. (a) i. What does it mean when the address of the head and tail in the keyboard
buffer are the same?
ii. What does it mean when the address of the tail immediately follows the
head?
(b) Provide the Scan code for the following extended functions:
i. Down Arrow
ii. Program function key F2
iii. Home
iv. Pg Down [8+8]
6. (a) Explain the procedure for reading a disk file using file handles.
(b) What are the error return codes for:
i. Path not found
ii. Invalid format
iii. Write fault
iv. Printer out of paper
(c) What is the maximum length of an ASCIIZ string? Define an ASCIIZ string
named PATH2 for a file named NU.EXE on drive C. [5+6+5]
7. (a) Write a program to read sectors from disk into memory using BIOS.
1 of 2
Code No: RR311501 Set No. 1
(b) Under which circumstances a programmer choose BIOS INT 13H? [8+8]
⋆⋆⋆⋆⋆
2 of 2
Code No: RR311501 Set No. 2
III B.Tech I Semester Regular Examinations, November 2006
SYSTEMS PROGRAMMING
(Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
2. Explain Shift and Rotate Instructions and their usage in Arithmetic operations,
specifying an example? [16]
5. (a) i. What does it mean when the address of the head and tail in the keyboard
buffer are the same?
ii. What does it mean when the address of the tail immediately follows the
head?
(b) Provide the Scan code for the following extended functions:
i. Down Arrow
ii. Program function key F2
iii. Home
iv. Pg Down [8+8]
7. (a) You are given with memory address SECTIN, drive A, head 0, track 8, and
sector 4. Use this data to write instructions for BIOS 13H to read one sector.
1 of 2
Code No: RR311501 Set No. 2
(b) Explain briefly which functions of INT 13H carry out the following operations
on disk.
i. Initialize Drive
ii. Seek Cylinder
iii. Get Disk Type
iv. Set Diskette Type [8+8]
8. (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]
⋆⋆⋆⋆⋆
2 of 2
Code No: RR311501 Set No. 3
III B.Tech I Semester Regular Examinations, November 2006
SYSTEMS PROGRAMMING
(Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
1. (a) Give the commands that cause the assembler when listing a program.
i. to advance to a new page.
ii. to print a heading at the top of a page.
(b) Consider the instruction MOV AX,4C00H used with INT21H.
i. Explain what instruction performs.
ii. Explain the purpose of 4C00H.
(c) Explain the directives for defining data. [4+6+6]
3. Write an Assembly Language Program that asks the user to input an integer and
check whether that integer is a multiple of three, printing its conclusion to the
screen. The Program should work with input integers having as many as 79 digits.
[16]
4. Write a macro definition name DIVIDE that generates a routine to perform division
by successive subtraction. [16]
5. (a) Provide the Scan codes for the following extended functions:
i. Up arrow.
ii. program function key F3
iii. Home
iv. Page up
(b) Explain how the numbers are stored from(0-255) in memory as ASCII Char-
acters. [8+8]
1 of 2
Code No: RR311501 Set No. 3
6. (a) What is a hard disk ? Explain the characteristics of a hard disk.
(b) What is a boot record ? Which files are loaded by it? [8+8]
7. (a) What is BIOS INT 13H ? What are two major disadvantages of using BIOS
INT 13H ? Explain.
(b) Explain the basic disk functions carried out by BIOS INT 13H. [8+8]
8. Explain the design of single pass macro process capable of handling macro calls
within macro definitions. [16]
⋆⋆⋆⋆⋆
2 of 2
Code No: RR311501 Set No. 4
III B.Tech I Semester Regular Examinations, November 2006
SYSTEMS PROGRAMMING
(Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
1 of 2
Code No: RR311501 Set No. 4
(b) Write and explain the instructions,
i. To reset the diskette controller
ii. To read the diskette status [8+8]
8. Write various phases included in the execution of a program using loaders? [16]
⋆⋆⋆⋆⋆
2 of 2