ED: Gotten l (list) working, need to work more on d (delete) as there's a bug with deleting lines that are not line 1.
This commit is contained in:
@@ -28,6 +28,8 @@ keyboard_check_key:
|
||||
; IN:
|
||||
; AX = output address
|
||||
; BX = max length
|
||||
; OUT:
|
||||
; BX = 1 if escape is pressed
|
||||
keyboard_display_input:
|
||||
pusha
|
||||
mov di, ax
|
||||
@@ -55,14 +57,15 @@ keyboard_display_input:
|
||||
jmp .check_key_pressed
|
||||
|
||||
.esc_key:
|
||||
stc
|
||||
popa
|
||||
mov bx, 1
|
||||
ret
|
||||
|
||||
.enter_key:
|
||||
mov al, 0
|
||||
stosb
|
||||
popa
|
||||
xor bx,bx
|
||||
ret ; Return to the parent function (whatever that may be)
|
||||
|
||||
.backspace:
|
||||
|
||||
Reference in New Issue
Block a user