- BASIC Program Memory Loss
- 30 May 2006 08:39:56 pm
- Last edited by something1990 on 30 May 2006 09:02:28 pm; edited 1 time in total
I was playing around with more stat sprites today, using some sprites from Mario. I ran the program and liked the sprites. I didn't like the side-effect. After some investigating I found that the program lost about 4k of RAM after running. I don't know how it does this, so I was hoping someone could explain. Here's the code:
If it loses around 4k of memory on your calcs, then at least I know it isn't just my calc. Most of the code I have used in many other programs, so I was suprised that this happened.
BASIC Code wrote:
:Output(4,3,"PLEASEÂ WAIT
:{6,5,4,3,2,1,7,5,3,1,0,7,6,4,2,0,7,5,3,1,0,7,6,4,2,0,7,5,3,1,0,7,6,4,2,0,6,5,4,3,2,1→L1
:{0,0,0,0,0,0,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,7→L2
:{7,6,5,2,1,0,6,5,4,3,2,1,6,5,4,3,2,1,7,5,3,0,6,5,4,3,2,1,5,4,3,2,6,5,1,0,3,1,0,5,2,1,6,5,4,3,2,4,3→L5
:{0,0,0,0,0,0,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,4,5,5,5,5,7,7,7,7,8,8,8,9,9,9,10,10,10,10,10,11,11→L6
:0→Xmin
:0→Ymin
:94→Xmax
:62→YMax
:GridOff
:AxesOff
:PlotsOff
:FnOff
:L1→L3
:L2→L4
:L5+40→L5
:L6+8→L6
:For(A,8,88,8
:augment(L3,L1+A→L3
:augment(L4,L2→L4
:End
:Plot1Scatter ,L3,L4,∙
:Plot2Scatter ,L5,L6,∙
:Pt-Off(‾1,0
:Pause
:PlotsOff
:DelVar L1DelVar L2DelVar L3DelVar L4DelVar ADelVar L5DelVar L6Output(1,1,"
Generated by SourceCoder, © 2005 Cemetech
:{6,5,4,3,2,1,7,5,3,1,0,7,6,4,2,0,7,5,3,1,0,7,6,4,2,0,7,5,3,1,0,7,6,4,2,0,6,5,4,3,2,1→L1
:{0,0,0,0,0,0,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,7→L2
:{7,6,5,2,1,0,6,5,4,3,2,1,6,5,4,3,2,1,7,5,3,0,6,5,4,3,2,1,5,4,3,2,6,5,1,0,3,1,0,5,2,1,6,5,4,3,2,4,3→L5
:{0,0,0,0,0,0,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,4,5,5,5,5,7,7,7,7,8,8,8,9,9,9,10,10,10,10,10,11,11→L6
:0→Xmin
:0→Ymin
:94→Xmax
:62→YMax
:GridOff
:AxesOff
:PlotsOff
:FnOff
:L1→L3
:L2→L4
:L5+40→L5
:L6+8→L6
:For(A,8,88,8
:augment(L3,L1+A→L3
:augment(L4,L2→L4
:End
:Plot1Scatter ,L3,L4,∙
:Plot2Scatter ,L5,L6,∙
:Pt-Off(‾1,0
:Pause
:PlotsOff
:DelVar L1DelVar L2DelVar L3DelVar L4DelVar ADelVar L5DelVar L6Output(1,1,"
Generated by SourceCoder, © 2005 Cemetech
If it loses around 4k of memory on your calcs, then at least I know it isn't just my calc. Most of the code I have used in many other programs, so I was suprised that this happened.