|
|
| version 1.1, 2004/08/07 07:19:56 | version 1.4, 2004/08/10 08:28:49 |
|---|---|
| Line 2 | Line 2 |
| #include "pccore.h" | #include "pccore.h" |
| #include "iocore.h" | #include "iocore.h" |
| #include "vram.h" | #include "vram.h" |
| #include "makescrn.h" | |
| #include "makesub.h" | #include "makesub.h" |
| #include "font.h" | #include "font.h" |
| extern BYTE blinktest; | void makechr8(UINT8 *dst, UINT pos, UINT count, REG8 udtmp) { |
| UINT32 makechr8(UINT8 *dst, UINT pos, UINT count, REG8 udtmp) { | |
| REG8 atr; | REG8 atr; |
| REG8 ank; | REG8 ank; |
| Line 18 const UINT8 *pat; | Line 16 const UINT8 *pat; |
| MAKETXTFN fn; | MAKETXTFN fn; |
| atr = tram[TRAM_ATR + pos]; | atr = tram[TRAM_ATR + pos]; |
| if (atr & blinktest) { | if (atr & makescrn.blinktest) { |
| atr ^= X1ATR_REVERSE; | atr ^= TRAMATR_REVERSE; |
| } | } |
| if (udtmp & 0x10) { | if (udtmp & 0x10) { |
| pos = LOW11(pos - 1); | pos = LOW11(pos - 1); |
| Line 42 const UINT8 *pat; | Line 40 const UINT8 *pat; |
| } | } |
| (*fn)(dst, dst + count, pat); | (*fn)(dst, dst + count, pat); |
| (*makeatr8[atr & 15])(dst, dst + count); | (*makeatr8[atr & 15])(dst, dst + count); |
| return(0x40404040); | |
| } | } |
| else { // PCG | else { // PCG |
| if (!(knj & 0x90)) { // PCGの出力 | if (!(knj & 0x90)) { // PCGの出力 |
| Line 54 const UINT8 *pat; | Line 51 const UINT8 *pat; |
| fn = makeknj8fn[udtmp & 15]; | fn = makeknj8fn[udtmp & 15]; |
| } | } |
| makeatr_pcg8(dst, count, pat, atr, fn); | makeatr_pcg8(dst, count, pat, atr, fn); |
| return(0x80808080); | |
| } | } |
| } | } |
| UINT32 makechr16(UINT8 *dst, UINT pos, UINT count, REG8 udtmp) { | void makechr16(UINT8 *dst, UINT pos, UINT count, REG8 udtmp) { |
| REG8 atr; | REG8 atr; |
| REG8 ank; | REG8 ank; |
| Line 67 const UINT8 *pat; | Line 63 const UINT8 *pat; |
| MAKETXTFN fn; | MAKETXTFN fn; |
| atr = tram[TRAM_ATR + pos]; | atr = tram[TRAM_ATR + pos]; |
| if (atr & blinktest) { | if (atr & makescrn.blinktest) { |
| atr ^= X1ATR_REVERSE; | atr ^= TRAMATR_REVERSE; |
| } | } |
| if (udtmp & 0x10) { | if (udtmp & 0x10) { |
| pos = LOW11(pos - 1); | pos = LOW11(pos - 1); |
| Line 91 const UINT8 *pat; | Line 87 const UINT8 *pat; |
| (*makeatr8[atr & 15])(dst, dst + count); | (*makeatr8[atr & 15])(dst, dst + count); |
| (*makeatr8[atr & 15])(dst + MAKETEXT_STEP, | (*makeatr8[atr & 15])(dst + MAKETEXT_STEP, |
| dst + MAKETEXT_STEP + count); | dst + MAKETEXT_STEP + count); |
| return(0x40404040); | |
| } | } |
| else { // PCG | else { // PCG |
| if (!(knj & 0x90)) { // PCGの出力 | if (!(knj & 0x90)) { // PCGの出力 |
| Line 103 const UINT8 *pat; | Line 98 const UINT8 *pat; |
| fn = maketxt16fn[udtmp & 15]; | fn = maketxt16fn[udtmp & 15]; |
| } | } |
| makeatr_pcg16(dst, count, pat, atr, fn); | makeatr_pcg16(dst, count, pat, atr, fn); |
| return(0x80808080); | |
| } | } |
| } | } |