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 / 103
102  |  104
Subject: 
Re: Zero Page Variables?
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Thu, 29 Feb 1996 20:38:49 GMT
Original-From: 
Fred G. Martin <FREDM@saynotospamMEDIA.MIT.EDU>
Viewed: 
4339 times
  
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 Articulate Systems' PowerSecretary,
a Macintosh-based speech-to-text dictation system.
Please forgive any sloppiness in the formatting. Thanks. -Fred



In your message you said:
> 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 is in Reply To:
  Zero Page Variables?
 
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 (...) (31 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
    

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