New 1
New 1
MOV DL, 'o' ; Replace 'o' with the second character of your name
INT 21h
MOV DL, 'u' ; Replace 'u' with the third character of your name
INT 21h
PRINT_VUID:
MOV AL, [SI] ; Load the current character from the VUID string
CMP AL, 0 ; Check if the character is null (end of string)
JE CHECK_SHIFT ; If yes, jump to check shift label
CHECK_SHIFT:
MOV AH, 11h ; Function to check the state of the shift key
INT 16h ; Call BIOS interrupt to check the state of the shift key
EXIT:
MOV AH, 4Ch ; Function to exit the program
INT 21h ; Terminate the program
PRINT_ASCENDING:
MOV SI, OFFSET input_buffer ; Reset the pointer to the input string
PRINT_DESCENDING:
MOV SI, OFFSET input_buffer ; Reset the pointer to the input string
PRINT_DESCENDING_LOOP:
LODSB ; Load the current character from the input string
CMP AL, 0 ; Check if the character is null (end of string)
JE EXIT ; If yes, jump to exit label
; Data section
input_buffer DB 12 DUP('$') ; Buffer to store the input string (maximum 11
characters + null terminator)