Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getstring:
- mov ah, 0x10 ; BIOS call, wait for key
- int 0x16 ; wait for key
- cmp al, 0x0d ; check for a carriage return character
- je .newline ; jump to the newline function
- mov ah, 0x0E ; BIOS call, print string
- int 0x10 ; print the string
- jmp getstring ; go back to the beginning
- .newline:
- mov al, 0x0a
- int 0x10
- jmp prompt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement