Skip to main content

Useful BASIC commands

Open the built-in resource list:

!

Mount automatically into a free slot

%mount "<url>"

Unmount an existing filesystem

%umount 0

Mount into a specific slot

%mount 0, "<url>"
%fs 0

Mount a web directory and load the default program:

%mount "https://spectranext.net/demo/hn"
%load ""

Other commands

Filesystem and program commands:

  • %cd Change directory
  • %cat List files
  • %load Load (identical to LOAD) off current volume
  • %aload "file" CODE 12345 Load a file into memory location
  • %save Save current basic file
  • %asave "file" CODE 12345,123 Save mem loc,sz into file
  • %tapein "tape" setup a tape file so LOAD "" loads that tape
  • %cp Copy a file
  • %mv Move a file
  • %rm Remove a file
  • %mkdir Create a directory
  • %rmdir Remove a directory

Stream and socket commands (development):

  • %connect, %close, %listen, %accept, %oneof

Filesystems

  • %fopen #4, "file.tap", "r" Load a file into a stream
  • %opendir Open a directory
  • %reclaim Reclaim stream memory

Configuration commands:

  • %fsconfig Filesystem configuration
  • %ifconfig Network configuration (VIEW ONLY)
  • %cfgset, %cfgset$, %cfgcommit, %cfgabandon, %cfgnew, %cfgnewsec, %cfgrm

If you used the short %mount "<url>" form, Spectranext automatically picks a free slot and switches %fs to it.