src/mess/drivers/pc6001.c
| r5928 | r5929 | |
| 99 | 99 | static UINT8 irq_vector = 0x00; |
| 100 | 100 | static UINT8 cas_switch,sys_latch; |
| 101 | 101 | |
| 102 | | #define CAS_LENGTH 0x3d32 |
| 102 | #define CAS_LENGTH 0x2ef1 |
| 103 | 103 | |
| 104 | 104 | static VIDEO_START( pc6001 ) |
| 105 | 105 | { |
| r5928 | r5929 | |
| 162 | 162 | |
| 163 | 163 | if(attr & 0x40) |
| 164 | 164 | { |
| 165 | | pen = (tile & 0xc0) >> 6 | (attr & 2)<<1; |
| 165 | if(attr & 0x10) //2x2 squares on a single cell |
| 166 | pen = (tile & 0x70)>>4; |
| 167 | else //2x3 |
| 168 | pen = (tile & 0xc0) >> 6 | (attr & 2)<<1; |
| 166 | 169 | |
| 167 | 170 | for(yi=0;yi<12;yi++) |
| 168 | 171 | { |
| r5928 | r5929 | |
| 170 | 173 | { |
| 171 | 174 | int i; |
| 172 | 175 | i = (xi & 4)>>2; //x-axis |
| 173 | | i+= (yi & 4)>>1; //y-axis 1 |
| 174 | | i+= (yi & 8)>>1; //y-axis 2 |
| 176 | if(attr & 0x10) //2x2 |
| 177 | { |
| 178 | i+= (yi >= 6) ? 2 : 0; //y-axis |
| 179 | } |
| 180 | else //2x3 |
| 181 | { |
| 182 | i+= (yi & 4)>>1; //y-axis 1 |
| 183 | i+= (yi & 8)>>1; //y-axis 2 |
| 184 | } |
| 175 | 185 | |
| 176 | 186 | color = ((tile >> i) & 1) ? pen+8 : 0; |
| 177 | 187 | |
| r5928 | r5929 | |
| 526 | 536 | static TIMER_CALLBACK(cassette_callback) |
| 527 | 537 | { |
| 528 | 538 | UINT8 *gfx_data = memory_region(machine, "cas"); |
| 529 | | static int i; |
| 539 | static UINT32 i; |
| 530 | 540 | |
| 531 | 541 | if(cas_switch == 1) |
| 532 | 542 | { |
| r5928 | r5929 | |
| 664 | 674 | |
| 665 | 675 | ROM_REGION( 0x10000, "cas", ROMREGION_ERASEFF ) |
| 666 | 676 | /* Load here your tape for now (and change the cas length macro according to what MESS returns) */ |
| 667 | | // ROM_LOAD( "magnetic field.cas", 0x0000, CAS_LENGTH, CRC(1) SHA1(1) ) |
| 677 | // ROM_LOAD( "ax7 demo.cas", 0x0000, CAS_LENGTH, CRC(1) SHA1(1) ) |
| 668 | 678 | ROM_END |
| 669 | 679 | |
| 670 | 680 | ROM_START( pc6001a ) |