Вы находитесь на странице: 1из 5

Code No: R05321503 Set No.

1
III B.Tech Supplimentary Examinations, Aug/Sep 2008
SYSTEMS PROGRAMMING
(Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. (a) Define INT instruction. Explain with examples.


(b) How does the INT instruction affect the stack?
(c) How does IRET instruction affect the stack? [5+5+6]

2. Briefly explain all the Boolean operations with examples. [16]

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. Compare and contrast IFNDEF and IFIDN conditions in macros. [16]

5. Describe the features of the following BIOS Interrupt 10H for graphics functions
with example code:

(a) Read Light Pen Position (04H)


(b) Set Palette Registers (10H)
(c) Set Color Palette (0BH)
(d) Display a character at cursor position (0AH). [16]

6. Explain the following with help of an example:

(a) Pointer entries in the FAT.


(b) Sample FAT entries.
(c) Handling 12-bit FAT entries in Reversed-byte sequence.
(d) Handling 16-bit FAT entries. [4+4+4+4]

7. (a) Explain about High-Memory Area.


(b) Code the instructions to reset the diskette controller.
(c) Code the instructions to reset the Disk System. [6+5+5]

8. Explain the general design procedure for an assembler. [16]

⋆⋆⋆⋆⋆

1 of 1
Code No: R05321503 Set No. 2
III B.Tech Supplimentary Examinations, Aug/Sep 2008
SYSTEMS PROGRAMMING
(Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. (a) List the differences between the BALR and USING instructions? What hap-
pens to each at assembly time? At execution time?
(b) What are the differences between
INDEX EQU 5
INDEX DC F‘5’ [8+8]

2. (a) Write a Assembly Language Program to prints 16-bit unsigned-number in


decimal notation which is in AX region.
(b) Write a procedure called SUBSTRING which prints TRUE if string2 is sub-
string of string1 otherwise it should print FALSE onto the screen. String1 and
String2 are character strings. [8+8]

3. (a) Briefly explain SCAN string instruction with an example.


(b) Briefly explain Store string instruction with an example. [8+8]

4. Compare and contrast IFNDEF and IFIDN conditions in macros. [16]

5. (a) Discuss about Extended function keys.


(b) Explain the differences among INT 16H functions 00H, 01H and 10H. [8+8]

6. (a) What are the Error return codes for


i. File not found
ii. Invalid Handle.
(b) Under What circumstances should you close a file that is used only for input?
Explain. [10+6]

7. Explain briefly any eight BIOS Diskette functions. [16]

8. Write short notes on:

(a) Assembler
(b) Loader
(c) Compiler
(d) Macro Instructions. [4+4+4+4]

⋆⋆⋆⋆⋆

1 of 1
Code No: R05321503 Set No. 3
III B.Tech Supplimentary Examinations, Aug/Sep 2008
SYSTEMS PROGRAMMING
(Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. (a) Show the EAX register and the size and position of the AH, AL, and AX
within it?
(b) Code the assembly language instructions to move the value 25 to the following
registers:
i. CH
ii. CL
iii. CX
iv. ECX. [8+8]

2. Explain SHORT, NEAR and FAR addressing types in JMP instructions with suit-
able examples? [16]

3. (a) What mode permits the use of screen pages?


(b) Explain how the common attribute byte limits the number of available colors.
[8+8]

4. (a) Explain the design overview of macro preprocessor.


(b) Explain the PURGE directive. [8+8]

5. Briefly discuss about DOS Interrupt 21H for keyboard input. [16]

6. Explain the following with help of an example:

(a) Pointer entries in the FAT.


(b) Sample FAT entries.
(c) Handling 12-bit FAT entries in Reversed-byte sequence.
(d) Handling 16-bit FAT entries. [4+4+4+4]

7. Explain briefly any eight BIOS Hard Disk functions. [16]

8. Explain the following in detail:

(a) Macro instruction arguments


(b) Macro calls within Macros. [8+8]

⋆⋆⋆⋆⋆

1 of 1
Code No: R05321503 Set No. 4
III B.Tech Supplimentary Examinations, Aug/Sep 2008
SYSTEMS PROGRAMMING
(Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. (a) Provide the machine code instructions for the following operations
i. Move the hex value 4629 to the AX register
ii. Add the hex value 036A to the AX register.
(b) Give the purpose of each the following DEBUG commands?
i. A
ii. D
iii. E
iv. P
v. Q [8+8]

2. Explain the following with examples:

(a) AAS and AAM instructions


(b) IMVL and CBW instructions
(c) LODSD and CMPSW
(d) Keyboard input functions. [16]

3. Using String Operations implement procedures for reversing a string, copying a


string and length of a string. [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. Explain the features of the following BIOS Interrupt 16H for keyboard input func-
tions with example code:

(a) Read a Character (00H)


(b) Read a Keyboard Character (10H)
(c) Return the Current Shift Status (02H)
(d) Return the Current Keyboard Shift Status (12H). [16]

6. (a) What is the purpose of File Control Block and Explain its structure?
(b) Explain Sequential reading of a Disk file. [8+8]

1 of 2
Code No: R05321503 Set No. 4
7. 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 the location 1A25[0] H. Showing
calculations where appropriate, state the contents of each of the registers at the
time of loading (ignore reverse-byte notation) :

(a) CS
(b) DS
(c) ES
(d) SS
(e) SP. [16]

8. Explain the general design procedure for an assembler. [16]

⋆⋆⋆⋆⋆

2 of 2