Professional Documents
Culture Documents
bc210409123 Bisma
bc210409123 Bisma
Muhammad Liaqat
CS401:Computer Architecture and Assembly Language Programming
Assignment No. 02
Question No 01
ASSEMBLY CODE
code:
[org 0x0100]
jmp start
section .data
start:
mov al, 0
int 0x10
call print_string_color
int 0x10
int 0x10
call print_string_color
mov ax, 0
l1:
int 0x21
kbisr:
push ax
push es
call print_string_color
; print 'VUID' on the 2nd row of the screen
int 0x10
int 0x10
call print_string_color
int 0x10
int 0x10
call print_string_color
.nextcmp:
call print_string_color
int 0x10
int 0x10
call print_string_color
mov ah, 0x0e ; BIOS teletype function
int 0x10
int 0x10
call print_string_color
.nomatch:
pop es
pop ax
iret
.done:
ret
.show_desc_values:
jmp .done
.show_asc_values:
jmp .done
print_string_color:
je .done
jmp print_string_color
.done:
Ret