Closed ryaneroth closed 2 months ago
I wasn't able to reproduce this. scanf
isn't implemented on cpm65
; there's no __getchar
implemented. Accordingly, I see ld.lld: error: undefined symbol: __getchar
whenever I try to link this, and that's the intended behavior.
scanf causes crash with cpm65. Commenting out
value *= status->base;
in https://github.com/llvm-mos/llvm-mos-sdk/blob/main/mos-platform/common/c/scanf.cc#L463 prevents the crash.Sample code:
Trace: