|
|
| version 1.2, 2003/12/08 00:55:30 | version 1.5, 2004/03/04 17:36:05 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "cpucore.h" | #include "cpucore.h" |
| #include "memory.h" | |
| #include "pccore.h" | #include "pccore.h" |
| #include "iocore.h" | #include "iocore.h" |
| #include "bios.h" | #include "bios.h" |
| Line 35 void bios0x19(void) { | Line 34 void bios0x19(void) { |
| if (speed >= 8) { | if (speed >= 8) { |
| speed = 4; // 1200bps | speed = 4; // 1200bps |
| } | } |
| if (mem[MEMB_BIOS_FLAG] & 0x80) { // 4MHz? | if (mem[MEMB_BIOS_FLAG1] & 0x80) { // 4MHz? |
| speed += 12; | speed += 12; |
| } | } |
| Line 96 void bios0x19(void) { | Line 95 void bios0x19(void) { |
| // ポインタ〜 | // ポインタ〜 |
| SETBIOSMEM16(MEMW_RS_CH0_OFST, CPU_DI); | SETBIOSMEM16(MEMW_RS_CH0_OFST, CPU_DI); |
| SETBIOSMEM16(MEMW_RS_CH0_SEG, CPU_ES); | SETBIOSMEM16(MEMW_RS_CH0_SEG, CPU_ES); |
| i286_memstr_write(CPU_ES, CPU_DI, &rsb, sizeof(rsb)); | MEML_WRITESTR(CPU_ES, CPU_DI, &rsb, sizeof(rsb)); |
| CPU_AH = 0; | CPU_AH = 0; |
| } | } |