From d542ed42d6da5e6d61b141cbb547722185a830af Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Tue, 25 Jul 2023 01:02:13 +0300 Subject: [PATCH] Serial init error handling removed: no more VGA text memory to print to --- src/serial.asm | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/src/serial.asm b/src/serial.asm index 39293ec..b4e3353 100644 --- a/src/serial.asm +++ b/src/serial.asm @@ -47,32 +47,12 @@ serialinit: out dx, al in al, dx cmp al, 0xae - je .noerror -.error: - push esi - push edi - push ax - mov esi, .errormsg - mov edi, 0xb8000 - mov ah, 64 - cld -.errorloop: - lodsb - or al, al - jz .errordone - stosw - jmp .errorloop -.errordone: - pop ax - pop edi - pop esi - jmp .end -.noerror: - mov [serialinitialized], 1 + jne .end ;; Set serial to normal operation mov dx, SERIAL_PORT+4 mov al, 0x0f out dx, al + mov [serialinitialized], 1 .end: pop ax ret