BC190405733 Code of Assembly
BC190405733 Code of Assembly
BC190405733 Code of Assembly
Any other formats like scan images, PDF, zip, rar, ppt and bmp etc. will not be accepted.
Topic Covered:
Clearing the Screen and String Printing, keyboard interrupt service routine.
Interrupts Handling, Dos Interrupt, BIOS Video Services.
NOTE
No assignment will be accepted after the due date via email in any case (whether it is the case of load
shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of
deadline. It is recommended to upload solution file at least two days before its closing date.
If you people find any mistake or confusion in assignment (Question statement), please consult with
your instructor before the deadline. After the deadline no queries will be entertained in this regard.
Syllabus:-
Lectures # 01 - 33.
cs401@vu.edu.pk
2- While pressing the left shift button clear the screen and
Prints your VU ID on the console screen using BIOS Video Services.
Solution:
[org 0x0100]
jmp start
vuname db' Hafiz Ahmad Bin Umer','$'
vuid db'bc190405733','$'
kbisr: push ax
push es
mov ax, 0xb800
mov es, ax
in al, 0x60
cmp al, 0x2a
jne nextcmp
call cls
jmp nomatch
nextcmp: cmp al, 0x36
jne nomatch
call cls
cls:
pusha
mov ah, 0x00
mov al, 0x03
int 0x10
popa
ret