Merge pull request 'Update syntax in README' (#9) from Dr-Carlos/fxos:master into master

Reviewed-on: https://gitea.planet-casio.com/Lephenixnoir/fxos/pulls/9
This commit is contained in:
Lephenixnoir 2022-12-08 17:23:23 +01:00
commit 0a908ad835
2 changed files with 5 additions and 7 deletions

View File

@ -95,18 +95,16 @@ cg_3.60 @ 0x80000000>
A new empty space can be created with `vc`, and then files can be mapped
manually with `vm`. File paths are interpreted relative to `FXOS_PATH` folders
even if they start with `/`. Alternatively, a new virtual space can be created
and initialized by running a script with the `vct` command.
even if they start with `/`.
Finally, the `vs` command is used to switch between different virtual spaces.
**Symbols**
Each virtual space can have symbols defined, which are names associated to
either addresses or syscall numbers. `sa` will define a new symbol at an
explicit address, `ss` will define a new symbol at a syscall entry (which is
kept symbolic, ie. it will work across different OS versions) and `sl` lists
all symbols for the current virtual space.
either addresses or syscall numbers. `ms` will define a new symbol at an
explicit address or syscall entry (which is kept symbolic, ie. it will work
across different OS versions) and `is` lists all symbols for a virtual space.
## File formats

View File

@ -218,7 +218,7 @@ void _isc(Session &session, std::string vspace_name, bool sort,
continue;
fmt::print(theme(3), " 0x{:08x}", address);
fmt::print(theme(10), " %{:01x}", syscall);
fmt::print(theme(10), " %{:04x}", syscall);
fmt::print("\n");
}