Skip to content

Commit d9076da

Browse files
author
Ian Seyler
committed
Remove extra io.asm code
1 parent 1654010 commit d9076da

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

src/syscalls/io.asm

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ b_input:
1616
test al, al
1717
jz b_input_no_key
1818
mov byte [key], 0x00 ; clear the variable as the keystroke is in AL now
19-
ret
20-
2119
b_input_no_key:
22-
bt qword [os_SysConfEn], 1 << 2
23-
jnc b_input_no_serial
24-
call serial_recv ; Try from the serial port
25-
b_input_no_serial:
2620
ret
2721
; -----------------------------------------------------------------------------
2822

@@ -33,26 +27,7 @@ b_input_no_serial:
3327
; RCX = number of chars to output
3428
; OUT: All registers preserved
3529
b_output:
36-
push rsi ; Message location
37-
push rcx ; Counter of chars left to output
38-
push rax ; AL is used for the output function
39-
40-
call [0x00100018]
41-
42-
; bt qword [os_SysConfEn], 1 << 2
43-
; jnc b_output_done
44-
;
45-
;b_output_nextchar:
46-
; jrcxz b_output_done ; If RCX is 0 then the function is complete
47-
; dec rcx
48-
; lodsb ; Get char from string and store in AL
49-
; call serial_send
50-
; jmp b_output_nextchar
51-
52-
b_output_done:
53-
pop rax
54-
pop rcx
55-
pop rsi
30+
call [0x00100018] ; Call kernel function in table
5631
ret
5732
; -----------------------------------------------------------------------------
5833

0 commit comments

Comments
 (0)