You are on page 1of 7

Code No: RR311501 Set No.

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
⋆⋆⋆⋆⋆

1. (a) Explain Symbol Table.


(b) Provide the machine code instructions for the following operations.
i. Move the hex value 324B to the AX register.
ii. Add the immediate hex value 024B to the AX.
(c) Use DEBUG to create a code that displays the phrase “Jawaharlal Nehru” .
Start with A 100 for instruction and A 110 for the phrase. [3+6+7]

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]

4. (a) Under what circumstances would the use of macros be recommended?


(b) Explain with an example, the implementation of macro calls with in macros.
[8+8]

5. (a) Explain different types of graphics modes.

1 of 2
Code No: RR311501 Set No. 1
(b) Explain how the common attributes bytes limit the number of available colors.
[8+8]

6. (a) Explain the following terms with respect to a disk.


i. Track
ii. Sector
iii. Cylinder
iv. Cluster
(b) What is the purpose of a disk controller ? Explain briefly. [8+8]

7. (a) What is TSR ? How TSR is activated ? Explain.


(b) A link map for an .EXE program shows the following:
START STOP LENGTH NAME CLASS
00000H 0002FH 00030H STACK STACK
00030H 0005BH 0002CH CODESG CODE
00060H 0007CH 0001DH DATASG DATA
DOS loads the program with the PSP beginning at location 1A25[0]H. Show-
ing calculations wherever required, give the contents of each of the following
registers at the time of loading ( ignore reverse-byte notation):
i. CS;
ii. DS;
iii. ES;
iv. SS;
v. SP [5+11]

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
⋆⋆⋆⋆⋆

1. (a) What is a reserved word in assembly language? Give two examples.


(b) Explain the purpose of a procedure.How do you define the beginning and end
of a procedure? When do you define a procedure as FAR? When do you define
a procedure as NEAR?
(c) Distinguish between the statement that ends an assembly and the statements
That end execution. [3+9+4]

2. Explain How the Boolean Operations are used in processing Arithmetic Data? [16]

3. Explain Sorting of Entries in a given Table with an Example? [16]

4. (a) Under what circumstances would the use of macros be recommended?


(b) Explain with an example, the implementation of macro calls with in macros.
[8+8]

5. Write an Assembly language program to illustrate displaying a menu setting a uses


press the Up and Down Arrow keys toselect an items from menu. [16]

6. (a) What is FCB? Explain briefly the contents of FCB.


(b) Explain the functions of INT 21H used for sequential reading of disk files using
FCBs. [8+8]

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]

8. (a) Explain various phases in loaders?


(b) How the loading and linking process can be resolved in relocating loaders?
[8+8]

⋆⋆⋆⋆⋆

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
⋆⋆⋆⋆⋆

1. (a) Explain the terms.


i. Segments.
ii. Off sets.
iii. Boundaries.
(b) What are
i. Three kinds of segments
ii. Their maximum size and
iii. The address boundary on which they begin.
(c) Show the EAX register and the size and position of the AH, AL and AX within
it. [6+3+7]

2. Write the structure of LOOP instruction? Write a program to find the sum of 1 to
n numbers using LOOP construct? [16]

3. Write an Assembly Language Program for finding the prime factorization of a


number, n.
Suppose n = 12 then ; factors = 2, 2, 3. [16]

4. (a) What is a dummy argument?


(b) Compare and contrast the properties of macros and subroutines with respect
to the following.
i. Code space requirements.
ii. Execution speed
iii. Processing required by the assembler
iv. Flexibility and generality. [6+10]

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]

8. Write about various data structures used in assembler design. [16]

⋆⋆⋆⋆⋆

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]

4. (a) What is a dummy argument?


(b) Compare and contrast the properties of macros and subroutines with respect
to the following.
i. Code space requirements.
ii. Execution speed
iii. Processing required by the assembler
iv. Flexibility and generality. [6+10]

5. Write an Assembly language program to illustrate displaying a menu setting a uses


press the Up and Down Arrow keys toselect an items from menu. [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]

8. (a) In an assembler it is often convenient to enable pass 1 to access symbols from


the symbol table before the pass is completed For eg, in the following Pseudo-
opA EQU B It is necessary to obtain the value of B to get value for A. In view
of this requirement, suggest the best method of data storage and retrieval for
symbol table. Explain your answer.
(b) Explain the format of Data Bases used by assembler pass 1 and pass 2.
[10+6]

⋆⋆⋆⋆⋆

2 of 2