mirror of
https://github.com/lupyuen/lupyuen.github.io.git
synced 2025-01-13 06:48:34 +08:00
Update article
This commit is contained in:
parent
f80560a027
commit
5db4f22c0d
2 changed files with 3 additions and 3 deletions
BIN
images/sg2000b-asm1.png
Normal file
BIN
images/sg2000b-asm1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 232 KiB |
|
@ -71,7 +71,7 @@ Our Emulator crashes at a strange address...
|
|||
|
||||
# `auipc` Overflow in Boot Code
|
||||
|
||||
When we __Boot our Emulator__ with SG2000 NuttX, it crashes...
|
||||
When we __Boot our Emulator__ with SG2000 NuttX, it crashes (pic above)...
|
||||
|
||||
```bash
|
||||
$ sg2000-emulator/temu nuttx.cfg
|
||||
|
@ -121,7 +121,7 @@ _Maybe auipc has a problem?_
|
|||
|
||||
We verify with the [__RISC-V Online Assembler__](https://riscvasm.lucasteske.dev/#).
|
||||
|
||||
When we assemble the __`auipc`__ instruction above, the Online Assembler fails with an error...
|
||||
When we assemble the __`auipc`__ instruction above, the Online Assembler fails with an error (pic below)...
|
||||
|
||||
```yaml
|
||||
Error: lui expression not in range 0..1048575
|
||||
|
@ -137,7 +137,7 @@ Remember that RISC-V is a __RISC Platform__ after all. Some operations won't fit
|
|||
|
||||
We upsize to 8 bytes of Machine Code...
|
||||
|
||||
TODO: Pic of RISC-V Online Assembler
|
||||
![TODO](https://lupyuen.github.io/images/sg2000b-asm1.png)
|
||||
|
||||
# Change `auipc` to `li` in Boot Code
|
||||
|
||||
|
|
Loading…
Reference in a new issue