|
|
| version 1.8, 2004/02/18 21:58:41 | version 1.10, 2004/06/03 16:20:52 |
|---|---|
| Line 239 void maketext(int text_renewal) { | Line 239 void maketext(int text_renewal) { |
| edi = esi; | edi = esi; |
| gaiji1st = 0; | gaiji1st = 0; |
| kanji2nd = FALSE; | kanji2nd = FALSE; |
| lastbitp = 0; // ver0.28 | lastbitp = 0; |
| for (x=0; x<TEXTXMAX; x++) { // width80 | for (x=0; x<TEXTXMAX; x++) { // width80 |
| if (edi == csrw) { | if (edi == csrw) { |
| cur_line = x; | cur_line = x; |
| Line 252 void maketext(int text_renewal) { | Line 252 void maketext(int text_renewal) { |
| } | } |
| if (kanji2nd) { | if (kanji2nd) { |
| kanji2nd = FALSE; | kanji2nd = FALSE; |
| bitmap[x] = lastbitp + 0x800; // ver0.28 | bitmap[x] = lastbitp + 0x800; |
| curx[x-1] |= 0x80; | curx[x-1] |= 0x80; |
| curx[x] |= curx[x-1] & 0x20; // ver0.28 | curx[x] |= curx[x-1] & 0x20; |
| } | } |
| else if (!(mem[0xa0001 + edi*2] & gdc.bitac)) { | else if (!(mem[0xa0001 + edi*2] & gdc.bitac)) { |
| gaiji1st = 0; | gaiji1st = 0; |
| Line 279 void maketext(int text_renewal) { | Line 279 void maketext(int text_renewal) { |
| kc = LOADINTELWORD(mem + 0xa0000 + edi*2); | kc = LOADINTELWORD(mem + 0xa0000 + edi*2); |
| bitmap[x] = (kc & 0x7f7f) << 4; | bitmap[x] = (kc & 0x7f7f) << 4; |
| kc &= 0x7e; | kc &= 0x7e; |
| if (kc == 0x56) { // ver0.28 | if (kc == 0x56) { |
| tramflag.gaiji = 1; | tramflag.gaiji = 1; |
| if ((gaiji1st) && | if ((gaiji1st) && |
| (bitmap[x] == (lastbitp & (~15)))) { | (bitmap[x] == (lastbitp & (~15)))) { |
| Line 290 void maketext(int text_renewal) { | Line 290 void maketext(int text_renewal) { |
| } | } |
| else { | else { |
| gaiji1st = 0; | gaiji1st = 0; |
| if ((kc < 0x08) || (kc >= 0x0c)) { | if ((kc < 0x09) || (kc >= 0x0c)) { // ver0.78 |
| kanji2nd = TRUE; | kanji2nd = TRUE; |
| } | } |
| } | } |
| // ver0.28 | |
| if ((curx[x] & TXTATR_BG) && (gdc.mode1 & 1)) { | if ((curx[x] & TXTATR_BG) && (gdc.mode1 & 1)) { |
| curx[x] |= 0x20; | curx[x] |= 0x20; |
| bitmap[x] += 8; | bitmap[x] += 8; |
| Line 335 void maketext(int text_renewal) { | Line 334 void maketext(int text_renewal) { |
| if ((nowline >= (gdc.m.para[GDC_CSRFORM+1] & 0x1f)) && | if ((nowline >= (gdc.m.para[GDC_CSRFORM+1] & 0x1f)) && |
| (nowline <= (gdc.m.para[GDC_CSRFORM+2] >> 3))) { | (nowline <= (gdc.m.para[GDC_CSRFORM+2] >> 3))) { |
| color[cur_line] |= 256; | color[cur_line] |= 256; |
| if (curx[cur_line] & 0x80) { // ver0.28 | if (curx[cur_line] & 0x80) { |
| color[cur_line+1] |= 256; | color[cur_line+1] |= 256; |
| } | } |
| } | } |
| else { | else { |
| color[cur_line] &= ~(256); | color[cur_line] &= ~(256); |
| if (curx[cur_line] & 0x80) { // ver0.28 | if (curx[cur_line] & 0x80) { |
| color[cur_line+1] &= ~(256); | color[cur_line+1] &= ~(256); |
| } | } |
| } | } |
| Line 389 void maketext(int text_renewal) { | Line 388 void maketext(int text_renewal) { |
| } | } |
| q += 4; | q += 4; |
| } | } |
| // virtical line ver0.27 | |
| if ((line_effect & TXTATR_VL) && (!(gdc.mode1 & 1))) { | if ((line_effect & TXTATR_VL) && (!(gdc.mode1 & 1))) { |
| // width80 | // width80 |
| q -= TEXTXMAX * 8; | q -= TEXTXMAX * 8; |
| Line 550 void maketext40(int text_renewal) { | Line 548 void maketext40(int text_renewal) { |
| edi = esi; | edi = esi; |
| gaiji1st = 0; | gaiji1st = 0; |
| kanji2nd = 0; | kanji2nd = 0; |
| lastbitp = 0; // ver0.28 | lastbitp = 0; |
| for (x=0; x<(TEXTXMAX/2); x++) { // width40 | for (x=0; x<(TEXTXMAX/2); x++) { // width40 |
| if (edi == csrw) { | if (edi == csrw) { |
| cur_line = x; | cur_line = x; |
| Line 563 void maketext40(int text_renewal) { | Line 561 void maketext40(int text_renewal) { |
| } | } |
| if (kanji2nd) { | if (kanji2nd) { |
| kanji2nd = FALSE; | kanji2nd = FALSE; |
| bitmap[x] = lastbitp + 0x800; // ver0.28 | bitmap[x] = lastbitp + 0x800; |
| curx[x-1] |= 0x80; | curx[x-1] |= 0x80; |
| curx[x] |= curx[x-1] & 0x20; // ver0.28 | curx[x] |= curx[x-1] & 0x20; |
| } | } |
| else if (!(mem[0xa0001 + edi*2] & gdc.bitac)) { | else if (!(mem[0xa0001 + edi*2] & gdc.bitac)) { |
| gaiji1st = 0; | gaiji1st = 0; |
| Line 590 void maketext40(int text_renewal) { | Line 588 void maketext40(int text_renewal) { |
| kc = LOADINTELWORD(mem + 0xa0000 + edi*2); | kc = LOADINTELWORD(mem + 0xa0000 + edi*2); |
| bitmap[x] = (kc & 0x7f7f) << 4; | bitmap[x] = (kc & 0x7f7f) << 4; |
| kc &= 0x7e; | kc &= 0x7e; |
| if (kc == 0x56) { // ver0.28 | if (kc == 0x56) { |
| tramflag.gaiji = 1; | tramflag.gaiji = 1; |
| if ((gaiji1st) && | if ((gaiji1st) && |
| (bitmap[x] == (lastbitp & (~15)))) { | (bitmap[x] == (lastbitp & (~15)))) { |
| Line 601 void maketext40(int text_renewal) { | Line 599 void maketext40(int text_renewal) { |
| } | } |
| else { | else { |
| gaiji1st = 0; | gaiji1st = 0; |
| if ((kc < 0x08) || (kc >= 0x0c)) { | if ((kc < 0x09) || (kc >= 0x0c)) { // ver0.78 |
| kanji2nd = TRUE; | kanji2nd = TRUE; |
| } | } |
| } | } |
| // ver0.28 | |
| if ((curx[x] & TXTATR_BG) && (gdc.mode1 & 1)) { | if ((curx[x] & TXTATR_BG) && (gdc.mode1 & 1)) { |
| curx[x] |= 0x20; | curx[x] |= 0x20; |
| bitmap[x] += 8; | bitmap[x] += 8; |
| Line 646 void maketext40(int text_renewal) { | Line 643 void maketext40(int text_renewal) { |
| if ((nowline >= (gdc.m.para[GDC_CSRFORM+1] & 0x1f)) && | if ((nowline >= (gdc.m.para[GDC_CSRFORM+1] & 0x1f)) && |
| (nowline <= (gdc.m.para[GDC_CSRFORM+2] >> 3))) { | (nowline <= (gdc.m.para[GDC_CSRFORM+2] >> 3))) { |
| color[cur_line] |= 256; | color[cur_line] |= 256; |
| if (curx[cur_line] & 0x80) { // ver0.28 | if (curx[cur_line] & 0x80) { |
| color[cur_line+1] |= 256; | color[cur_line+1] |= 256; |
| } | } |
| } | } |
| else { | else { |
| color[cur_line] &= ~(256); | color[cur_line] &= ~(256); |
| if (curx[cur_line] & 0x80) { // ver0.28 | if (curx[cur_line] & 0x80) { |
| color[cur_line+1] &= ~(256); | color[cur_line+1] &= ~(256); |
| } | } |
| } | } |
| Line 716 void maketext40(int text_renewal) { | Line 713 void maketext40(int text_renewal) { |
| } | } |
| q += 12; | q += 12; |
| } | } |
| // virtical line ver0.27 | |
| if ((line_effect & TXTATR_VL) && (!(gdc.mode1 & 1))) { | if ((line_effect & TXTATR_VL) && (!(gdc.mode1 & 1))) { |
| // width40 | // width40 |
| q -= TEXTXMAX * 8; | q -= TEXTXMAX * 8; |