Skip to content

Commit b75802c

Browse files
committed
Intento de arreglar falso comportamiento de dataBytes en microstep.
1 parent 3746afd commit b75802c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/marie.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,9 @@ export class MarieSim {
526526
this.addLog(action);
527527
}
528528

529+
if (typeof window !== 'undefined' && action && ['memwrite', 'memset'].includes(action.type)){
530+
window.dataBytes = calculateDataBytesOccupied(window.staticDataAddresses);
531+
}
529532
// Sumar al contador global
530533
if (typeof window !== 'undefined' && isRealMicroStep(action)) {
531534
window.microStepCount = (window.microStepCount || 0) + 1;

0 commit comments

Comments
 (0)