aboutsummaryrefslogtreecommitdiff
path: root/vboxlog.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-03 22:58:39 +0200
committerJavier <dev.git@javispedro.com>2022-04-03 22:58:39 +0200
commitf9b0699da8adb44fd91640180a7b70639a43449b (patch)
tree81fcbd285a306b85f21086d1c7d37e77af71ed12 /vboxlog.h
parent71f66c759930ce22f099ad1631f05ddb3e0ccd8a (diff)
downloadvbados-f9b0699da8adb44fd91640180a7b70639a43449b.tar.gz
vbados-f9b0699da8adb44fd91640180a7b70639a43449b.zip
replace some custom asm utils with watcom intrinsincs
Diffstat (limited to 'vboxlog.h')
-rw-r--r--vboxlog.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/vboxlog.h b/vboxlog.h
index 11ecf68..559566b 100644
--- a/vboxlog.h
+++ b/vboxlog.h
@@ -1,12 +1,12 @@
#ifndef VBOXDLOG_H
#define VBOXDLOG_H
+#include <conio.h>
+
/** Logs a single character to the VBox debug message port. */
-static void vbox_log_putc(char c);
-#pragma aux vbox_log_putc = \
- "mov dx, 0x504" \
- "out dx, al" \
- __parm [al] \
- __modify [dx]
+static inline void vbox_log_putc(char c)
+{
+ outp(0x504, c);
+}
#endif // VBOXDLOG_H