On Sun, Feb 21, 2010 at 12:10:25AM +0100, Groepaz wrote: > its just the clean way to do it :) and you cant be sure what a - potentially > modified/alternative - kernal uses it for, and how. Assuming that zero is left in this memory cell, do you really think, anything bad could happen? We're talking about two bytes for the store instruction, so it's not really important. On the other side, two bytes here and three bytes there add up. Just have a look at the diet the Atari library went through lately - it had a rather drastic effect on the executable size. So if there is no real reason for it, I would leave $ba as it is and just use 8 in case it contains zero. While thinking about it: I doubt that $ba could contain zero, because the cc65 compiled program has to be loaded from somewhere, so $ba would in any case contain the drive from which the program was loaded. > personally i dont see a > reason for not simply using $ba as the place to store the variable that keeps > the current drive number :) That's difficult to achieve in a multi platform library. Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sun Feb 21 13:44:36 2010
This archive was generated by hypermail 2.1.8 : 2010-02-21 13:44:39 CET