- if (memory_id == INT_MEM_ID) {
- crc_old = crc_internal;
- } else if (memory_id == EXT_MEM_ID) {
- crc_old = crc_external;
- }
-
- /*
- * Use CRC to detect which rows have changed. This is only to
- * improve performance when using stepping mode, as we then only update
- * rows which have been modified.
- */
- buf8 = memory_getbuf(memory_id, Address);
- crc_new = crc32(0L, Z_NULL, 0);
- crc_new = crc32(crc_new, buf8, cfg->bytes_per_row);
-
- if (crc_new == crc_old[row]) {
- continue;
- } else {
- crc_old[row] = crc_new;
- log_debug(" Row %02d value(s) change", row);
- }
+ /* Only update row if it has been modified. */
+ if (memwin_row_changed(memory_id, row, address)) {
+ /* Display base address. */
+ int2asciihex(address, str, 4);