Login
Merge (J.Soft)
Title:Merge (J.Soft)
Category:Utility/Programming
Release Date:
Language:Italian
Size:16K
Machine:PAL & NTSC
Code Type:Machine code
Distribution:Type-in
Published by:J.Soft
Converted by:Sarcina, Franco
Notes:Original by (private). Typed in by saver71.
No votes yet.
Merge (J.Soft) Screenshot


Publications
Published: Papersoft 47/1985 (Magazine/Italian) pg. 11


Description
This utility allows to compensate for a lack of the Basic of the C16 and of the Plus/4 about the editing of programs. With this you can load a Basic program without deleting the one already in memory (thus performing the "merge", ie the union of the two programs).
The "merge" program must be typed and saved BEFORE it "runs"; those who use the disk must drive remove the word REM from line 40. The routine is activated once and for all by loading it and giving RUN; in this way a small program in machine language gets stored in an area of ​​RAM that does not interfere with the Basic. At this point, if you want to "concatenate" two Basic programs, one in memory and the other recorded on tape or disk, just type:

SYS 1024: LOAD "program name"

(adding ",8" if using the disk drive). Once loaded, type

SYS 1048

and the merge will be completed. However, pay attention to the "range" of the line numbers of the programs to be concatenated: in fact, if they are not disjoint, very unpleasant problems can occur. For example, a program whose line numbers range from 10 to 1000 cannot be chained to a program whose range is 100-2000; before performing the merge it will be necessary to renumber one of the two programs. Furthermore, if we have a program A with range 10-500 and a program B with range 1000-2000, we will first have to load A and then merge with B; in fact, since the programs are loaded one after the other, if we did the opposite we would have the "high" line numbers before the "low" ones, and the resulting program could not be executed correctly.

Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon