Commodore 128 Alive!

Commodore 128 => 128 programmers => Assembly => Topic started by: stiggity on January 04, 2011, 01:32 AM

Title: ZP pointer used heavily... $64, 128 Equivalent..
Post by: stiggity on January 04, 2011, 01:32 AM
Hello:
I'm still playing around with my programming project, and have sorta ran into a brick-wall?
Even though i own the 64PRM and 128PRM i still am un-sure as to what the ZP pointer $64 would be on the 128.
My program uses lda($64),y, lda($64+1),y, lda$64 etc.. I am uncertain what it's doing, but figured i would ask here.
My module starts at $9000, using the LDA#$0E,STA$FF00,JMP$9000 , am i going to have to use INDFET in-place of
the way the module is handling these calls? or, can i leave it the way it is..

-Steve
Title: Re: ZP pointer used heavily... $64, 128 Equivalent..
Post by: stiggity on January 04, 2011, 03:12 AM
Anyone Following This Thread....
the ZP point $64 is in my c64 source-code, and im looking for a 128 equivalent.
Also, i need to know if i LDA/STA @ $64 or LDA($64),y if i need to use INDFET/INDSTA
sorry for the bumbling-idiot-prior post. I re-read my original post, and sorta forgot some key details.
-Steve
Title: Re: ZP pointer used heavily... $64, 128 Equivalent..
Post by: stiggity on January 04, 2011, 04:35 AM
Sorry...
How would i use INDSTA in this manner.. "STA ($64),Y" ?
or use INDFET to LDA($64),Y, i know these sound like newb questions, but im not the best..

-Steve Bell
Title: Re: ZP pointer used heavily... $64, 128 Equivalent..
Post by: BigDumbDinosaur on January 04, 2011, 06:55 AM
Don't be lazy.  READ MAPPING THE COMMODORE 64 and MAPPING THE COMMODORE 128!!!  Geesh!
Title: Re: ZP pointer used heavily... $64, 128 Equivalent..
Post by: stiggity on January 04, 2011, 09:20 AM
BDD:
We've been through this before. Ive done searches, upon searches, im both "Mapping" books and cannot find "FACHO" for the Life of me. And I'm not being lazy at all. This forum has been great as long as ive been a member, and i never get negative replies.. I mean is it wrong to ask questions?
Title: Re: ZP pointer used heavily... $64, 128 Equivalent..
Post by: Hydrophilic on January 04, 2011, 01:15 PM
I can tell you where FACHO is on the C128.  Address $64.  Since C128 BASIC ZP is generally shifted up a few bytes in relation to C64, I'm pretty sure this is not the address you need (i.e., C64 $64 is probably not C128 $64).

BDD is right.  Check out Mapping the C128, Appendix E, starting on page 649.  It has a C64 / C128 cross reference.

For using INDFET / INDSTA, (or any KERNAL function), check out the Commodore 128 Programmer's Reference Guide, Chapter 13 "The Commodore Operating System", starting on page 401.
Title: Re: ZP pointer used heavily... $64, 128 Equivalent..
Post by: stiggity on January 04, 2011, 01:21 PM
Hydro:
How would i use INDFET and INDSTA for a routine like this.

LDY#3
LDA($64),Y

. and/or what would be correct for a STA

LDY#0
STA($64),Y

if you can help, i would greatly appreciate the assistance.
Title: Re: ZP pointer used heavily... $64, 128 Equivalent..
Post by: stiggity on January 04, 2011, 01:30 PM
BDD/Hydro..
These questions i ask about, may seem _trivial_ or some aspect, but i havnt been 100% hammering the forum with BS.. each question is genuine.
I believe the 128 equivalent of $64 would be $66 floating point routine...

Hydro:
If i want to retreive a value from $0A0F from within my program, and $0A0F not being in common-RAM, how would i go about performing this task?

a basic exmaple would be awesome.
EhPortal 1.34 © 2026, WebDev