SamCoVT / TaliForth2

A Subroutine Threaded Code (STC) ANSI-like Forth for the 65c02
Other
28 stars 4 forks source link

document that kernel_getc/putc must preserve X,Y #84

Closed patricksurry closed 2 months ago

patricksurry commented 3 months ago

This tripped me up while putting Tali on some breadboard hardware. My LCD putc was mangling Y but emit_a/key_a assume X and Y are unchanged. Strange results ensued. Maybe just a good comment in the platform file would work.

SamCoVT commented 3 months ago

That's a good point. spaces has already been modified to reload A to accommodate kernel_putc that destroys A (I think that was the only word that was using kernel_putc in a loop and originally it only loaded the space once). Updating the comments in the platform file makes the most sense.