Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scrolling Tiles
#3
LCD Wrote:Looks good, and very smooth...
It does indeed! :!:
The idea behind ZX Basic is you don't have to go down to ASM if possible :roll:
Quote:By the way:
Code:
if NextGraphic Band 64=64
can be shortened:
Code:
if NextGraphic & 64
That's right. In fact this rule can be applied to the other lines also
(band 32 = 32, band 16 = 16 etc).
Slenkar, the rule is
Code:
IF x band 2^n = 2^n THEN
can be replaced by
Code:
IF x bAND 2^n THEN
Not sure if the compiler already optimizes that with -O3. Will check it... :|
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)