EXAPUNKS

EXAPUNKS

View Stats:
Last Stop Snaxnet - why is my result so bad?
(This is the "remove PEANUTS" one, since it seems there may be another later.) I've tried to solve this in three different ways, and the best I could do is 77 cycles. How are people getting less than 30? The fundamental problem I run into is not enough registers. I can store PEANUTS in the T register, load the next string from the file into X, then do the comparison, losing T. So each loop I'll have to get it back from somewhere, either from another EXA, or from another file. (The third option was to try storing it in #TEMP which turns out to be read-only). Is there some magic way people aren't having to keep grabbing the comparison value over and over? I tried putting a literal string in a TEST but that's not allowed.
< >
Showing 1-4 of 4 comments
Originally posted by RevengeFromMars:
load the next string from the file into X
Don't
I tried not loading the string and just TEST F = X but that doesn't work. It compares the value of the file handle F against X, not the current item in the file.
When X holds PEANUTS and you're holding file 237 TEST F = X should work.
I clearly did something different earlier because it works now. Thanks for the hints and putting up with my boneheadedness.
< >
Showing 1-4 of 4 comments
Per page: 1530 50