To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 102
101  |  103
Subject: 
Zero Page Variables?
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Thu, 29 Feb 1996 20:24:45 GMT
Original-From: 
David Negro <DLN2@saynotospamCORNELL.EDU>
Viewed: 
2086 times
  
IC gurus,
I am trying to port some of my IR routines to IC and I am having trouble.
I use some bit operations on variables, but this means that the variables
must be in the ZP.  I converted the variables to be anywhere in the RAM but
then I have to add extra code.

For example I went from having:

        BRSET   myvariable $80 Jumplocation

to:
        LDY     #myvariable
        BRSET   0,Y $80 Jumplocation

Now, although this is doable, I would rather not have to do this everytime
I have a bit operation on a variable.  Now I tried to make ZP variables but
then IC choked on the .icb file saying something like the .s19 file was not
contiguous. I had:

       ORG ZERO_PAGE_START

variable1       FCB 0

       ORG     MAIN_START

variable2       FCB 0

But IC did not like the compiled version.  So although I have a workaround,
is there a way to make ZP variables?  I am curious.

-Dave Negro
dln2@cornell.edu



Message has 1 Reply:
  Re: Zero Page Variables?
 
David, I believe that IC never actually supported zero page variables; it was documented as a feature but never implemented. Your solution of using the indexed registers is what I was going to suggest. -Fred -- This message was composed using (...) (29 years ago, 29-Feb-96, to lugnet.robotics.handyboard)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR