Schrijver
| Screen 5 tutorials
|
Latok msx master Berichten: 1727 | Geplaatst: 21 Augustus 2003, 21:33   |
As moderator of this forumsection, I deleted all the messages after the last now visible posting. For more information about this step, you can contact me or the MRC board. This topic is now locked.
|
|
snout
 msx legend Berichten: 4991 | Geplaatst: 21 Augustus 2003, 22:17   |
Topic re-opened for Screen 5 discussion only.
|
|
Argon msx professional Berichten: 842 | Geplaatst: 21 Augustus 2003, 22:55   |
Thank you 
Still many questions to go
The discussion kinda went off-topic if I understand correctly ?
Anyway, thank you for reopening it
Kris. |
|
Argon msx professional Berichten: 842 | Geplaatst: 26 Augustus 2003, 17:36   |
Okay, I'm kinda in trouble again
First I write a screen 5 to floppy:
(Just a filled black rectangle)
<TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="mrc-small">Code:</font><HR></TD></TR><TR><TD><FONT class="mrc-small"><PRE>
10 screen 5:cls
20 line (0,0)-(100,100),1,BF
30 bsave "a:testvdp",&H0,&HFFFF,S
</PRE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE>
Then I load it:
<TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="mrc-small">Code:</font><HR></TD></TR><TR><TD><FONT class="mrc-small"><PRE>
10 screen 5:cls
20 set page 0,1
30 bload "a:testvdp",S
40 set page 1,0
50 goto 50
</PRE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE>
The screen gets loaded, but when displayed, the rectangle is shifted to the left.
Part of the rectangle shows up on the right of the screen 
At the bottom of the screen there is screwed up white distortion
Any help ?
Thank you.
Kris
|
|
Argon msx professional Berichten: 842 | Geplaatst: 26 Augustus 2003, 17:53   |
Ok this time I calculated:
Screen 5 = 256x212 = (Hex) D400
When I save from H0 to D400, and then load it, then it renders correct.
Can somebody confirm that this was my problem ???
Or do I need to do (256x212)-1 = (Hex)D3FF ?
(1D array starting with 0 (&H0) ?)
Thank you.
Kris
|
|
Maggoo msx professional Berichten: 584 | Geplaatst: 26 Augustus 2003, 18:07   |
Quote:
| Ok this time I calculated:
Screen 5 = 256x212 = (Hex) D400
When I save from H0 to D400, and then load it, then it renders correct.
Can somebody confirm that this was my problem ???
Or do I need to do (256x212)-1 = (Hex)D3FF ?
(1D array starting with 0 (&H0) ?)
Thank you.
Kris
|
Well technically it's 256*212 / 2 because there are 2 points per byte in screen 5 (16 colors max, this is 4 bits per point).
Example:
screen 5: Vpoke 0,255
is the same as screen 5  set(0,0),15  set(1,0),15
Binary 1111 1111
Decimal 15 15
Got it ?
|
|
Argon msx professional Berichten: 842 | Geplaatst: 26 Augustus 2003, 18:12   |
Oh yes, right, there are 2 pixels per byte  Forgot about that 
Got it
Question:
Is it (256x212)/2 -1 or is it without the -1 then ?
(Using arrays which start at 0 to pixelcount-1)
I haven't looked at the pset and vpoke, vpeek commands yet, but I'd better to that soon it seems
Thank you |
|
GuyveR800 msx guru Berichten: 3048 | Geplaatst: 26 Augustus 2003, 21:05   |
I already told you to use 7FFF for the BSAVE end-address...
|
|
Argon msx professional Berichten: 842 | Geplaatst: 26 Augustus 2003, 22:20   |
Ah... sorry I overlooked that...
K
|
|
ro msx guru Berichten: 2329 | Geplaatst: 27 Augustus 2003, 12:34   |
..and if you had checked the 'sprite' tech. files I've send you, you will understand the 'noise' at the bottom of the screen  |
|
Argon msx professional Berichten: 842 | Geplaatst: 27 Augustus 2003, 13:46   |
I'm sorry. It's pretty hectic for the moment, I'm swimming in work 
I'll check better before asking next time
Kris |
|
ro msx guru Berichten: 2329 | Geplaatst: 27 Augustus 2003, 14:03   |
haha, nevermind argon. It's all gooooooood. I'm kinda lucky to be inbetweeen jobs at the moment.. sight. gives me plenty of changes to update my PHP/MySQL knowledge while writing new webbased engines. Looks good on my resume eh
besides that I finally got the time to get MSX going again, which feels good.
succes with yo punk-ass project!
|
|
|
|
|