SamCoVT / TaliForth2

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

Save the ST flag bit by marking as AN+NN instead #111

Closed patricksurry closed 1 month ago

patricksurry commented 1 month ago

The always-native and never-native words were already setting the opposite flag to zero, so just a couple of logical operator changes needed to replace ST flag with the unused AN=1/NN=1 state, indicating an otherwise normal word with stack-thrashing. I also swapped the order of the IM and AN flags so AN+NN are adjacent to improve readability in see.