News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

Saving image to tape from disk

Started by Nadori, 23:35, 31 May 24

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nadori

Hi,
I'm trying to convert image for pc to be displayed on CPC tape as explained in this video:

 
It works really well, but when it comes to save overscan images, I always get "memory full" or "bad command" error when I try to load the image in memory (with &3000 and &4000) form disk before saving it to tape.
Any help?
Thanks a lot.

ZorrO

How to use Overscan from ConvImgCPC:

https://www.cpcwiki.eu/forum/general-discussion/first-tests-using-the-convimgcpc-minor-adjustments-graphics-)/msg104912/#msg104912

To display Fullscreen 32K type:

10 OPENOUT"d":MEMORY &1FF:LOAD"name.scr":CALL &811
CPC+PSX 4ever

Nadori

Thanks.

My issue is not displaying the overscan image, but storing it in the CPC memory from the disk so to be able to then save it on the tape.

I mean, if you use this:

10 OPENOUT"d":MEMORY &1FF:LOAD"name.scr":CALL &811

Where is the picture allocated so that I can call it and save it on tape with this:

Save"name.scr",b,?,?

trocoloco

Quote from: Nadori on 10:35, 01 June 24Thanks.

My issue is not displaying the overscan image, but storing it in the CPC memory from the disk so to be able to then save it on the tape.

I mean, if you use this:

10 OPENOUT"d":MEMORY &1FF:LOAD"name.scr":CALL &811

Where is the picture allocated so that I can call it and save it on tape with this:

Save"name.scr",b,?,?

normally when you find a "MEMORY &XXXX" as the file is allocated at the next byte, so you in order to save on tape would need something like this

20 |TAPE:SAVE "NAME.SCR",B,&200,&8000,&811 <- third parameter is optional and indicates the execution point, if saved like this, you could simply use RUN"NAME.SCR" 





Nadori

Thanks a lot trocoloco, it worked!
Some additional question.
-          Is there a way to preserve the orignal palette of convimgcpc?
-          There's a way to save the pic on tape in order to be then loaded with loading bars (not for the overscan obsviously) and with fastloader?

ZorrO

Overscan files have palette inside. Normal SCR need to choose option "save palette", it save file PAL the same like in Art Studio 1K files.

Try my (ZbyniuR is my old nickname)  125 palette.dsk  there:
https://www.cpcwiki.eu/forum/programming/125-colors-in-basic-very-important-unnecessary-thing-cpc6128-0-66mhz/msg228298/#msg228298

Run"0  This program can show SCR file with PAL file.
Address to load name.PAL is &7F00 long file &EF.
First byte in PAL is MODE, if there is more then 2 this mean this file is with palette for CPC PLUS. I find way how to display it on old normal CPC with 125 blinking colors, what look quite fine.
Colors in PAL are as hardware colors, not the same numbers like for INK command.
Easy way is PEEK POKE in right place. line 5 (in this 0.BAS) check model of CPC (464 or 6128), because they have palette in different place, variable p!=45530 for 464, or 47061 for 6128.  Line 150 copy colors right way from PAL to right place. If it recognise file PAL as PLUS version then line 155 change palette 4096 colors into 125 blinking colors to show them on normal CPC.

About fast loader there is possible write speed 3000bd, in Basic 1.0 in 464. Just type POKE &B8D1,3:POKE &B8D2,&1B   This not work in Basic 1.1 in 6128.
You need no POKEs to load files write with that speed, and can be load on any CPC. :)

CPC+PSX 4ever

Nadori

Thanks a lot Zorro. All pretty much useful.

I would definitely try your program, but I suspect the reason I can't see proper color/palette in some overscan is due to the fact I'm not using an original Amstrad Monitor but a CRT PAL TV (actually I have this problem also on "The Abduction of Oscar Z on a real CPC" :https://www.cpcwiki.eu/forum/software-related/the-abduction-of-oscar-z-on-a-real-cpc/).

About the fastloader to write the program on tape, I presume the poke should be launched before the command to save on tape, right?

Any clue about the loading bars? Tx

ZorrO

As I know Abduction have bug with synch and work fine on emulators, but wrong on real CPC.
Programmer know about it, but don't have time to fix it. He promise do someday.

Yes, POKEs before SAVE on tape, once after reset, don't have to be before every SAVE.
Maybe some emulators don't do it right. For example old Caprice SAVE always 2000bd, doesn't matter what speed is set. And you have to choose 464 to emulate, as I said, this POKEs don't work in Basic 1.1.

I know nothing about program showing loading bar, sorry.

About colors. Some TV/monitor have wrong set saturation or brightness, I mean too much. And for example orange look like red, or pink look like orange. CRT or LED doesn't matter. All of that can be tuning, or sometimes help some resistors on RGB cable.
Or very rare RGB setting or HUE is funny. But with user guide for TV/monit and right remote control still is possible to tuning properly.
CPC+PSX 4ever

Nadori

Thanks!
The problem is that when I load the overscan pic created in convimgcpc on emulator (winape) the palette is ok, but same pic loaded on real CPC 464 has different, wrong colors (blue becomes green, white is yellow – looks like I'm watching it on an Amstrad Monochrome Screen :-)
I've also noticed that if I insert &C000 after the loading command to display the raster loading on screen I receive a "memory full" after the first loading block from cassette. Is not possible to use that command on an overscan image?

Powered by SMFPacks Menu Editor Mod