|
|
| version 1.1, 2003/10/16 17:58:19 | version 1.3, 2003/12/08 00:55:30 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "i286.h" | #include "cpucore.h" |
| #include "memory.h" | #include "memory.h" |
| #include "pccore.h" | #include "pccore.h" |
| #include "iocore.h" | #include "iocore.h" |
| Line 17 static const char msg4[] = " MEMORY"; | Line 17 static const char msg4[] = " MEMORY"; |
| static UINT16 textout(UINT16 ptr, const char *str) { | static UINT16 textout(UINT16 ptr, const char *str) { |
| while(*str) { | while(*str) { |
| i286_membyte_write(0xa000, ptr, *str); | i286_membyte_write(0xa000, ptr, (BYTE)*str); |
| i286_membyte_write(0xa200, ptr, 0x43); | i286_membyte_write(0xa200, ptr, 0x43); |
| str++; | str++; |
| ptr += 2; | ptr += 2; |
| Line 42 void bios0x02(void) { | Line 42 void bios0x02(void) { |
| textout(ptr, msg4); | textout(ptr, msg4); |
| mem[0x004f8] = 0xfa; // cli | mem[0x004f8] = 0xfa; // cli |
| mem[0x004f9] = 0xf4; // hlt | mem[0x004f9] = 0xf4; // hlt |
| I286_CS = 0; | CPU_CS = 0; |
| I286_IP = 0x4f8; | CPU_IP = 0x4f8; |
| } | } |
| } | } |