I've just fixed several bugs in the read ops, I commited so do a cvs update.
They were in the ops, not the IO system. Hasty coding is to blame, but I'm
glad someone is actually testing this now.

I wrote a slurp test that reads in a file by line and concats each buffer 
to the
main string, then prints the string out, with the following patch it works
ok, without it gets screwed up buffers.

>Second question: how do I use puts with a Ix register?  That opcode 
>doesn't seem to work...

It doesn't use an Ix reg, it uses an PMC IO stream. If you want to print
to a stream use print PMC, STR on the PMC that open returned.

puts is just a temp op since we still have the standby print that uses stdio.

We need to decide on the naming convention for the PIO stuff and move to
it and leave the stdio stuff named appropriately.

-Melvin


Reply via email to