mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-22 13:24:28 +02:00
From Evelyn, CPU unsupported message missing loading error msg address (pop si)
This commit is contained in:
parent
55fe761ebf
commit
618e682a3b
@ -222,7 +222,7 @@ cpu_abort:
|
|||||||
mov ah, 0Fh
|
mov ah, 0Fh
|
||||||
int 10h ; get video mode, bh = active page
|
int 10h ; get video mode, bh = active page
|
||||||
|
|
||||||
call .first
|
call .first ; print string that follows (address pushed by call)
|
||||||
|
|
||||||
%define LOADNAME "FreeDOS"
|
%define LOADNAME "FreeDOS"
|
||||||
db 13,10 ; (to emit a blank line after the tracecodes)
|
db 13,10 ; (to emit a blank line after the tracecodes)
|
||||||
@ -240,7 +240,9 @@ cpu_abort:
|
|||||||
mov bl, 07h ; page in bh, bl = colour for some modes
|
mov bl, 07h ; page in bh, bl = colour for some modes
|
||||||
int 10h ; write character (may change bp!)
|
int 10h ; write character (may change bp!)
|
||||||
|
|
||||||
|
db 0A8h ; [test al,imm8] skip "pop si" [=imm8] after the first iteration
|
||||||
.first:
|
.first:
|
||||||
|
pop si ; (first iteration only) get message address from stack
|
||||||
cs lodsb ; get character
|
cs lodsb ; get character
|
||||||
test al, al ; zero ?
|
test al, al ; zero ?
|
||||||
jnz .display ; no, display and get next character -->
|
jnz .display ; no, display and get next character -->
|
||||||
@ -253,7 +255,7 @@ cpu_abort:
|
|||||||
int 13h ; reset hard disks
|
int 13h ; reset hard disks
|
||||||
|
|
||||||
; this "test ax, imm16" opcode is used to
|
; this "test ax, imm16" opcode is used to
|
||||||
db 0A9h ; skip "sti" \ "hlt" during first iteration
|
db 0A9h ; skip "sti" \ "hlt" [=imm16] during first iteration
|
||||||
.wait:
|
.wait:
|
||||||
sti
|
sti
|
||||||
hlt ; idle while waiting for keystroke
|
hlt ; idle while waiting for keystroke
|
||||||
|
Loading…
x
Reference in New Issue
Block a user