123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|629|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Basic Basement -> making a binary lookup?

Thu, 22 Nov 2007, 19:00
spinal
I'm currently converting an old c64 basic program to blitz, and well, the graphics work quite differently, so I need a binary table to hold pixel data that would be poked into memory. I did this very quickly, can someone suggest a better way?



thanks.

-=-=-
Check out my excellent homepage!
Thu, 22 Nov 2007, 20:19
Scherererer


www.blitzbasic.com/en/bpdocs/command.php?name=Bin&ref=2d_cat

maybe that will help?
untested, of course, and this would also store the binary as strings.. but i guess you could parse through the digits after doing this.

-=-=-
YouTube Twitter
Computer Science Series: Logic (pt1) (part 2) (part 3) 2's Complement Mathematics: Basic Differential Calculus
Fri, 23 Nov 2007, 05:48
Jayenkai


-=-=-
''Load, Next List!''
Fri, 23 Nov 2007, 12:03
Scherererer
you may want to do some speed tests, there's no telling whether or not the conversion and parsing of strings and back would be slower than just having a bunch of for loops.

-=-=-
YouTube Twitter
Computer Science Series: Logic (pt1) (part 2) (part 3) 2's Complement Mathematics: Basic Differential Calculus