I received a bunch of screen$ files in a tape file. I want to read and show 
then at 25 fps. This is possible in emulator, because it loads files 
immediately.
I have got this code:

10 poke svar &33,1
20 load “”screen$
30 pause 2
30 goto 20

The problem is that screen$ files have got color palette at the back so the new 
image is first loaded and shown with old palette and then the new palette is 
set. Please somebody help me fix this annoyance. I need to keep the current 
image with its palette visible until the new image is read from tape, and then 
show the new image with its palette immediately. Can this be done in Sam Basic? 
Or can somebody help me to make the correct assembler code to do it? I know 
exactly how it should be done, but I haven’t programmed in Z80 asm for 15 years.

I would use two screen buffers in separate pages, and a short asm code would 
switch VMPR to the new page and set the new palette at once. Something like 
this:

10 poke svar &33,1
20 load “”code 131072
30 call 131072 + &7000
40 load “”code 81920
30 call 81920+&7000
30 goto 20

Z80 ASM PROGRAMMER WANTED! :-) I need those few instructions to be placed at 
offset &7000/&f000.

Thanks in advance.
Aley

-----------------------------------------
Mgr. Aleš Keprt, Ph.D.
private: [email protected], www.keprt.cz
office: Moravian College / Moravská vysoká škola Olomouc, [email protected]

Reply via email to