1
0
mirror of https://github.com/raspberrypi/pico-sdk.git synced 2025-08-06 06:02:39 +03:00

small pioasm improvements (#2224)

- fix disassembly of `wait jmppin`
- fix incorrect error message
- make python output emit `word(x)` for all unsupported instructions
This commit is contained in:
Graham Sanderson
2025-02-05 10:55:24 -06:00
committed by GitHub
parent eb5c2c3ff0
commit 111fa7de2d
4 changed files with 38 additions and 20 deletions

View File

@@ -63,7 +63,7 @@ void program::set_pio_version(const yy::location &l, int version) {
void program::set_clock_div(const yy::location &l, float clock_div) {
if (clock_div < 1.0f || clock_div >= 65536.0f) {
throw syntax_error(l, "clock divider must be between 1 and 65546");
throw syntax_error(l, "clock divider must be between 1 and 65535");
}
clock_div_int = (uint16_t)clock_div;
if (clock_div_int == 0) {