output to bochs magic debug port as well

This commit is contained in:
2025-09-07 14:49:21 -04:00
parent c0d47d4db0
commit 875527aa98
2 changed files with 5 additions and 0 deletions

2
.gitignore vendored
View File

@@ -9,3 +9,5 @@ stevia-log
.vscode/ .vscode/
*.map *.map
compose-dev.yaml compose-dev.yaml
eth_null-tx.log
eth_null-txdump.txt

View File

@@ -91,6 +91,9 @@ PrintString:
mov si, [bp + 4] ; source string mov si, [bp + 4] ; source string
.print_L0: .print_L0:
movzx ax, byte [si] movzx ax, byte [si]
%ifdef __STEVIA_DEV_DEBUG
out 0xe9, byte al ; bochs magic debug port
%endif
push ax push ax
call PrintCharacter call PrintCharacter
add sp, 0x2 add sp, 0x2