Welcome, Guest. Please login or register.

Author Topic: can you load a file into memory in amigabasic or in amigados?  (Read 1157 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline nbache

Re: can you load a file into memory in amigabasic or in amigados?
« Reply #14 from previous page: January 06, 2025, 01:42:27 PM »
Yes, much better explanation, thanks.

So when you read the disk tracks directly, it's not really a file either, but of course those data that you read can be written into a file, and from there on it looks like you know what to do.

I'm not at all familiar with things like Amos or Blitz, but hopefully someone else can help more there.

Just be aware that when you read the raw data from the disk, you may often end up with chunks of data belonging to separate files, as they will often have been written to the disk interleaved with each other.

But if your aim is more or less to produce some "art" out of the data, that shouldn't be important to you, I guess.

Best regards,

Niels
 

Offline kolla

B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline the777Topic starter

  • Newbie
  • *
  • Join Date: Jan 2025
  • Posts: 8
  • Country: gb
    • Show only replies by the777
 

Offline kolla

Re: can you load a file into memory in amigabasic or in amigados?
« Reply #17 on: January 09, 2025, 11:05:52 AM »
whats that? does it work with any basic interpreter?

It's what it says in the readme...
"The DEV-Handler allows easy access to raw sectors of an exec type device under the dos.library environment."

It means you can access block devices, such as floppy drives, hard drives and partitions, as if they are files, straight from DOS.

Can your basic interpreter read files? If yes, then it can also read disks and partitions.

For example, you can load a raw image of a floppy disk into your basic interpreter simply by reading in the file DEV:DF0 (or if you prefer, DEV:trackdisk.device/0)
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline nbache

Re: can you load a file into memory in amigabasic or in amigados?
« Reply #18 on: January 09, 2025, 11:49:53 AM »
@the777

All once the Dev-handler has been installed and is active, or course (just trying to help avoid any misunderstandings).

The Dev-handler, when active, is what does the magic to create a "DEV:" pseudo-device, under which your disktracks appear as files.

At least thats' the main gist of it. But do read the readme and other docs.

(Never tried it myself, but looks useful and simple if you need it).

Best regards,

Niels