File tree Expand file tree Collapse file tree 1 file changed +1
-26
lines changed
Expand file tree Collapse file tree 1 file changed +1
-26
lines changed Original file line number Diff line number Diff 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-
2119b_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
3529b_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
You can’t perform that action at this time.
0 commit comments