Add ascii file to .tap
-
- Drutt
- Posts: 14
- Joined: Fri Sep 02, 2022 11:28 pm
Add ascii file to .tap
This might be a dumb question.
I haven't found any suitable utility to add a file to a tape or dsk from command line. bas2tap and bin2tap only work with executables and tokenized basic.
I was able to do it via tapcat (after a pain to make it work). and I can see the new file in the new tape, but now load just keeps looping (it is a logo program, so no tokenizing should be required)
thanks for your help
I haven't found any suitable utility to add a file to a tape or dsk from command line. bas2tap and bin2tap only work with executables and tokenized basic.
I was able to do it via tapcat (after a pain to make it work). and I can see the new file in the new tape, but now load just keeps looping (it is a logo program, so no tokenizing should be required)
thanks for your help
Re: Add ascii file to .tap
z88dk-appmake, from https://github.com/z88dk/z88dk/releases?
I have used it to insert a loading screen into a TAP file - e.g.:
https://github.com/patters-syno/artille ... ake_tap.sh
I have used it to insert a loading screen into a TAP file - e.g.:
https://github.com/patters-syno/artille ... ake_tap.sh
Re: Add ascii file to .tap
What kind of file do you want to add? Binary Data or as your questions suggest, plain ASCII-Characters?mariano_dm wrote: ↑Sat Sep 17, 2022 7:16 pm I haven't found any suitable utility to add a file to a tape or dsk from command line. bas2tap and bin2tap only work with executables and tokenized basic.
Two TAP-Files can be simply put together with using e.g. CMD-Command:
Code: Select all
COPY /b TAP1.tap+TAP2.tap TAP1and2.TAP
-
- Drutt
- Posts: 14
- Joined: Fri Sep 02, 2022 11:28 pm
Re: Add ascii file to .tap
just a plain ascii file
trying to autorun a logo proogram
trying to autorun a logo proogram
- flatduckrecords
- Manic Miner
- Posts: 808
- Joined: Thu May 07, 2020 11:47 am
- Location: Oban, Scotland
- Contact:
Re: Add ascii file to .tap
Hi @mariano_dm,
This works for me:
The contents of SQRSTR:
Just had a quick look at Sinclair Logo—is that what you're using? It needs to have the filenames 10 characters long, ending with "LOG" and padded with spaces in between if necessarty. It's also case-sensitive. The bytes header needs to specify location 49722 (0xC23A). If any of those is not quite right the loader routine will just keep looking (emulated tapes will loop around).
Line breaks in the text file need to be encoded as 0x0D (not 0x0A) or the interpreter will get confused.
Hope that helps!
This works for me:
Code: Select all
bin2tap.exe -append -a 49722 -o logo.tap SQRSTR\ LOG.txt
Code: Select all
TO SQUARESTAR
REPEAT 8 [SQUARE RT 45]
END
Line breaks in the text file need to be encoded as 0x0D (not 0x0A) or the interpreter will get confused.
Hope that helps!
Re: Add ascii file to .tap
So it should be loaded viamariano_dm wrote: ↑Wed Sep 21, 2022 10:17 pm just a plain ascii file
trying to autorun a logo proogram
Code: Select all
LOAD ""CODE
Code: Select all
LOAD ""
Re: Add ascii file to .tap
The first, I assume, as it is a LOGO source code, not BASIC.Luzie wrote: ↑Thu Sep 22, 2022 7:47 pm So it should be loaded viaorCode: Select all
LOAD ""CODE
?Code: Select all
LOAD ""
Re: Add ascii file to .tap
Time ago I was with the same idea. The only solution I found was to make an snapshot after all is loaded and ready and then use a utility like SNAPRUN to load and run directly the snapshot.
Edit: you can use too the old transfers like Multiface, etc, to make the runable snapshot.
-
- Drutt
- Posts: 14
- Joined: Fri Sep 02, 2022 11:28 pm
Re: Add ascii file to .tap
thanks everyone for your replies, I'll give them a try !
-
- Drutt
- Posts: 14
- Joined: Fri Sep 02, 2022 11:28 pm
Re: Add ascii file to .tap
I finally had some time to try it
found this nice utility to add files to tapes
almost there, just it seems I also have to translate the EOF, it is trying to read a 'W' past the file
found this nice utility to add files to tapes
Code: Select all
tr '\n' '\15' < AUTORUN.LOG > AUTO.LOG
./taput add -n "auto LOG" AUTO.LOG tape.tap
Code: Select all
TO SQUARE
REPEAT 4 [FD 30 RT 90]
END
TO SQUARESTAR
REPEAT 8 [SQUARE RT 45]
END
SQUARESTAR