inverting the maximite screen


Author Message
RossW
Guru

Joined: 25/02/2006
Location: Australia
Posts: 495
Posted: 07:49am 08 Jun 2011      

  BobDevries said   I just wrote a few lines of BASIC to invert the screen using Geoff's new pixel() command. It takes over two minutes to do it this way:


I don't (yet) have one of these beasties, and it's a LONG time since I was forced to endure BASIC, but surely the if-then-else test is hideously inefficient. Doesn't the basic include an XOR?

replace lines 40, 50 and 60 with
pixel(x,y)=pixel(x,y) XOR 1

Edited by RossW 2011-06-09