Is there "MERGE" on ZX81?
Is there "MERGE" on ZX81?
Yo,
I wanted to load graphic (in BASIC) that I have in another P file.
Seems like ZX81 has no "MERGE" command to add the picture into the music-engine?
I wanted to load graphic (in BASIC) that I have in another P file.
Seems like ZX81 has no "MERGE" command to add the picture into the music-engine?
IN NIHILUM REVERTERIS - a big text-adventure game for ZX81: http://tiny.pl/g2m6m
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
Re: Is there "MERGE" on ZX81?
There is no Merge command in the Zeddie's Basic available.
But there have been some toolkits made, which support merging (RAMTOP must be set down to make space for the program to be merged, which is stored above RAMTOP and then copied down into the new program).
But merging programs is supported by MEFISDOS: the -L command line options allow to save a line range of a BASIC program to mmc. And when those lines are loaded back, they are inserted into the currently loaded program (depending on the line numbers). That could be done at Mahlerts
Siggi
But there have been some toolkits made, which support merging (RAMTOP must be set down to make space for the program to be merged, which is stored above RAMTOP and then copied down into the new program).
But merging programs is supported by MEFISDOS: the -L command line options allow to save a line range of a BASIC program to mmc. And when those lines are loaded back, they are inserted into the currently loaded program (depending on the line numbers). That could be done at Mahlerts
Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
http://zx81.ddns.net/ZxTeaM
Re: Is there "MERGE" on ZX81?
Siggy:
> There is no Merge command in the Zeddie's Basic available.
But there have been some toolkits made, which support merging (RAMTOP must be set down to make space for the program to be merged, which is stored above RAMTOP and then copied down into the new program).
-----------------
Aaaaaaaaaah, I see. I suspected so. Although it makes some troubles for me now, heh.
Especially I'm too crap coder for all those tricks with RamTop.
> But merging programs is supported by MEFISDOS: the -L command line options allow to save a line range of a BASIC
> program to mmc. And when those lines are loaded back, they are inserted into the currently loaded program (depending on the line numbers). That could be done at Mahlerts
-------------------------
Well, if it would be possible - why not!
The problem is - I try to copy into the STC_Player's code all required code made by myself. I already "manually copied" the scroll - it was a short procedure, I took it from ZX16, heh.
I added the IF INKEY$ several times and now the engine itself works. More/less yet. Heh.
But the biggest problem is graphic. Gfx in ZX81 we were making only in BASIC, so I hoped for the "Merge" command
meanwhile seems like indeed I'd have to wait for the Mahlerts indeed, hehe.
I would use a Gasman's work from this archive http://zx81.republika.pl/gfxcompo.rar or some other one, but I can't copy it into my code manually this time.
> Siggi
------------
Thx a lot
Y
> There is no Merge command in the Zeddie's Basic available.
But there have been some toolkits made, which support merging (RAMTOP must be set down to make space for the program to be merged, which is stored above RAMTOP and then copied down into the new program).
-----------------
Aaaaaaaaaah, I see. I suspected so. Although it makes some troubles for me now, heh.
Especially I'm too crap coder for all those tricks with RamTop.
> But merging programs is supported by MEFISDOS: the -L command line options allow to save a line range of a BASIC
> program to mmc. And when those lines are loaded back, they are inserted into the currently loaded program (depending on the line numbers). That could be done at Mahlerts
-------------------------
Well, if it would be possible - why not!
The problem is - I try to copy into the STC_Player's code all required code made by myself. I already "manually copied" the scroll - it was a short procedure, I took it from ZX16, heh.
I added the IF INKEY$ several times and now the engine itself works. More/less yet. Heh.
But the biggest problem is graphic. Gfx in ZX81 we were making only in BASIC, so I hoped for the "Merge" command
meanwhile seems like indeed I'd have to wait for the Mahlerts indeed, hehe.
I would use a Gasman's work from this archive http://zx81.republika.pl/gfxcompo.rar or some other one, but I can't copy it into my code manually this time.
> Siggi
------------
Thx a lot
Y
IN NIHILUM REVERTERIS - a big text-adventure game for ZX81: http://tiny.pl/g2m6m
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
Re: Is there "MERGE" on ZX81?
Yerz - I think what you need is a way to save screens to a file, and a way to load them back again, yes?
Re: Is there "MERGE" on ZX81?
You know I'm a totally crap coder. But on the other hand, I really like to do it and I have authentic fun from it.sirmorris wrote:Yerz - I think what you need is a way to save screens to a file, and a way to load them back again, yes?
So, since I have nice low-res pictures in BASIC ( http://zx81.republika.pl/gfxcompo.rar ), and they are actually regular pieces of BASIC code, I wanted to "merge" one of them into my own code with STC-Player (NOT MINE! ), scroll and choosing procedure IF INKEY$.
So that's what I actually need: to merge two P files into one.
Of course first I would adjust GFX code making proper lines' order and numbers.
IN NIHILUM REVERTERIS - a big text-adventure game for ZX81: http://tiny.pl/g2m6m
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
Re: Is there "MERGE" on ZX81?
I would get used to using ZXLIST and TXT2P. Export the graphics program using ZXLIST, add your code, then recompile the lot with TXT2P.
It's not so simple, especially if there's machine code involved, but it's not impossible.
If you want you should zip up the 2 programs you want to merge, post them in this thread, and I'll work out a way of doing it.
C
It's not so simple, especially if there's machine code involved, but it's not impossible.
If you want you should zip up the 2 programs you want to merge, post them in this thread, and I'll work out a way of doing it.
C
Re: Is there "MERGE" on ZX81?
Hi Yerz
here is a toolkit, which allows to merge programs of a Zeddy without using a PC You should use the TOOLK64.P program, if you have ram at 8-16K (e. g. using ZXPAND).
Run that program (it will copy itself to 14-16K).
Then load the program you want to merge into another one.
Then enter "RAND USR 14122" which will define variables to easily use the toolkit.
Enter "RAND USR RENUM" to renumber the current program to big line numbers.
Enter "RAND USR SAVE" to move that program just beneath RAMTOP
Then load the other program, to which the saved program should be merged.
Now the variables are deleted, so enter again "RAND USR 14122" to define the variables again.
Enter "RAND USR RENUM" to renumber the new program to small line numbers.
Enter "RAND USR APPEND" to fetch the saved program (beneath RAMTOP) and append it to the end of the current program.
That's all
HTH Siggi
here is a toolkit, which allows to merge programs of a Zeddy without using a PC You should use the TOOLK64.P program, if you have ram at 8-16K (e. g. using ZXPAND).
Run that program (it will copy itself to 14-16K).
Then load the program you want to merge into another one.
Then enter "RAND USR 14122" which will define variables to easily use the toolkit.
Enter "RAND USR RENUM" to renumber the current program to big line numbers.
Enter "RAND USR SAVE" to move that program just beneath RAMTOP
Then load the other program, to which the saved program should be merged.
Now the variables are deleted, so enter again "RAND USR 14122" to define the variables again.
Enter "RAND USR RENUM" to renumber the new program to small line numbers.
Enter "RAND USR APPEND" to fetch the saved program (beneath RAMTOP) and append it to the end of the current program.
That's all
HTH Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
http://zx81.ddns.net/ZxTeaM
Re: Is there "MERGE" on ZX81?
Thx, I will remember it too!!!
Meanwhile I did all the stuff with new numbers of lines by myself and it worked.
However then I noticed something more: when I start interrupts of the STC-Player, all the letters/signs get broken (lower visually, if I see it well).
Instead of this:
(before the interrupts are turned-on),
I get this:
I don't mean the scroll of course, but the mess on the screen (related with the fact all the characters are messed).
Hmmmmmm...... Seems like even simple stuff in coding is hard to me on ZX81, heh...
Meanwhile I did all the stuff with new numbers of lines by myself and it worked.
However then I noticed something more: when I start interrupts of the STC-Player, all the letters/signs get broken (lower visually, if I see it well).
Instead of this:
(before the interrupts are turned-on),
I get this:
I don't mean the scroll of course, but the mess on the screen (related with the fact all the characters are messed).
Hmmmmmm...... Seems like even simple stuff in coding is hard to me on ZX81, heh...
IN NIHILUM REVERTERIS - a big text-adventure game for ZX81: http://tiny.pl/g2m6m
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
Re: Is there "MERGE" on ZX81?
Hi yerz, don't worry about the screen getting jumbled, it's EightyOne, it will work on real hardware, the whole screen moves up 1 scanline but the characters stay correct.
Andy
Andy
what's that Smell.... smells like fresh flux and solder fumes...
Re: Is there "MERGE" on ZX81?
AAAAAAAAAAAAARRRRRRRGH!!!!!!! Really????????????Andy Rea wrote:Hi yerz, don't worry about the screen getting jumbled, it's EightyOne, it will work on real hardware, the whole screen moves up 1 scanline but the characters stay correct.
Andy
It's a GREAT news, considering anyway there is still no regular AY emulation on the emulator, so anybody wouldn't use it for the demo after all.
Well, I can't test it for now, as all the machines are actually packed before the ZX81 meeting, but I will take a look on the partyplace, fopefully.
Thanx for the info! (I was preparing this prog into the last day before the Forever, so also then everything was packed and I was able to test it only on emulator).
Greetings.
Y
IN NIHILUM REVERTERIS - a big text-adventure game for ZX81: http://tiny.pl/g2m6m
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/