More minor changes

This commit is contained in:
2023-12-26 21:25:58 +01:00
parent 39f7dba229
commit fee0869fad
4 changed files with 13 additions and 3 deletions
+4 -2
View File
@@ -11,9 +11,8 @@ launch:
mov si, controlsMsg
call drawString
xor cx, cx
mov di, hexCode
xor cx, cx ; Clear counter
getHexCh:
xor ax, ax
int 0x16
@@ -44,6 +43,7 @@ getHexCh:
stosb
mov dx, [hexByte]
call printHexByte
inc byte [codeLen]
xor cx, cx
mov al, ' '
mov ah, 0x0e
@@ -51,6 +51,7 @@ getHexCh:
jmp getHexCh
.backspace:
mov byte [hexByte], 0
dec byte [codeLen]
xor cx, cx
cmp di, hexByte ; Check if there's anything to delete
je getHexCh ; If not, ignore
@@ -116,6 +117,7 @@ backChars: db 8,8,8,' ',8,8,0
hexByte: db 0
codeLen: db 0
hexCode: times 256 db 0 ; Code buffer
ret
+1 -1
View File
@@ -4,7 +4,7 @@ start:
; Save the drive number from stack
mov byte [driveNumber], dl
mov bx, 0x8000
mov bx, 0x2000
mov es, bx
xor bx, bx
+5
View File
@@ -0,0 +1,5 @@
;
; Loads a file from the filetable into a memory location
;
loadFile: