Académique Documents
Professionnel Documents
Culture Documents
1
III B.Tech I Semester Supplimentary Examinations, November 2007
SYSTEMS PROGRAMMING
(Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
2. (a) Assume that the BL contains 1110 0011 and that a location named BOONO
contains 0111 1001. Determine the effect on the BL for the following:
i. XOR BL, BOONO ;
ii. AND BL, BOONO ;
iii. OR BL, BOONO;
iv. XOR BL, 11111111B ;
v. AND BL, 00000000B.
(b) Assume that the DX contains binary 10111001 10111001 and the CL contains
03. Determine the hex contents of the DX after execution of the following
unrelated instructions:
i. SHR DX,1 ;
ii. SHR DX, CL ;
iii. SHL DX, CL ;
iv. SHL DL, 1 ;
v. ROR DX, CL ;
vi. ROR DL, CL ;
vii. SAL DH, 1.
(c) Write an Assembly language Program, which prints contents of AL register
onto the screen in hexadecimal notation. [5+7+4]
3. Write an Assembly Language to convert the Lowercase character that is read from
the key-board to Upper case ? [16]
1 of 2
Code No: RR311501 Set No. 1
(b) Explain how the common attributes bytes limit the number of available colors.
[8+8]
8. (a) List and explain different tables used in second pass of an assembler.
(b) How macro parameter passing will be handled? Demonstrate with an example
program. [8+8]
⋆⋆⋆⋆⋆
2 of 2
Code No: RR311501 Set No. 2
III B.Tech I Semester Supplimentary Examinations, November 2007
SYSTEMS PROGRAMMING
(Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
2. Explain How the Boolean Operations are used in processing Arithmetic Data? [16]
7. (a) A user type in the command REN C:ABC.DOC XYZ.DOC , to rename the
specified file. Show the hex contents in the program’s PSP at
i. 5CH, parameter area 1, (FCB #1)
ii. 6CH, parameter area 2, (FCB #2)
iii. 80H, the default DTA
(b) Explain briefly the various strategies used to determine where to load a pro-
gram in memory. [10+6]
⋆⋆⋆⋆⋆
1 of 1
Code No: RR311501 Set No. 3
III B.Tech I Semester Supplimentary Examinations, November 2007
SYSTEMS PROGRAMMING
(Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
2. Write the structure of LOOP instruction? Write a program to find the sum of 1 to
n numbers using LOOP construct? [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
1 of 2
Code No: RR311501 Set No. 3
iv. Pg Down [8+8]
6. (a) What is a file handle ? Explain the functions of INT 21H used to carry out
the following operations using file handles.
i. Create file
ii. Open file
iii. Write record
iv. Close file
(b) What is an ASCIIZ string? Explain with the help of an example. [10+6]
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]
⋆⋆⋆⋆⋆
2 of 2
Code No: RR311501 Set No. 4
III B.Tech I Semester Supplimentary Examinations, November 2007
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]
2. Explain How the Boolean Operations are used in processing Arithmetic Data? [16]
3. Write an Assembly Language to convert the Lowercase character that is read from
the key-board to Upper case ? [16]
6. (a) Give the code to carry out the following operations on disk files using FCBs.
i. Open file
ii. Close file
iii. Create file
iv. Read record
v. Write record
vi. Read record randomly
(b) Does FCBs support error codes, and, success or failure flag? Explain. [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. 4
(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]
⋆⋆⋆⋆⋆
2 of 2