src/lib/formats/dsk_dsk.c
| r15744 | r15745 | |
| 381 | 381 | track_header tr; |
| 382 | 382 | io_generic_read(io, &tr,track_offsets[(track<<1)+side],sizeof(tr)); |
| 383 | 383 | //printf("%d,%d %d, %d\n",track,side,tr.track_number, tr.gap3_length); |
| 384 | | int sec_location = track_offsets[(track<<1)+side] + 0x100; |
| 384 | //int sec_location = track_offsets[(track<<1)+side] + 0x100; |
| 385 | 385 | for(int j=0;j<tr.number_of_sector;j++) |
| 386 | 386 | { |
| 387 | 387 | sector_header sector; |
| 388 | 388 | io_generic_read(io, §or,track_offsets[(track<<1)+side]+sizeof(tr)+(sizeof(sector)*j),sizeof(sector)); |
| 389 | 389 | //printf("sec %02x %08x\n",sector.sector_id,sec_location); |
| 390 | 390 | |
| 391 | | sec_location += sector.data_lenght; |
| 391 | //sec_location += sector.data_lenght; |
| 392 | 392 | } |
| 393 | 393 | counter++; |
| 394 | 394 | } |
src/mess/drivers/pc88va.c
| r15744 | r15745 | |
| 231 | 231 | UINT32 tile_num; |
| 232 | 232 | UINT16 attr; |
| 233 | 233 | UINT8 attr_mode; |
| 234 | | UINT8 fg_col,bg_col,secret,reverse,blink,dwidc,dwid,uline,hline; |
| 234 | UINT8 fg_col,bg_col,secret,reverse; |
| 235 | //UINT8 blink,dwidc,dwid,uline,hline; |
| 235 | 236 | UINT8 screen_fg_col,screen_bg_col; |
| 236 | 237 | |
| 237 | 238 | count = (tvram[state->m_tsp.tvram_vreg_offset+0] | tvram[state->m_tsp.tvram_vreg_offset+1] << 8); |
| r15744 | r15745 | |
| 253 | 254 | |
| 254 | 255 | attr = (tvram[count+state->m_tsp.attr_offset] & 0x00ff); |
| 255 | 256 | |
| 256 | | fg_col = bg_col = reverse = blink = secret = dwidc = dwid = uline = hline = 0; |
| 257 | fg_col = bg_col = reverse = secret = 0; //blink = dwidc = dwid = uline = hline = 0; |
| 257 | 258 | |
| 258 | 259 | switch(attr_mode) |
| 259 | 260 | { |
| r15744 | r15745 | |
| 276 | 277 | case 1: |
| 277 | 278 | fg_col = (attr & 0xf0) >> 4; |
| 278 | 279 | bg_col = screen_bg_col; |
| 279 | | hline = (attr & 0x08) >> 3; |
| 280 | //hline = (attr & 0x08) >> 3; |
| 280 | 281 | reverse = (attr & 0x04) >> 2; |
| 281 | | blink = (attr & 0x02) >> 1; |
| 282 | //blink = (attr & 0x02) >> 1; |
| 282 | 283 | secret = (attr & 0x01) >> 0; |
| 283 | 284 | break; |
| 284 | 285 | /* |
| r15744 | r15745 | |
| 294 | 295 | case 2: |
| 295 | 296 | fg_col = screen_fg_col; |
| 296 | 297 | bg_col = screen_bg_col; |
| 297 | | dwidc = (attr & 0x80) >> 7; |
| 298 | | dwid = (attr & 0x40) >> 6; |
| 299 | | uline = (attr & 0x20) >> 5; |
| 300 | | hline = (attr & 0x10) >> 4; |
| 298 | //dwidc = (attr & 0x80) >> 7; |
| 299 | //dwid = (attr & 0x40) >> 6; |
| 300 | //uline = (attr & 0x20) >> 5; |
| 301 | //hline = (attr & 0x10) >> 4; |
| 301 | 302 | reverse = (attr & 0x04) >> 2; |
| 302 | | blink = (attr & 0x02) >> 1; |
| 303 | //blink = (attr & 0x02) >> 1; |
| 303 | 304 | secret = (attr & 0x01) >> 0; |
| 304 | 305 | break; |
| 305 | 306 | /* |
| r15744 | r15745 | |
| 328 | 329 | { |
| 329 | 330 | fg_col = screen_fg_col; |
| 330 | 331 | bg_col = screen_bg_col; |
| 331 | | dwidc = (attr & 0x80) >> 7; |
| 332 | | dwid = (attr & 0x40) >> 6; |
| 333 | | uline = (attr & 0x20) >> 5; |
| 334 | | hline = (attr & 0x10) >> 4; |
| 332 | //dwidc = (attr & 0x80) >> 7; |
| 333 | //dwid = (attr & 0x40) >> 6; |
| 334 | //uline = (attr & 0x20) >> 5; |
| 335 | //hline = (attr & 0x10) >> 4; |
| 335 | 336 | reverse = (attr & 0x04) >> 2; |
| 336 | | blink = (attr & 0x02) >> 1; |
| 337 | //blink = (attr & 0x02) >> 1; |
| 337 | 338 | secret = (attr & 0x01) >> 0; |
| 338 | 339 | } |
| 339 | 340 | } |
| r15744 | r15745 | |
| 346 | 347 | case 4: |
| 347 | 348 | fg_col = (attr & 0x0f) >> 0; |
| 348 | 349 | bg_col = (attr & 0x70) >> 4; |
| 349 | | blink = (attr & 0x80) >> 7; |
| 350 | //blink = (attr & 0x80) >> 7; |
| 350 | 351 | break; |
| 351 | 352 | /* |
| 352 | 353 | x--- ---- blink |
| r15744 | r15745 | |
| 357 | 358 | case 5: |
| 358 | 359 | fg_col = (attr & 0x0f) >> 0; |
| 359 | 360 | bg_col = (attr & 0x70) >> 4; |
| 360 | | blink = (attr & 0x80) >> 7; |
| 361 | | if((fg_col & 7) == 1) |
| 362 | | hline = 1; |
| 361 | //blink = (attr & 0x80) >> 7; |
| 362 | //if((fg_col & 7) == 1) |
| 363 | //hline = 1; |
| 363 | 364 | break; |
| 364 | 365 | default: |
| 365 | 366 | popmessage("Illegal text tilemap attribute mode %02x, contact MESSdev",attr_mode); |