+ Reply to Thread
Results 1 to 2 of 2
-
- 20th October 2015, 20:43 #1
SWAP COMMAND extended to Longs and array variables
would be nice to have the swap command be extended to support longs and array variables and not limited to its current form
-
- 9th April 2018, 23:41 #2
Re: SWAP COMMAND extended to Longs and array variables
Hi
It’s impossible to swap a pair of RAM locations in any language on any platform without the use of an identical sized temporary RAM location.
The manual only means you don’t have to look at the mess in a BASIC program, but it still exists in the compiled result.
Code:valuea = 3; valueb = 6; temp = valuea valuea = valueb valueb = temp // valuea now = 6, and valueb = 9
Similar Threads
-
How to use array variable for shiftout command
By longpole001 in forum mel PIC BASIC ProReplies: 9Last Post: - 11th June 2012, 10:01 -
MIBAM and Array Variables in FOR-NEXT Loops
By Homerclese in forum mel PIC BASIC ProReplies: 1Last Post: - 25th August 2010, 12:50 -
Seeting array variables in For-Next loop
By bcd in forum mel PIC BASIC ProReplies: 5Last Post: - 28th October 2007, 08:01 -
SOUND command and variable array
By flotulopex in forum mel PIC BASIC ProReplies: 12Last Post: - 27th March 2007, 11:56 -
Reading Array values into variables
By Tom Gonser in forum mel PIC BASIC ProReplies: 19Last Post: - 21st March 2005, 11:30
Bookmarks