stoonboii10 / garglk

Automatically exported from code.google.com/p/garglk
Other
0 stars 0 forks source link

read and @aread parse error #62

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Make a simple program (even without standard libraries) using the read
operator or the @aread zmachine opcode in an array
2. Compile it in zcode
3. Run it and test it with the frotz 'terp

What is the expected output? What do you see instead?

Both the read operator and the @aread opcode read one character less.
If you put bf->0=10, and then you do   read bf 0   or @read bf 0 -> r  
you'll have bf->1==9 and 9 chars read (from bf->2 to bf->10).

What version of the product are you using? On what operating system?

I've checked both 2008-12-25 and 2009-06-25-pre, on windows.

Please provide any additional information below.

WindowsFrotz and other 'terps reads the correct number of chars.
I attach a sample program to reproduce the error.

bye

Original issue reported on code.google.com by plucche...@gmail.com on 25 May 2009 at 8:55

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by bcressey@gmail.com on 2 Jun 2009 at 5:23

GoogleCodeExporter commented 8 years ago

Original comment by bcressey@gmail.com on 6 Jun 2009 at 11:12

GoogleCodeExporter commented 8 years ago
Fixed in r191.

Original comment by bcressey@gmail.com on 8 Jun 2009 at 9:33