Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pm100 authored Jan 4, 2024
1 parent c8ccf38 commit 75dee97
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ Sets a breakpoint
Examples

`>> b ._main`

`>> b $27ba`

### bl
Expand Down Expand Up @@ -162,7 +163,7 @@ run until return from current function call.

### watch (w)

watch for memory read or write. Will breaak on the read of write of a location
watch for memory read or write. Will break on the read or write of a location

`>> w -r -w <addr>`

Expand Down Expand Up @@ -214,21 +215,27 @@ Displays the current 6502 stack

Expression evaluator. Anywhere that an address can be given you can have an expression

The expr command evaluates an express, this can be useful for instecting thingss or just checking expression syntax
The expr command evaluates an expression, this can be useful for inspecting things or just checking expression syntax

an expression starts with '='. YOu can then have numbers, symbols, parantheses, registers, plus deference operations
An expression starts with '='. You can then have numbers, symbols, parantheses, registers, plus dereference operations

- `=xr` returns the x register
- `=.ptr1+0x20` returns that symbol plus 0x20
- `=@(.ptr1)` returns what ptr1 points at
- `=@ @(.ptr1)` returns what the ptr1 at ptr1 points to
- `=@(.ptr1+xr)` returns what ptr1 + xr points to

`@` is the dereference operation for a word

`@b` is the deref of a byte


Useful quickies

`dis =pc`
`expr =xr`


Note that you may need to enclose the whole expression in quotes so that it doesnt look like command arguments to the line parser

### quit

0 comments on commit 75dee97

Please sign in to comment.