Re: [ql-users] Q40/Q60 screen
Derek Stewart wrote: > I would of thought that the screen functions in SMSQ/E could be used to to > define the screen size > > 105 scr_size=SCR_XLIM * SCR_YLIM > 110 FOR a = 0 to scr_size Once again, wrong, sorry. Either you do "scr_size - 1" or "a = 1". With this bug the file will be 2 bytes too long and depending on what comes after the video memory, those 2 bytes can already be fatal. Marcel ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [ql-users] Q40/Q60 screen
I would of thought that the screen functions in SMSQ/E could be used to to define the screen size 105 scr_size=SCR_XLIM * SCR_YLIM 110 FOR a = 0 to scr_size Derek - Original Message - From: "Marcel Kilgus" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 11, 2006 10:04 PM Subject: Re: [ql-users] Q40/Q60 screen > Dilwyn Jones wrote: >> 100 OPEN_NEW #3,ram1_test33_scr >> 110 FOR a = 0 to 131072 > > Why 131072? If it was a 512x256 screen, 131071 would be the correct > value (or you start with "a = 1"), but on 1024x512 it's 524287. > > Apart from that, your values should work. > > Marcel > > ___ > QL-Users Mailing List > http://www.q-v-d.demon.co.uk/smsqe.htm > -- > This email has been verified as Virus free > Virus Protection and more available at http://www.plus.net > > > -- > No virus found in this incoming 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
Re: [ql-users] Q40/Q60 screen
Dilwyn Jones wrote: > 100 OPEN_NEW #3,ram1_test33_scr > 110 FOR a = 0 to 131072 Why 131072? If it was a 512x256 screen, 131071 would be the correct value (or you start with "a = 1"), but on 1024x512 it's 524287. Apart from that, your values should work. Marcel ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [ql-users] Q40/Q60 screen
Dilwyn Jones wrote: ... > Many thanks to anyone who can help. Assuming I've set my Q40 in the correct mode (I don't often use it and haven't fully learnt how to use it - just haven't had the time), they are indeed as suspected for colour: 0xf800 = Green 0x07c0 = Blue 0x003e = Red ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
[ql-users] Q40/Q60 screen
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,%1000 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,%0010 And changing lines 120 and 130 like this should generate a red screen: 120 BPUT #3,%0111 130 BPUT #3,%1100 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