How could i do this

2

Software Center 2026-08-14 02:20

I know you could add tool like gfx and it saves stuff but how could i do this with variables or am i in the future of impossibilities


This is for NX.OS


moechofe 2026-08-14 05:20

Vatiables? Not directly, it's possible to create a tool to edit custom data where poke and peek serve as storing and reading numbers. I made an example, I will post it later.


moechofe 2026-08-14 06:15 (Edited)

Check this https://lowresnx.inutilis.com/topic.php?id=4103


was8bit 2026-08-14 06:39 (Edited)

https://lowresnx.inutilis.com/programs.php?sort=&search=Bulk&category=

FILES

The file commands can be used to store data on a virtual disk, which can contain up to 16 files. Its format is the same as the ROM entries part in a program file. This makes it possible to use any NX program directly as a virtual disk to edit its data.

Virtual disks are meant to be used for development tools only, for example image and map editors or music programs. Games should use persistent memory instead. Imagine that the standard LowRes NX console wouldn't have a disk drive.

LOAD

LOAD f,a[,n[,o]] Loads the file number f from the current virtual disk to memory starting at address a.

Optionally the parameter n can be used for the maximum number of bytes that should be loaded. 0 means no limit. With the optional parameter o an offset in the file can be set.

LOAD is meant to be used for tools only. Use ROM entries for game data or persistent memory for game states.

SAVE

SAVE f,c$,a,n Saves n bytes starting at memory address a to the current virtual disk as a file number f (0-15) with comment c$ (up to 31 characters).

If this file was loaded before, consider keeping its original comment or allow the user to edit it before saving. If the file is new, the comment should contain at least the type of data, e.g. "CHARACTERS" or "MUSIC".

SAVE is meant to be used for tools only. Use persistent memory to store game states.

FILES

FILES Loads the current file directory for use with FILE$.

=FILE$

FILE$(f) Returns the comment string of file number f. Call FILES before accessing the file directory to update its content, or use FILE$ directly after LOAD or SAVE.

FILES FOR I=0 TO 15 PRINT I,FILE$(I) NEXT I =FSIZE

FSIZE(n) Returns the number of bytes of file number n. Call FILES before accessing the file directory to update its content, or use FSIZE directly after LOAD or SAVE.


was8bit 2026-08-14 06:45 (Edited)

My data file is organized a set width, so an easy approach to use it as data storage is to have a strict format that allows for easy storage and retrieval


Log in to reply.