SamCoVT / TaliForth2

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

Fix broken c65 block IO #121

Closed patricksurry closed 1 month ago

patricksurry commented 1 month ago

It looks like I broke the c65 block IO interface address mapping in #90 by inadvertently dropping a .byte ? line.

This fixes it, adds a check so I don't break it again, and makes conditional compilation easier. Platforms with TALI_ARCH=c65 get the block-c65-init word which checks if there's an active block file before adding the read/write vectors and returning true/false. Other platforms like py65mon don't have that word at all, even if the optional block words are included.