|
|
| version 1.1, 2003/10/16 17:58:27 | version 1.4, 2004/02/20 08:32:23 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "i286.h" | #include "cpucore.h" |
| #include "memory.h" | |
| #include "lio.h" | #include "lio.h" |
| Line 8 typedef struct { | Line 7 typedef struct { |
| BYTE x[2]; | BYTE x[2]; |
| BYTE y[2]; | BYTE y[2]; |
| BYTE pal; | BYTE pal; |
| } MEMGPSET; | } LIOGPSET; |
| BYTE lio_gpset(void) { | REG8 lio_gpset(void) { |
| MEMGPSET gpset; | LIOGPSET gpset; |
| SINT16 x; | SINT16 x; |
| SINT16 y; | SINT16 y; |
| i286_memstr_read(I286_DS, I286_BX, &gpset, sizeof(gpset)); | i286_memstr_read(CPU_DS, CPU_BX, &gpset, sizeof(gpset)); |
| if (gpset.pal >= lio.gcolor1.palmax) { | if (gpset.pal >= lio.gcolor1.palmax) { |
| if (I286_AH == 2) { | if (CPU_AH == 2) { |
| gpset.pal = lio.gcolor1.bgcolor; | gpset.pal = lio.gcolor1.bgcolor; |
| } | } |
| else { | else { |
| Line 29 BYTE lio_gpset(void) { | Line 28 BYTE lio_gpset(void) { |
| x = (SINT16)LOADINTELWORD(gpset.x); | x = (SINT16)LOADINTELWORD(gpset.x); |
| y = (SINT16)LOADINTELWORD(gpset.y); | y = (SINT16)LOADINTELWORD(gpset.y); |
| lio_pset(x, y, gpset.pal); | lio_pset(x, y, gpset.pal); |
| return(0); | return(LIO_SUCCESS); |
| } | } |