Skip to content

Commit

Permalink
debugger: don't show negative address
Browse files Browse the repository at this point in the history
  • Loading branch information
evmar committed Sep 27, 2024
1 parent 15d8ecc commit c586abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/debugger/debugger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export class Debugger extends preact.Component<Debugger.Props, Debugger.State> {
mem={emulator.emu.memory()}
base={this.state.memBase}
highlight={this.state.memHighlight}
jumpTo={(addr) => this.setState({ memBase: addr })}
jumpTo={(addr) => this.setState({ memBase: Math.max(0, addr) })}
/>
),
mappings: () => (
Expand Down

0 comments on commit c586abd

Please sign in to comment.