diff options
author | Javier <dev.git@javispedro.com> | 2022-04-02 16:34:17 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2022-04-02 16:38:30 +0200 |
commit | 3ca7b6c9cc23e118968b49a79f2b64fe4a3b73b3 (patch) | |
tree | 588b776137790d189b0f3f81b4ef22fbef04f2d3 /vboxlog.h | |
parent | aade1f47d34594216500f26ed0d21b23a1d1f4f1 (diff) | |
download | vbados-3ca7b6c9cc23e118968b49a79f2b64fe4a3b73b3.tar.gz vbados-3ca7b6c9cc23e118968b49a79f2b64fe4a3b73b3.zip |
readd VDS support so that it works under emm386 and win386+swap
Diffstat (limited to 'vboxlog.h')
-rw-r--r-- | vboxlog.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vboxlog.h b/vboxlog.h new file mode 100644 index 0000000..11ecf68 --- /dev/null +++ b/vboxlog.h @@ -0,0 +1,12 @@ +#ifndef VBOXDLOG_H +#define VBOXDLOG_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] + +#endif // VBOXDLOG_H |