SamCoVT / TaliForth2

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

[do not merge] Skip internal underflow #98

Closed patricksurry closed 1 month ago

patricksurry commented 2 months ago

Here's work in progress that adds w_ labels. Also:

SamCoVT commented 2 months ago

I think this looks good so far. You're welcome to include results.txt (I'll clean it up if it makes a mess when merging) as it may show improvement just in the words that already have cycle tests (+/- the normal cycle test deviation due to addresses crossing pages).

SamCoVT commented 2 months ago

I think they shouldn't have the code field flag. I was trying to do them as deferred words, but it's really difficult to do that in ROM. I believe the current solution is that these are all helper words that use the actual vector held in RAM in the system variables (not sure if it's in the ZP variables or the RAM variables). I suspect this is a documentation error (eg. the comment is wrong) for the way things are currently done.

patricksurry commented 1 month ago

i'm going to split this up into smaller parts to make it easier to review

patricksurry commented 1 month ago

Split into #106 #107 and #108

I'll add one more with just the w_ label changes and then close this

patricksurry commented 1 month ago

109 now has just the original xt to w changes, without any header macro-izing. I'll explore that separately.