Changeset d160dda in buchla-emu
- Timestamp:
- 09/07/2017 03:34:47 PM (7 years ago)
- Branches:
- master
- Children:
- a86b3ab
- Parents:
- c9d372a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emu/lcd.c
rc9d372a rd160dda 299 299 default: 300 300 rv = 0x00; 301 err("Invalid cur value %d in lcd_read", cur);302 301 break; 303 302 } … … 354 353 } 355 354 } 356 else {357 err("Invalid cur value %d in lcd_write", cur);358 }359 355 break; 360 356 … … 366 362 else if (cur_c == 1) { 367 363 cur = cur | ((int32_t) val << 8); 364 if (cur < BASE_TXT || (cur >= BASE_TXT + TXT_W * TXT_H && cur < BASE_GFX) || cur >= BASE_GFX + GFX_W * GFX_H) { 365 err("Invalid cur value %d", cur); 366 } 368 367 cur_c = 0; 369 368 }
Note:
See TracChangeset
for help on using the changeset viewer.