<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.specnext.dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Szerman</id>
	<title>SpecNext Wiki - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.specnext.dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Szerman"/>
	<link rel="alternate" type="text/html" href="https://wiki.specnext.dev/Special:Contributions/Szerman"/>
	<updated>2026-05-07T08:37:12Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://wiki.specnext.dev/index.php?title=Code:NextBasic_Snippets&amp;diff=11912</id>
		<title>Code:NextBasic Snippets</title>
		<link rel="alternate" type="text/html" href="https://wiki.specnext.dev/index.php?title=Code:NextBasic_Snippets&amp;diff=11912"/>
		<updated>2023-12-11T14:13:14Z</updated>

		<summary type="html">&lt;p&gt;Szerman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;NextBasic Snippets&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To read a file of any type or size to any bank this will load myfile.bin to bank 22 (8kbs):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
.extract myfile.bin -mb 22&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To get the filesize of a file in to var fsize: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
OPEN #4, &amp;quot;myfile&amp;quot;&lt;br /&gt;
DIM #4 TO %a&lt;br /&gt;
fsize=%a&lt;br /&gt;
CLOSE #4&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check if a file exists in a location without generating an error&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
Layer 2,0: print at 0,0; : cat file$: exist$=screen$(0,0)&lt;br /&gt;
Layer 0: If exist$&amp;lt;&amp;gt;&amp;quot;N&amp;quot; then print &amp;quot;File found&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Press space to continue with flashy border when waiting for a key&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
Print &amp;quot;Press Space to continue&amp;quot;: randomize usr 1300&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll screen up without prompt&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
poke 23692,255: print at 20,0;&amp;quot;Scroll my screen&amp;quot;&lt;br /&gt;
for s=1 to 20: print at 21,31;&amp;quot; &amp;quot;: next s&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select a file type to use by browsing the SD&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
.browse -t pt3 m$&lt;br /&gt;
If m$&amp;lt;&amp;gt;&amp;quot;&amp;quot; then .$ playpt3 m$&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Change the font width to X pixels when printing&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
10 LAYER 1,1 : CLS&lt;br /&gt;
20 PRINT CHR$ 30+CHR$ 5  : REM 5 pixels wide&lt;br /&gt;
30 PRINT &amp;quot;HELLO&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Get the current CORE version&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
10 DEFPROC CoreVersion()&lt;br /&gt;
20 OUT 9275,1: LET %i= IN 9531: LET m=%i&amp;gt;&amp;gt;4: LET ml=%i&amp;amp;@00001111&lt;br /&gt;
30 OUT 9275,14: LET i= IN 9531: PRINT INK 2;&amp;quot;Current core :&amp;quot;;m;&amp;quot;.&amp;quot;;ml;&amp;quot;.&amp;quot;;i&lt;br /&gt;
40 ENDPROC &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Get Next version running&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
.nextver v&lt;br /&gt;
print &amp;quot;Current Next OS:&amp;quot;;v&lt;br /&gt;
if v&amp;lt;2.07 then print &amp;quot;Think about upgrading your distro&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Szerman</name></author>
	</entry>
	<entry>
		<id>https://wiki.specnext.dev/index.php?title=Code:NextBasic_Snippets&amp;diff=11907</id>
		<title>Code:NextBasic Snippets</title>
		<link rel="alternate" type="text/html" href="https://wiki.specnext.dev/index.php?title=Code:NextBasic_Snippets&amp;diff=11907"/>
		<updated>2023-12-11T13:44:15Z</updated>

		<summary type="html">&lt;p&gt;Szerman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;NextBasic Snippets&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To read a file of any type or size to any bank this will load myfile.bin to bank 22 (8kbs):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
.extract myfile.bin -mb 22&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To get the filesize of a file in to var fsize: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
OPEN #4, &amp;quot;myfile&amp;quot;&lt;br /&gt;
DIM #4 TO %a&lt;br /&gt;
fsize=%a&lt;br /&gt;
CLOSE #4&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check if a file exists in a location without generating an error&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
Layer 2,0: print at 0,0; : cat file$: exist$=screen$(0,0)&lt;br /&gt;
Layer 0: If exist$&amp;lt;&amp;gt;&amp;quot;N&amp;quot; then print &amp;quot;File found&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Press space to continue with flashy border when waiting for a key&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
Print &amp;quot;Press Space to continue&amp;quot;: randomize usr 1300&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll screen up without prompt&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
poke 23692,255: print at 20,0;&amp;quot;Scroll my screen&amp;quot;&lt;br /&gt;
for s=1 to 20: print at 21,31;&amp;quot; &amp;quot;: next s&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select a file type to use by browsing the SD&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
.browse -t pt3 m$&lt;br /&gt;
If m$&amp;lt;&amp;gt;&amp;quot;&amp;quot; then .$ playpt3 m$&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Szerman</name></author>
	</entry>
	<entry>
		<id>https://wiki.specnext.dev/index.php?title=Code:NextBasic_Snippets&amp;diff=11902</id>
		<title>Code:NextBasic Snippets</title>
		<link rel="alternate" type="text/html" href="https://wiki.specnext.dev/index.php?title=Code:NextBasic_Snippets&amp;diff=11902"/>
		<updated>2023-12-11T13:31:29Z</updated>

		<summary type="html">&lt;p&gt;Szerman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;NextBasic Snippets&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To read a file of any type or size to any bank this will load myfile.bin to bank 22 (8kbs):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
.extract myfile.bin -mb 22&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To get the filesize of a file in to var fsize: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
OPEN #4, &amp;quot;myfile&amp;quot;&lt;br /&gt;
DIM #4 TO %a&lt;br /&gt;
fsize=%a&lt;br /&gt;
CLOSE #4&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check if a file exists in a location without generating an error&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
Layer 2,0: print at 0,0; : cat file$: exist$=screen$(0,0)&lt;br /&gt;
Layer 0: If exist$&amp;lt;&amp;gt;&amp;quot;N&amp;quot; then print &amp;quot;File found&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Press space to continue with flashy border when waiting for a key&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
Print &amp;quot;Press Space to continue&amp;quot;: randomize usr 1300&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll screen up without prompt&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
poke 23692,255: print at 20,0;&amp;quot;Scroll my screen&amp;quot;&lt;br /&gt;
for s=1 to 20: print at 21,31;&amp;quot; &amp;quot;: next s&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Szerman</name></author>
	</entry>
	<entry>
		<id>https://wiki.specnext.dev/index.php?title=Code:NextBasic_Snippets&amp;diff=11901</id>
		<title>Code:NextBasic Snippets</title>
		<link rel="alternate" type="text/html" href="https://wiki.specnext.dev/index.php?title=Code:NextBasic_Snippets&amp;diff=11901"/>
		<updated>2023-12-11T13:12:06Z</updated>

		<summary type="html">&lt;p&gt;Szerman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;NextBasic Snippets&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To read a file of any type or size to any bank this will load myfile.bin to bank 22 (8kbs):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
.extract myfile.bin -mb 22&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To get the filesize of a file in to var fsize: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
OPEN #4, &amp;quot;myfile&amp;quot;&lt;br /&gt;
DIM #4 TO %a&lt;br /&gt;
fsize=%a&lt;br /&gt;
CLOSE #4&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check if a file exists in a location without generating an error&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
Layer 2,0: print at 0,0; : cat file$: exist$=screen$(0,0)&lt;br /&gt;
Layer 0: If exist$&amp;lt;&amp;gt;&amp;quot;N&amp;quot; then print &amp;quot;File found&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Szerman</name></author>
	</entry>
</feed>