Loading Array
Alexander
Posts: 1
Hi,
I am trying to utilize a BS2 to form an image on a cathode ray tube. Right now I have a file in hex that has the on/off status of each pixel of the image that I am trying to recreate. I believe that I want to use the DATA routine to load my array of hex values but I am not sure how to load them as hex variables and not strings.
After I have figured out how to load my array I hope to be able to use read to obtain the values bit by bit and feed them to a four channel DAC that I have interfaced to my BS2.
Any ideas on the correct format to use DATA to input the hex string that I have saved in a .txt right now? Or should I be using a different routine. I want to get the largest resolution as possible so I want to be as efficient with the memory as possible.
Thanks!
I am trying to utilize a BS2 to form an image on a cathode ray tube. Right now I have a file in hex that has the on/off status of each pixel of the image that I am trying to recreate. I believe that I want to use the DATA routine to load my array of hex values but I am not sure how to load them as hex variables and not strings.
After I have figured out how to load my array I hope to be able to use read to obtain the values bit by bit and feed them to a four channel DAC that I have interfaced to my BS2.
Any ideas on the correct format to use DATA to input the hex string that I have saved in a .txt right now? Or should I be using a different routine. I want to get the largest resolution as possible so I want to be as efficient with the memory as possible.
Thanks!
Comments
You can put as many values on a line as you wish (limited by convenience and maybe to a maximum width of 256 columns ... I'm not sure).
If you want more values, just continue with another DATA statement. Each item occupies a byte. The "$" indicates a hex value.
Is this a slow-scan display? The BS2 isn't fast enough to generate video for a fast-scan device.