Converting Bmp to p - WRX HIRES

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
Luciano
Posts: 36
Joined: Sat Jan 02, 2016 4:57 am

Converting Bmp to p - WRX HIRES

Post by Luciano »

Hi All.

Last week i did some changes in a ZX81 clone, trying to implement the WRX mod (2 diodes and resistor) using the internal DRAM, instead of RAMPACK.
It works….. i mean… :roll: almost.. :lol: (more details soon)

Before , i want to create some BMP files for testing..
Following the BMP2P tutorial (below) from Wilf Rigter i didn’t understand the step 5a ,5b and 6 regarding load command
(LOAD "*LOAD:C:NAME:16610:")
Is it necessary to use both? XTenders and Eighty one for conversion?
To create BMP for ZX do you use another method?

1. Download " BMP2P" , the ZX81 hires driver program.( BMP2P.P )
2. Run EightyOne and LOAD (BMP2P)
3. Ask yourself, "Who is that handsome guy?"
4. press N/L (space) to break the spell.
5. run XTenders
5. change the file name in line 20
6. load your own IMAGE.C file into the HFILE of BMP2P using LOAD "*LOAD:C:NAME:16610:"
7. then RUN to save the file to disk.

Thank you!

Regards

Luciano
User avatar
siggi
Posts: 996
Joined: Thu May 08, 2008 9:30 am
Location: Wetterau, Germany
Contact:

Re: Converting Bmp to p - WRX HIRES

Post by siggi »

Hi Luciano
maybe Wilf wrote this instructions, while he had an EO version, which did not support loading of binary data at a given address (or that did not work, like in some EO versions :-( )
So he used another emulator ("5. run XTenders") to do that:
LOAD "*LOAD:C:NAME:16610:" is the XTenders-command to load code in file "NAME" to the address 16610 (and to overwrite the image there).

You could do that also with EO, using the"File"-menu and select "Load memory block" and enter there the filename and the address 16610 there. Then you don't need to perform step 5a and can use only EO for that.

HTH Siggi

PS: I use EO Version 0.52, where the "Load memory block" works correctly ...
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
Luciano
Posts: 36
Joined: Sat Jan 02, 2016 4:57 am

Re: Converting Bmp to p - WRX HIRES

Post by Luciano »

Hi Siggi.

I will test now and send you a reply soon.

Thanks a lot!

Luciano
Luciano
Posts: 36
Joined: Sat Jan 02, 2016 4:57 am

Re: Converting Bmp to p - WRX HIRES

Post by Luciano »

Siggi

I did the test.... the memory block loaded .. tks! :D

But EO couldn´t save the new file/tape .. i tested version 0.52 and 1.0 :roll:

Any idea how to save it? maybe another emulator?
User avatar
PokeMon
Posts: 2264
Joined: Sat Sep 17, 2011 6:48 pm

Re: Converting Bmp to p - WRX HIRES

Post by PokeMon »

Did you check the latest version on source forge ?

http://sinclairzxworld.com/viewtopic.ph ... rge#p18295
User avatar
siggi
Posts: 996
Joined: Thu May 08, 2008 9:30 am
Location: Wetterau, Germany
Contact:

Re: Converting Bmp to p - WRX HIRES

Post by siggi »

Hi Luciano
could you post the initial P-file you used and the image that you made (which should be moved into the P-file) that I could try to do the same thing that you did?

Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
Luciano
Posts: 36
Joined: Sat Jan 02, 2016 4:57 am

Re: Converting Bmp to p - WRX HIRES

Post by Luciano »

Hi Siggi and Pokemon

I instaled the EO V1.2
Using the save tape command, it seems to save.. but not "really" save.
After opening the file saved, it returns to the previous one..

I found a sequence that works here.. Using the EO V1.2

1-open tape/ bmp2p.p
2-load memory block/ aaa.c (adress to save 16610) and click load file
3-new tape
4-save tape( but do not save, click cancel)
5-space bar 2 times.. than run
6-then finaly click in save tape, save.

Using this sequece works for me.. but is weird.. :roll:

It follow attached the bmp2p file and aaa.c file(bmp converted.. i used one bmp downloaded in zx forum)
Attachments
aaa.c
(6.06 KiB) Downloaded 166 times
BMP2P.P
(7.08 KiB) Downloaded 131 times
Luciano
Posts: 36
Joined: Sat Jan 02, 2016 4:57 am

Re: Converting Bmp to p - WRX HIRES

Post by Luciano »

After loading the p file on the real hardware (zx81 clone) the image looks good.. :D but it lost the vertical sync.. :? a small difference.. it flips slowly..
Do you have some idea how to fix this issue? (image attached)
The Tv system from this computer is PAL-M (525 lines and 60hz ) similar to NTSC..
I tested using internal WRX mod on DRAMs and with external SRAMs too.. same results in both cases..
Is it possible to change some parameter in the Software, related to the vertical sync ?(50 or 60hz)
Or.. change some timing in the logic on the real hardware..
Any ideas are welcome
Regards
Luciano
Attachments
NO VSYNC.jpg
NO VSYNC.jpg (32.36 KiB) Viewed 3269 times
User avatar
siggi
Posts: 996
Joined: Thu May 08, 2008 9:30 am
Location: Wetterau, Germany
Contact:

Re: Converting Bmp to p - WRX HIRES

Post by siggi »

Hi Luciano
line 10 of BMP2P.P contains the SAVE command to make the program autostart. Delete it and save the program manually. That makes life easier ;-)

What I did in EO:
LOAD BMP2.P (it runs and shows the picture)
press space to break program
delete line 10
load picture in aaa.c to address 16610
save modified program manually (if only one file is in the tape manager window, you can save it there as .P file)

If you enter RUN the program now shows the new picture, until you press BREAK. Then I get this:
EOV0.52.jpg
EOV0.52.jpg (118.97 KiB) Viewed 3259 times
I think, the aaa.c is wrong. Its size is 6206 bytes, but the HIRES screen can hold only 192*256 Bits = 6144 Bytes.
So maybe something went wrong during the conversion from .BMP to aaaa.c

My real Zeddy shows the same picture.
It is stable when running in 50 Hz mode and also when running in 60 Hz mode.

Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
Luciano
Posts: 36
Joined: Sat Jan 02, 2016 4:57 am

Re: Converting Bmp to p - WRX HIRES

Post by Luciano »

Hi Siggi

Thanks a lot.. now i can create my own BMPs ;)

I will try to fix the vertical sync.. maybe is some hardware issue.

Do you know if it is possible to change a zx81 60hz version, to 50hz?
Post Reply