Skip to content

Commit

Permalink
fix: Fix handling PC Start value input
Browse files Browse the repository at this point in the history
Fixes #69
  • Loading branch information
debjitbis08 committed Nov 13, 2024
1 parent f377236 commit 188f0fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Actions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ export function Actions() {
draftStore.assembled = result.assembled;
draftStore.errors = [];
draftStore.programState = 'Loaded';
draftStore.pcStartValue = result.pcStartValue != null ? result.pcStartValue : 0;
draftStore.programCounter = result.pcStartValue != null ? result.pcStartValue : 0;
draftStore.pcStartValue = result.pcStartValue != null ? result.pcStartValue : store.pcStartValue;
draftStore.programCounter = result.pcStartValue != null ? result.pcStartValue : store.pcStartValue;
for (const line of result.assembled) {
draftStore.memory[line.currentAddress] = line.data;
}
Expand Down

0 comments on commit 188f0fe

Please sign in to comment.