Added support for \n, \t and \\ in the string printing function
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
; Outputs the contents of a file
|
||||
util_cat:
|
||||
pusha
|
||||
|
||||
call os_print_newline
|
||||
|
||||
mov si, cat_prompt
|
||||
call os_print_string
|
||||
|
||||
mov ax, 11 ; length of input
|
||||
mov di, user_input
|
||||
|
||||
popa
|
||||
ret
|
||||
|
||||
|
||||
section .data:
|
||||
cat_prompt db 'Enter file name: ', 0
|
||||
Reference in New Issue
Block a user