The asm-interp/io function takes input as an argument, but it does not track how much of that input is actually used by the executed program, if any. I think it would be pretty useful to maybe return three values: the result from rax, the output generated, and the number of bytes read from the input. I'm not sure how to go about doing this just yet, but it would make grading certain things much easier.
The
asm-interp/iofunction takes input as an argument, but it does not track how much of that input is actually used by the executed program, if any. I think it would be pretty useful to maybe return three values: the result fromrax, the output generated, and the number of bytes read from the input. I'm not sure how to go about doing this just yet, but it would make grading certain things much easier.