Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. getstring:
  2.         mov ah, 0x10            ; BIOS call, wait for key
  3.         int 0x16                ; wait for key
  4.  
  5.         cmp al, 0x0d            ; check for a carriage return character
  6.         je .newline             ; jump to the newline function
  7.  
  8.         mov ah, 0x0E            ; BIOS call, print string
  9.         int 0x10                ; print the string
  10.  
  11.         jmp getstring           ; go back to the beginning
  12.  
  13.  
  14. .newline:
  15.         mov al, 0x0a
  16.         int 0x10
  17.         jmp prompt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement