#[2.1.110] ISA crashes when returning %var[65535:0]

10 messages · Page 1 of 1 (latest)

gilded saddle
#

As the title says. I created the following ISA entry to try and get a zero-width output:

%var = 0
%var[0:1]```
And that worked mostly (ISA compiler accepted it, circuit runs with it), but the ASM editor complains so I decided to see if I could accomplish the task with an overflow, replacing that [0:1] with [65535:0] and got the crash.

Crash data from command line:
```LOADING: campaign/maze
fatal.nim(53)            sysFatal
Error: unhandled exception: assemble.nim(572, 9) `
0 <= top` (Late detection!): Expected slice syntax after unsized field reference in bit pattern [AssertionDefect]
terminate called without an active exception
SIGABRT: Abnormal termination.```

(That's an attempted reload - the console no longer stays open after exit which is really nice most of the time, but not so great for capturing error logs!)

Editing the file manually and removing the bad instruction allows the game to reload again.
flint bison
#

Latest version is 2.1.110, note the extra 0.

gilded saddle
#

haha woops i did notice it just a typo 😄 lets see if i can fix

#

[2.1.110] ISA crashes when returning %var[65535:0]

solid goblet
#

-# (also, I don't think you need to duplicate your bug report to github anymore)

gilded saddle
solid goblet
gilded saddle
solid goblet