Folderol wrote:
[ ... ]
Works fine :)
Thanks.
... and I don't know about code not being devious. To this day I still
remember a bit of assembler I wrote for the BBC B that had me guessing
for months!
.loop
{stuff}
INY
LDA (buff),Y
CPY #13 <- should have been CMP #13
BNE loop
Mostly the input strings were less than 13 chars long, and/or the word
being matched was at the start. Very occasionally this was not true and
the routine failed :(
ah yes, 6502 assembler, bring it back! I had an Ohio Superboard, generating
"music" from assembler driving primitive io ports. I could only lust after
the fabulous BBC 2 that I'd read about in imported magazines :-).