Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WHAT IS WRONG WITH THIS SCRIPT?!?!
#21
No, you'll save more space.

Code:
CLS
t1# = TIMER
FOR I# = 1 TO 2000000
IF a% = 1 AND b% = 1 THEN c% = 0
NEXT I#
t2# = TIMER - t1#
PRINT t2#
'with THEN IF: 3.30s
'with AND: 3.52s
'Just the loop: 3.07s

THEN IF takes 23sec, AND takes 45sec. A 2x difference.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#22
ok i did it myself. so i don't use AND if a i want speed.
[Image: sig.php]
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Reply
#23
Quote:I always thought it was quite an oversight not being able to branch directly on a variable value. Like GOTO a% or GOSUB a$

But I'm sure there's a good reason for it.. right Glenn?

That could be done in ye ol' ZX Spectrum Tongue

Code:
GOTO option * 100 + 500

That rocked Wink
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)