On the C64 I have an ML Routine that displays a directory.
The format for the command is SYS850,"$:*"
I need to insert a variable into the $ string. So that in a program I
can display filenames that start with a letter.
For example, I want to display all file names that start with I. so
10 A$="I":sys850,"$:"+A$+"*"
will not work.
Does anyone know a way to do this?
On the C64 I have an ML Routine that displays a directory.
The format for the command is SYS850,"$:*"
I need to insert a variable into the $ string. So that in a program I
can display filenames that start with a letter.
For example, I want to display all file names that start with I. so
10 A$="I":sys850,"$:"+A$+"*"
will not work.
Does anyone know a way to do this?
TIA
Thomas <thomas.Xfggtf@m.invalid> writes:
On the C64 I have an ML Routine that displays a directory.
The format for the command is SYS850,"$:*"
I need to insert a variable into the $ string. So that in a program I
can display filenames that start with a letter.
For example, I want to display all file names that start with I. so
10 A$="I":sys850,"$:"+A$+"*"
will not work.
Does anyone know a way to do this?
What about putting the whole argument into A$, does that work? So
for example just
10 A$="$:I*":sys850,A$
But really, in stock C64 basic SYS doesn't take parameters so
I suppose you have something non-stock running? So maybe you can look
into how that works to figure out how to do what you want?
| Sysop: | Winzlo |
|---|---|
| Location: | Minnesota, USA |
| Users: | 11 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 495934:02:01 |
| Calls: | 82 |
| Files: | 1,070 |
| D/L today: |
27 files (11,920K bytes) |
| Messages: | 286,919 |