Post Reply 
(49G/50g) Shortest code to increment a variable?
04-20-2023, 12:21 PM
Post: #2
RE: (49G/50g) Shortest code to increment a variable?
(04-20-2023 11:50 AM)acser Wrote:  I can think of trivial code like this to increment variable A by one:

A 1 + ‘A’ STO

Are there shorter, faster, more elegant ways to do this?
Thanks,
A

1
'A'
STO+

(also available STO- STO* STO/)

or

'A'
INCR

(INCR and DECR increments and decrements by 1 and returns new value)

You can find all commands in menu PRG-->MEM-->ARITH
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (49G/50g) Shortest code to increment a variable? - Marco Polo - 04-20-2023 12:21 PM



User(s) browsing this thread: 1 Guest(s)