Re: LF: dc statement


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

Re: LF: dc statement



> From:           highlander15@juno.com
> To:             list-fargo@lists.ticalc.org
> Date sent:      Tue, 24 Jun 1997 17:56:31 PST
> Subject:        LF: dc statement
> Send reply to:  list-fargo@lists.ticalc.org

> 
> If I were to create a variable like this:
> 
> var     dc.b    0
> 
> and later in the program change the variable to let's say a value of 5,
> then quit the program and restart it, would "var" still be five, or
> would it reset to zero?
> 
> Chris
> clambert@geneva.edu
> highlander15@juno.com
>
What I have found that is if you don't initialize the variable at the 
top of the program (move.b #0,var), the variable keeps the value last 
assigned to it.  So if you moved 5 to var, when you restarted your 
program, var would equal 5.


------------------------------------------------
Apocalypse_92
neilbj@cset.isu.edu
http://www.geocities.com/SiliconValley/Way/2305/
Geocities Silicon Valley Community Leader
------------------------------------------------