- Timestamp:
- 09/02/2017 06:31:51 PM (7 years ago)
- Branches:
- master
- Children:
- 4ed9bfe, 5475ecf
- Parents:
- b6f5f64
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emu/vid.c
rb6f5f64 r4f967e8 319 319 } 320 320 321 int32_t w = (od[1] & 0xfc00) >> 10;322 323 if (w == 0) {321 int32_t w64 = (od[1] & 0xfc00) >> 10; 322 323 if (w64 == 0) { 324 324 ver3("vid obj %d empty", i); 325 325 continue; … … 349 349 350 350 int32_t x = (od[1] & 0x03ff) * 2; 351 int32_t off = od[2]; 351 int32_t off, fon_h, w; 352 353 if (cb) { 354 off = od[2]; 355 int32_t vcr1 = mem[REG_VCR1]; 356 fon_h = (vcr1 & 0xf000) >> 12; 357 w = w64 * 4 / 3 * 2 * 8; 358 } 359 else { 360 off = ((od[0] & 0x00c0) << 10) | od[2]; 361 fon_h = -1; 362 w = w64 * 16; 363 } 352 364 353 365 obj_t *obj = objs + n_objs; 354 355 if (cb) {356 int32_t vcr1 = mem[REG_VCR1];357 obj->fon_h = (vcr1 & 0xf000) >> 12;358 w = w * 4 / 3 * 2 * 8; // 4 words per block, 3 words per 2 chars, 8 pixels per char359 }360 else {361 off |= (od[0] & 0x00c0) << 10;362 obj->fon_h = -1;363 w *= 16; // 16 pixels per block364 }365 366 366 367 obj->x = x; … … 370 371 obj->mem = mem + off; 371 372 obj->tran = tde; 373 obj->fon_h = fon_h; 372 374 373 375 ver2("vid obj %d %c %c %d:%d %d+%d 0x%05x",
Note:
See TracChangeset
for help on using the changeset viewer.