mirror of
https://github.com/specht/champ.git
synced 2024-11-26 16:49:35 +00:00
documentation
This commit is contained in:
parent
2c798a32a4
commit
0a8f995832
@ -84,7 +84,7 @@ By default, all champ values get recorded before the operation has been executed
|
|||||||
|
|
||||||
### Global variables
|
### Global variables
|
||||||
|
|
||||||
In addition to watching individual registers, you can also watch global variables (([example02.yaml](example02.yaml) / [example02.s](example02.s))):
|
In addition to watching individual registers, you can also watch global variables ([example02.yaml](example02.yaml) / [example02.s](example02.s)):
|
||||||
|
|
||||||
```
|
```
|
||||||
DSK test
|
DSK test
|
||||||
@ -103,7 +103,7 @@ TEST LDA #0
|
|||||||
RTS
|
RTS
|
||||||
```
|
```
|
||||||
|
|
||||||
Here, we declare the type of the global variable in the same place the variable itself is declared, using @u8@, @s8@, @u16@, or @s16@. Later, we can just watch the variable by issuing a champ directive like `@FOO@`. In this example, we use the `(post)` option to see the variable contents after the `STA` operation.
|
Here, we declare the type of the global variable in the same place the variable itself is declared, using `u8`, `s8`, `u16`, or `s16`. Later, we can just watch the variable by issuing a champ directive like `@FOO@`. In this example, we use the `(post)` option to see the variable contents after the `STA` operation.
|
||||||
|
|
||||||
![FOO at PC 0x600b](doc/example02_1.gif?raw=true)
|
![FOO at PC 0x600b](doc/example02_1.gif?raw=true)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user