I need help from a Q40 or Q60 user to test if my BMP screen conversion
routine works for Q40/Q60. If a Qx0 owner could run the following
little program for me in SBASIC with the machine in 1024x512 16 bit
colour mode, the program *should* generate a green screen in theory.
I've set up a little test rig on my QPC2 to try to test, but I think
I've got green and blue the wrong way round but I don't know if it's
the converting or the test rig at fault. (the % in line 120 indicates
a binary number of course)

100 OPEN_NEW #3,ram1_test33_scr
110 FOR a = 0 to 131072
120 BPUT #3,%11111000
130 BPUT #3,0
140 END FOR a
150 CLOSE #3
160 LBYTES ram1_test33_scr,SCR_BASE

The above program should generate a green screen.

Changing lines 120 and 130 like this should generate a blue screen:

120 BPUT #3,0
130 BPUT #3,%00111110

And changing lines 120 and 130 like this should generate a red screen:

120 BPUT #3,%00000111
130 BPUT #3,%11000000

It's possible the above program might lock up your machine and will
mess up your display (as it naughtily writes direct to the screen) if
I've made any mistakes, so save anything important before testing!

Assuming the above tests generate the colours I think they should, I 
can compare the output from my conversions to these results to try to 
prove if my machine code works or at least try to find out what I'm 
doing wrong if not.

Many thanks to anyone who can help.

-- 
Dilwyn Jones



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.3/360 - Release Date: 09/06/2006

_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to