I'm not surprised at all. We quickly forget that FOR-NEXT commands are a combination of ADDs, IFs and GOTOs in the background. The only problem is that the compiler has to make it generic to work for many circumstances; like the STEP -1 example. So now it has to include SUBTRACTs as well, that generates even more code whether you need it or not.
I'm simplifying, but that's pretty much it.
I use the simplified commands 'cause I haven't run out of space yet, and speed hasn't been an issue yet either. But if I ever reach that point, that's when I start breaking them down to their basic elements.
Robert
EDIT: Assembler class was back in '78-'83 era, yeesh...
Bookmarks