SamCoVT / TaliForth2

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

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

Closed patricksurry closed 4 months ago

patricksurry commented 4 months 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.