|
|
| version 1.9, 2004/03/19 00:30:00 | version 1.12, 2006/12/16 09:52:19 |
|---|---|
| Line 11 | Line 11 |
| void bios0x1c(void) { | void bios0x1c(void) { |
| BYTE buf[6]; | UINT8 buf[6]; |
| switch(CPU_AH) { | switch(CPU_AH) { |
| case 0x00: // get system timer | case 0x00: // get system timer |
| calendar_get(buf); | calendar_get(buf); |
| MEML_WRITESTR(CPU_ES, CPU_BX, buf, 6); | MEMR_WRITES(CPU_ES, CPU_BX, buf, 6); |
| break; | break; |
| case 0x01: // put system timer | case 0x01: // put system timer |
| MEML_READSTR(CPU_ES, CPU_BX, buf, 6); | MEMR_READS(CPU_ES, CPU_BX, buf, 6); |
| mem[MEMB_MSW8] = buf[0]; | mem[MEMB_MSW8] = buf[0]; |
| calendar_set(buf); | calendar_set(buf); |
| break; | break; |
| Line 30 void bios0x1c(void) { | Line 30 void bios0x1c(void) { |
| SETBIOSMEM16(0x0001e, CPU_ES); | SETBIOSMEM16(0x0001e, CPU_ES); |
| SETBIOSMEM16(0x0058a, CPU_CX); | SETBIOSMEM16(0x0058a, CPU_CX); |
| iocore_out8(0x77, 0x36); | iocore_out8(0x77, 0x36); |
| /* through */ | /*FALLTHROUGH*/ |
| case 0x03: // continue interval timer | case 0x03: // continue interval timer |
| iocore_out8(0x71, 0x00); | iocore_out8(0x71, 0x00); |