Marius Posted January 6, 2011 Share Posted January 6, 2011 I need some ZP locations... I don't use the FP routines, and Mapping the Atari tells me it is safe to use $D4 to FF then. I'm a bit 'scared' ... but please tell me mapping is right. I also don't use BASIC. Can I also use D2 and D3 then? I'm asking this, because I thought that everything from CB and up was free to use. So if it is not... I have to rewrite a few things. Thanks M. Quote Link to comment Share on other sites More sharing options...
DanBoris Posted January 6, 2011 Share Posted January 6, 2011 I need some ZP locations... I don't use the FP routines, and Mapping the Atari tells me it is safe to use $D4 to FF then. I'm a bit 'scared' ... but please tell me mapping is right. I also don't use BASIC. Can I also use D2 and D3 then? I'm asking this, because I thought that everything from CB and up was free to use. So if it is not... I have to rewrite a few things. Thanks M. If you are not using Basic you can safely use $80-$D3, and if you aren't using FP then $D4-$FF should also be safe. Dan Quote Link to comment Share on other sites More sharing options...
Creature XL Posted January 6, 2011 Share Posted January 6, 2011 I need some ZP locations... I don't use the FP routines, and Mapping the Atari tells me it is safe to use $D4 to FF then. I'm a bit 'scared' ... but please tell me mapping is right. I also don't use BASIC. Can I also use D2 and D3 then? I'm asking this, because I thought that everything from CB and up was free to use. So if it is not... I have to rewrite a few things. Thanks M. If you are not using Basic you can safely use $80-$D3, and if you aren't using FP then $D4-$FF should also be safe. Dan If you do not believe him, I can confirm that as I use the locations from $80 upwards since years. As any assembler on A8 does If you go a step further and do not even use teh Os you can use a lot more (maybe all?) locations. Quote Link to comment Share on other sites More sharing options...
+Stephen Posted January 7, 2011 Share Posted January 7, 2011 Can anybody confirm that $D4 to $FF are free when using Turbo BASIC XL (when not using FP routines)? Quote Link to comment Share on other sites More sharing options...
snicklin Posted January 7, 2011 Share Posted January 7, 2011 ... if you're using CC65 (which I think not) then you can have problems with some of the ZP being used (as I found). Quote Link to comment Share on other sites More sharing options...
Shawn Jefferson Posted January 8, 2011 Share Posted January 8, 2011 ... if you're using CC65 (which I think not) then you can have problems with some of the ZP being used (as I found). You should be declaring your variables as .zeropage, and then the compiler will allocate them into zeropage for you... no need to guess what's being used and where. I assume from your statement that you aren't doing this? (Well, to each his own, but there is an easier way to manage zeropage variables-really you shouldn't care (or even have to know) what zeropage address is actually being used by a CC65 variable.) Quote Link to comment Share on other sites More sharing options...
snicklin Posted January 8, 2011 Share Posted January 8, 2011 ... if you're using CC65 (which I think not) then you can have problems with some of the ZP being used (as I found). You should be declaring your variables as .zeropage, and then the compiler will allocate them into zeropage for you... no need to guess what's being used and where. I assume from your statement that you aren't doing this? (Well, to each his own, but there is an easier way to manage zeropage variables-really you shouldn't care (or even have to know) what zeropage address is actually being used by a CC65 variable.) Hi Shawn, Thanks for your suggestion here. I wasn't actually using variables as such, I was POKE'ing directly to some locations and using these as "virtual variables". I've stopped doing this now, so it isn't a problem any longer. Thanks, Steve Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.