A86: equate problem


[Prev][Next][Index][Thread]

A86: equate problem




I was wondering if there was a place to store an equate where it cannot be 
changed by another program,

>Example
in the program it checks for certian conditions where the equate is changed 
to  z,nz,or m. Then it uses the number in the equate to decide where the 
program will jump to  (shown here)

equate         equ          $8534

ld a,(equate)
or a
jp z,firstjump                 ;since the program is on its first run,
jp nz,secondjump         ;it will jump to firstjump since the equate is 0
jp m,lastjump                ;but later in the prog the user can change it 
to
                                    ;a diffrent number,, changing the route 
of the                                     ;program.



But the problem is that certain programs change the equates to zero, and the 
route set by the user is changed.   Does anyone have any idea on to solve 
this problem??

Thanks

-chris manning


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com


Follow-Ups: