tifreak8x wrote:
Nope, I have found a way to use While loops to completely replace Lbl Goto stuff, but still get the same effect while maintaining speed. It is pretty nifty.
Quick question, though.
When a program's making its rounds, does the size of an If-block matter if it's not included?
Like is there any difference in speed between these:
Code:
(other code)
If A=25
Then
Goto ZX
End
(other code)
Code:
(other code)
If A=25
Then
Do this
Do that
Do the other thing
End
(other code)
Code:
(other code)
If A=25
Then:Do this:Do that:Do the other thing:End
(other code)
And is there a difference between having an if-block and not having one, even if it's only one or two lines?
rthprog wrote:
thanks Kerm =D
Code:
I just made some minor modifications that fix some bugs (namely the stray pixels when scrolling up) and save some space =D I'm wondering if it would be advantageous to let the user scroll, and update lines once no buttons are being pressed...making scrolling much smoother and a bit faster....
In addition, perhaps storing the image of the lines and overlaying a secondary image which is removed when scrolling would allow such things as sprites, menus, etc...
Code:
:13:Asm(prgmCodex
:27-->R
:9-->L
:iPart(length(Str0)/R)+1-->Z
:sub(Str0+" ",1,RZ)-->Str1
:1-->B
:(Z>L)(L-Z)+Z-->C
:For(N,1,C
:Text(7N-6,4,sub(Str1,RN-R+1,R
:End
:While 1
:B-->D
:0:Repeat(Ans:getKey:End:
:(Ans=34)-(Ans=25)+B-->B
:(B=0)-(B=Z+1)+B-->B
:If B<>D and Z<>C
:Then
:For( N,1,7
:(B=D-1)+2
:Asm(prgmCodex
:End
:Text((B=D-1)+(7L-6)(B<>D-1),4,sub(Str1,RB-R+1,R
:End
:End
I just made some minor modifications that fix some bugs (namely the stray pixels when scrolling up) and save some space =D I'm wondering if it would be advantageous to let the user scroll, and update lines once no buttons are being pressed...making scrolling much smoother and a bit faster....
In addition, perhaps storing the image of the lines and overlaying a secondary image which is removed when scrolling would allow such things as sprites, menus, etc...
Well, as for overlaying a secondary image, the only way I know of to do that is to use the home/graph screens for different things. Is there another way to do this sort of thing, perhaps with ASSEMBLY SORCERY?