Writing to read-only data selector now causes a fault.

This commit is contained in:
TomW 2015-06-21 14:54:58 +01:00
commit b5a498683a
3 changed files with 12 additions and 10 deletions

View file

@ -158,6 +158,7 @@ static int opMOV_b_imm_a16(uint32_t fetchdat)
uint8_t temp;
fetch_ea_16(fetchdat);
temp = readmemb(cs,pc); pc++; if (abrt) return 1;
CHECK_WRITE(ea_seg, eaaddr, eaaddr);
seteab(temp);
CLOCK_CYCLES(timing_rr);
return abrt;