<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[esxDOS BBS — Basic programs in /bin]]></title>
	<link rel="self" href="https://board.esxdos.org/extern.php?action=feed&amp;tid=31&amp;type=atom" />
	<updated>2018-06-03T11:11:26Z</updated>
	<generator>PunBB</generator>
	<id>https://board.esxdos.org/viewtopic.php?id=31</id>
		<entry>
			<title type="html"><![CDATA[Re: Basic programs in /bin]]></title>
			<link rel="alternate" href="https://board.esxdos.org/viewtopic.php?pid=866#p866" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Uto wrote:</cite><blockquote><p>Actually, it would be good that any dot command that is not found, performs a search in /BIN/TAP and if found simulates a .tapein + LOAD &quot;&quot;.</p><p>I agree it cannot exactly be used as batch files, but it can be used as shortcuts, so if someone can create&nbsp; a norton commander like utility, it can be loaded just by writting .nc and not .tapein /utils/nc.tap, LOAD &quot;&quot;. You can also use it to run the OUT needed for 48k compatibility in some games, just by including in a .tap file named 48k.tap and them calling it by typing .48k</p><p>You would even be able to create shortcuts for your favorite games, and run them with .aticatac or .tetris</p></blockquote></div><p>I&#039;ve come back to this thread to realize you replied and provided &quot;launcher&quot; about 18 months ago. Sorry I didn&#039;t notice but thank you any way, seems very close to what I was looking for and as you say, no need to modify ESXDOS core itself :-)</p>]]></content>
			<author>
				<name><![CDATA[Uto]]></name>
				<uri>https://board.esxdos.org/profile.php?id=154</uri>
			</author>
			<updated>2018-06-03T11:11:26Z</updated>
			<id>https://board.esxdos.org/viewtopic.php?pid=866#p866</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Basic programs in /bin]]></title>
			<link rel="alternate" href="https://board.esxdos.org/viewtopic.php?pid=253#p253" />
			<content type="html"><![CDATA[<p>Download-Link fpr .launcher seem to be outdated. Actually I found it on:<br /><a href="http://sindik.at/~ub880d/2016/10/8-nove-utilitky-pre-esxdos-strings-a-launcher/">http://sindik.at/~ub880d/2016/10/8-nove … -launcher/</a></p>]]></content>
			<author>
				<name><![CDATA[Luzie]]></name>
				<uri>https://board.esxdos.org/profile.php?id=157</uri>
			</author>
			<updated>2017-02-13T17:09:04Z</updated>
			<id>https://board.esxdos.org/viewtopic.php?pid=253#p253</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Basic programs in /bin]]></title>
			<link rel="alternate" href="https://board.esxdos.org/viewtopic.php?pid=233#p233" />
			<content type="html"><![CDATA[<p>OK,</p><p>here is such utility:<br /><a href="http://sindik.at/~ub880d/tmp/launcher">http://sindik.at/~ub880d/tmp/launcher</a></p><p>Usage:<br />&nbsp; .launcher add &lt;name&gt; &lt;tap&gt;<br />&nbsp; &nbsp; - creates a new launcher with name <strong>&lt;name&gt;</strong>. it will autoload tape <strong>&lt;tap&gt;</strong></p><p>&nbsp; .launcher upd &lt;name&gt; &lt;tap&gt;<br />&nbsp; &nbsp; - change launcher <strong>&lt;name&gt;</strong> to autoload tape <strong>&lt;tap&gt;</strong></p><p>&nbsp; .launcher del &lt;name&gt;<br />&nbsp; &nbsp; - delete launcher <strong>&lt;name&gt;</strong></p><p>&nbsp; .launcher list<br />&nbsp; &nbsp; - lists all created (and recognized) launchers</p><p>launcher name <strong>&lt;name&gt;</strong> must be a plain filename, not containing &#039;/&#039;<br />tap name <strong>&lt;tap&gt;</strong> must be a fullpath name, so it must start with &#039;/&#039;</p><p>launchers are created in the system&#039;s bin path where are all external commands so more commands/launchers you have &#039;list&#039; will run longer.</p><p>also, keep in mind that esxdos for now supports only 8+3 format of names, so every component of path (for tap) must be in this format as well as the launcher name.</p><p><strong><span style="color: #FF0000">please note, that as usual, I&#039;m not giving any warranty, and you are using this command at your own risk. so please, keep backups of your work while using this command.</span></strong></p>]]></content>
			<author>
				<name><![CDATA[ub880d]]></name>
				<uri>https://board.esxdos.org/profile.php?id=180</uri>
			</author>
			<updated>2016-11-01T22:11:59Z</updated>
			<id>https://board.esxdos.org/viewtopic.php?pid=233#p233</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Basic programs in /bin]]></title>
			<link rel="alternate" href="https://board.esxdos.org/viewtopic.php?pid=228#p228" />
			<content type="html"><![CDATA[<p>I came back to this thread and get some idea for solution of your &quot;issue&quot;. I think this solution can make happy all of us as it is solution on &quot;application&quot; level, not a change to the core of esxdos.</p><p>The solution is to prepare small utility to create/delete tap launchers. So for example, you will use: </p><p>.launcher add /tmp/test.tap</p><p>by this, launcher will create external command /bin/test which you can then run by .test and it will assign /tmp/test.tap to tapein slot and call esxdos to autoload it.</p><p>.launcher del test</p><p>will remove /bin/test</p><p>and</p><p>.launcher list</p><p>will look to the /bin directory and lists all recognized launchers in there.</p><p>This way you even don&#039;t have to store taps in some specific folder as launcher will remember the full path of tap.</p><p>Do you think it is ok for you?</p>]]></content>
			<author>
				<name><![CDATA[ub880d]]></name>
				<uri>https://board.esxdos.org/profile.php?id=180</uri>
			</author>
			<updated>2016-08-27T09:37:28Z</updated>
			<id>https://board.esxdos.org/viewtopic.php?pid=228#p228</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Basic programs in /bin]]></title>
			<link rel="alternate" href="https://board.esxdos.org/viewtopic.php?pid=214#p214" />
			<content type="html"><![CDATA[<p>Actually, it would be good that any dot command that is not found, performs a search in /BIN/TAP and if found simulates a .tapein + LOAD &quot;&quot;.</p><p>I agree it cannot exactly be used as batch files, but it can be used as shortcuts, so if someone can create&nbsp; a norton commander like utility, it can be loaded just by writting .nc and not .tapein /utils/nc.tap, LOAD &quot;&quot;. You can also use it to run the OUT needed for 48k compatibility in some games, just by including in a .tap file named 48k.tap and them calling it by typing .48k</p><p>You would even be able to create shortcuts for your favorite games, and run them with .aticatac or .tetris</p>]]></content>
			<author>
				<name><![CDATA[Uto]]></name>
				<uri>https://board.esxdos.org/profile.php?id=154</uri>
			</author>
			<updated>2016-04-10T17:30:25Z</updated>
			<id>https://board.esxdos.org/viewtopic.php?pid=214#p214</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Basic programs in /bin]]></title>
			<link rel="alternate" href="https://board.esxdos.org/viewtopic.php?pid=210#p210" />
			<content type="html"><![CDATA[<p>having basic programs as a dot commands might look like a good idea, but i think it&#039;s not very usefull. because when you load basic program, the old one is lost, so you won&#039;t use such dot commands in basic programs.</p><p>anyway, all what you need to run basic program is to attach tap file to tapein slot (.tapein &lt;tape file&gt;) and then enter LOAD &quot;&quot;. or (and it is maybe more comfortable) to just run nmi browser and press enter on a tap file.</p>]]></content>
			<author>
				<name><![CDATA[ub880d]]></name>
				<uri>https://board.esxdos.org/profile.php?id=180</uri>
			</author>
			<updated>2016-02-26T00:25:51Z</updated>
			<id>https://board.esxdos.org/viewtopic.php?pid=210#p210</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Basic programs in /bin]]></title>
			<link rel="alternate" href="https://board.esxdos.org/viewtopic.php?pid=207#p207" />
			<content type="html"><![CDATA[<p>I think the original idea of being able to create dot commands using basic is a very good idea, though it cannot be done as easy as the original poster suggests. If we could create dot commands with basic, basic would become the script language of ESXDOS as bash is for linux or bat files for windows. I know the best ways to do dot commands, but making creating dot commands easier (use Basic) may help have many commands we won&#039;t have had otherwise.</p><p>A possible solution would be creating a /BIN/TAP folder, and whenever a dot command is not found, look for a file in that folder named after the dot command and autoload it (i.e. if user types .test, look for /BIN/TAP/test.tap). </p><p>You can even evolve that idea making any arguments the dot command may have are stored at some specific address, so the TAP file can get them later using PEEK.</p>]]></content>
			<author>
				<name><![CDATA[Uto]]></name>
				<uri>https://board.esxdos.org/profile.php?id=154</uri>
			</author>
			<updated>2016-02-23T21:57:41Z</updated>
			<id>https://board.esxdos.org/viewtopic.php?pid=207#p207</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Basic programs in /bin]]></title>
			<link rel="alternate" href="https://board.esxdos.org/viewtopic.php?pid=133#p133" />
			<content type="html"><![CDATA[<p>Oh. OK. So it has nothing to do with the actual dot-commands <img src="https://board.esxdos.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>If the only case is simply running a MC &quot;from BASIC&quot; (without loading additional blocks of code) it&#039;s something that&#039;s been done in every advanced loader since the beginning of Spectrum <img src="https://board.esxdos.org/img/smilies/wink.png" width="15" height="15" alt="wink" /> The only problem is you can&#039;t be really sure that your code will be executed at the certain address - yes, BASIC program usually starts at 23755, but with Interface 1, or some other disk interfaces it&#039;s moved up to make space for extra system variables. So to be sure your code would work it should be relocatable (only use relative jumps inside the code etc.) and started with USR(PEEK 23635 + 256 * PEEK 23636) <img src="https://board.esxdos.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>But - as said before - it has nothing to do with dot-command <img src="https://board.esxdos.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[matofesi]]></name>
				<uri>https://board.esxdos.org/profile.php?id=15</uri>
			</author>
			<updated>2014-10-23T09:22:54Z</updated>
			<id>https://board.esxdos.org/viewtopic.php?pid=133#p133</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Basic programs in /bin]]></title>
			<link rel="alternate" href="https://board.esxdos.org/viewtopic.php?pid=132#p132" />
			<content type="html"><![CDATA[<p>Dear matofesi,</p><p>&gt; Could you please explain what exactly are you trying to do <br />&gt; and what do you want to achieve? <br />&gt; Because from what you&#039;re describing I can&#039;t really see <br />&gt; any connection to the /bin dot-command creation.</p><p>Thanks for your question.</p><p>I agree, that &quot;my way of creating and running a mcode program&quot;<br />is not very practical to an advanced programmer who will do an .command for ESXDOS.</p><p>I see it more as example what can be done on a real spectrum <br />running under ESXDOS: When someone has some machine code<br />in DATA-Lines (as type-ins from old spectrum magazines) <br />then this could be used to see, if this m/c-routine can be pokes<br />and runned from the spectrum.</p><p>Please don´t see to much &quot;programmers brain&quot; <br />in my doing ... ;-)</p>]]></content>
			<author>
				<name><![CDATA[Luzie]]></name>
				<uri>https://board.esxdos.org/profile.php?id=157</uri>
			</author>
			<updated>2014-10-22T17:52:52Z</updated>
			<id>https://board.esxdos.org/viewtopic.php?pid=132#p132</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Basic programs in /bin]]></title>
			<link rel="alternate" href="https://board.esxdos.org/viewtopic.php?pid=131#p131" />
			<content type="html"><![CDATA[<p>@Luzie Could you please explain what exactly are you trying to do and what do you want to achieve? Because from what you&#039;re describing I can&#039;t really see any connection to the /bin dot-command creation.</p>]]></content>
			<author>
				<name><![CDATA[matofesi]]></name>
				<uri>https://board.esxdos.org/profile.php?id=15</uri>
			</author>
			<updated>2014-10-22T10:38:41Z</updated>
			<id>https://board.esxdos.org/viewtopic.php?pid=131#p131</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Basic programs in /bin]]></title>
			<link rel="alternate" href="https://board.esxdos.org/viewtopic.php?pid=130#p130" />
			<content type="html"><![CDATA[<p>OK. Just tried a little bit with getting some MCODE<br />to work &quot;from BASIC&quot; on a real divIDE Interface with ESXDOS 0.86 Beta 4</p><p>It´s a little bit tricky as this &quot;.dot-command&quot; with BASIC-Part <br />runs from beginning of the BASIC-memory (PROG) <br />adress 23755 and when we put MCODE into the first BASIC program line<br />after a REM, this starts from 23760. So I have to find a way to jump from<br />23755 to 23760. Have done this with a Line Number 0<br />and a fixed length (about 53x Bytes) of the line 0.<br />So Bytes 23755 to 23760 contains the MCODE: NOP, NOP <br />and JR +2 which jumps to 23760.</p><p>Just for people who want to try it, please send me a PM<br />on this board so I can send you my DEMO Snapshot-File for this-<br />Because it seems I can´t attach anything here.</p><p>Luzie</p>]]></content>
			<author>
				<name><![CDATA[Luzie]]></name>
				<uri>https://board.esxdos.org/profile.php?id=157</uri>
			</author>
			<updated>2014-10-20T20:11:56Z</updated>
			<id>https://board.esxdos.org/viewtopic.php?pid=130#p130</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Basic programs in /bin]]></title>
			<link rel="alternate" href="https://board.esxdos.org/viewtopic.php?pid=122#p122" />
			<content type="html"><![CDATA[<p>well. programs in /bin folder are binary programs which are loaded to divide ram an executed as machine code, not a basic program.</p><p>so, saving basic program to the /bin folder and then trying to execute it by .program command, is like trying to execute basic program by RANDOMIZE USR 23755 (address where is the basic program usually stored). (well.. files stored by SAVE *&quot;...&quot; command also have a +3dos header, so it is little bit different)</p>]]></content>
			<author>
				<name><![CDATA[ub880d]]></name>
				<uri>https://board.esxdos.org/profile.php?id=180</uri>
			</author>
			<updated>2014-08-15T01:09:05Z</updated>
			<id>https://board.esxdos.org/viewtopic.php?pid=122#p122</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Basic programs in /bin]]></title>
			<link rel="alternate" href="https://board.esxdos.org/viewtopic.php?pid=107#p107" />
			<content type="html"><![CDATA[<p>Could it be possible to write a basic program and store it using save * &quot;usefulprog&quot; to the bin folder, then be able to recall the same basic program using .usefulprog ?</p><p>I thought I would try it but it just resets esxdos unfortunately.</p><p>Cheers<br />GazJ</p>]]></content>
			<author>
				<name><![CDATA[gazj82]]></name>
				<uri>https://board.esxdos.org/profile.php?id=175</uri>
			</author>
			<updated>2014-06-03T20:28:57Z</updated>
			<id>https://board.esxdos.org/viewtopic.php?pid=107#p107</id>
		</entry>
</feed>
