riscv-non-isa / riscv-semihosting

https://lf-riscv.atlassian.net/browse/RVS-2673
Creative Commons Attribution Share Alike 4.0 International
28 stars 8 forks source link

Formatting of code example #11

Closed xypron closed 4 months ago

xypron commented 5 months ago

https://github.com/riscv-non-isa/riscv-semihosting/blob/0a1e3af84f77dec0a69a0d6904a9cf59f134265b/src/binary-interface.adoc?plain=1#L21

In the pdf the example code is rendered as:

slli x0, x0, 0x1f # 0x01f01013 Entry NOP
ebreak            # 0x00100073 Break to debugger
srai x0, x0, 7    # 0x40705013 NOP encoding the semihosting call
number 7

At first sight I wondered if number 7 were a new opcode. We should avoid number 7 being at the start of a new line.