Closed BrianHoldsworth closed 6 years ago
Ah, I was trying to replicate the Apple II version of gets() but I really screwed it up. I see a couple problems that need fixing. Never tried it on the C VM - I'll fix it later today.
Saw your fix and merged it. Thanks.
Issue: The C PLVM gets() function doesn't return a Pascal string for use with other PLASMA functions like puts()
Sample Code:
Expected Behavior:
Actual Behavior: puts() will output a gobbly-gook string that omits the first character and overruns the txt buffer.
Notes: Something is still off with the patch because the VM also outputs the warning "Eval stack pointer mismatch at end of execution = 1". I'm not sure if this is a problem with gets() or some other bug.