Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline the777Topic starter

  • Newbie
  • *
  • Join Date: Jan 2025
  • Posts: 8
  • Country: gb
    • Show only replies by the777
can you load a file into memory in amigabasic or in amigados?
« on: January 04, 2025, 12:08:17 AM »
so you can look at the ascii of the file... . so not actually run the file but put it somewhere in memory so i can take a look at the ascii, hex, decimal, disassembly, etc...
« Last Edit: January 04, 2025, 12:10:38 AM by the777 »
 

Online TribbleSmasher

Re: can you load a file into memory in amigabasic or in amigados?
« Reply #1 on: January 04, 2025, 01:06:32 AM »
Why not use a hex editor instead, or Directory Opus?

why does it need to be Amiga Basic or "amigados"?
 

Offline the777Topic starter

  • Newbie
  • *
  • Join Date: Jan 2025
  • Posts: 8
  • Country: gb
    • Show only replies by the777
Re: can you load a file into memory in amigabasic or in amigados?
« Reply #2 on: January 04, 2025, 01:41:51 AM »
deleted
« Last Edit: January 04, 2025, 01:42:30 AM by the777 »
 

Offline the777Topic starter

  • Newbie
  • *
  • Join Date: Jan 2025
  • Posts: 8
  • Country: gb
    • Show only replies by the777
Re: can you load a file into memory in amigabasic or in amigados?
« Reply #3 on: January 04, 2025, 01:43:33 AM »
because i want to see if the amiga could do it out of the box
 

Offline AmigaPete

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 242
  • Country: ca
    • Show only replies by AmigaPete
Re: can you load a file into memory in amigabasic or in amigados?
« Reply #4 on: January 04, 2025, 01:54:29 AM »
Copy the file to RAM: then open with Ed?
 

Offline the777Topic starter

  • Newbie
  • *
  • Join Date: Jan 2025
  • Posts: 8
  • Country: gb
    • Show only replies by the777
Re: can you load a file into memory in amigabasic or in amigados?
« Reply #5 on: January 04, 2025, 10:48:10 AM »
Copy the file to RAM: then open with Ed?

the idea is to use basic at some point to turn the decimal into colored dots to represent whats on the disk or file
 

Offline polyp2000

  • Sr. Member
  • ****
  • Join Date: Jan 2011
  • Posts: 265
    • Show only replies by polyp2000
    • https://soundcloud.com/polyp/sets/polyp-2013
Re: can you load a file into memory in amigabasic or in amigados?
« Reply #6 on: January 04, 2025, 12:36:41 PM »
"can you load a file into memory in amigabasic or in amigados?"

both of those things would be without purpose if they were unable to perform that function.
What a ridiculous question.

Offline the777Topic starter

  • Newbie
  • *
  • Join Date: Jan 2025
  • Posts: 8
  • Country: gb
    • Show only replies by the777
Re: can you load a file into memory in amigabasic or in amigados?
« Reply #7 on: January 05, 2025, 10:53:00 AM »
deleted
« Last Edit: January 05, 2025, 10:53:58 AM by the777 »
 

Offline the777Topic starter

  • Newbie
  • *
  • Join Date: Jan 2025
  • Posts: 8
  • Country: gb
    • Show only replies by the777
Re: can you load a file into memory in amigabasic or in amigados?
« Reply #8 on: January 05, 2025, 10:54:16 AM »
"can you load a file into memory in amigabasic or in amigados?"

both of those things would be without purpose if they were unable to perform that function.
What a ridiculous question.

the idea it to put the code into ram, so it can be read in ascii, hex, decimal, etc. not loaded into basic as a program, etc.
« Last Edit: January 05, 2025, 10:56:12 AM by the777 »
 

Offline ZXDunny

Re: can you load a file into memory in amigabasic or in amigados?
« Reply #9 on: January 05, 2025, 02:29:20 PM »
The answer is yes. Yes you can.
 

Offline Boing-ball

Re: can you load a file into memory in amigabasic or in amigados?
« Reply #10 on: January 05, 2025, 03:23:58 PM »
So the poster has asked a valid question. Yet it appears the Sheldon’s have appeared to take the p!
Come on guys if you know the answer to the question at least properly answer it…
I don’t know the answer, so enlighten us….

Also this poster has just joined. What a welcome! 🙄
« Last Edit: January 05, 2025, 03:26:51 PM by Boing-ball »
 

Offline nbache

Re: can you load a file into memory in amigabasic or in amigados?
« Reply #11 on: January 05, 2025, 06:02:30 PM »
One problem is the lack of information given by the OP.

There's no such thing as "a file" - at least not in any useful manner.

He needs to specify which kind of file it is and what sort of content he expects to be able to look for in the file. Then maybe more useful information could be given.

Best regards,

Niels
 

Offline the777Topic starter

  • Newbie
  • *
  • Join Date: Jan 2025
  • Posts: 8
  • Country: gb
    • Show only replies by the777
Re: can you load a file into memory in amigabasic or in amigados?
« Reply #12 on: January 06, 2025, 12:35:46 PM »
One problem is the lack of information given by the OP.

There's no such thing as "a file" - at least not in any useful manner.

He needs to specify which kind of file it is and what sort of content he expects to be able to look for in the file. Then maybe more useful information could be given.

Best regards,

Niels

i need it to read the sectors of a disk. i want to see what is in each sector and represent it as decimal numbers. im not looking for anything particular in the code. that information could be used to draw a map of the disk in color or monochrome

ive used amos to read the data inside a file and draw a color map of it but now i want to read the sectors directly

i know there is a trackdisk extension for amos but the instructions arent very good after translating from french

and i know there is an undocumented trackdisk command for blitz basic but cant find any instructions for it
« Last Edit: January 06, 2025, 12:43:24 PM by the777 »
 

Offline Boing-ball

Re: can you load a file into memory in amigabasic or in amigados?
« Reply #13 on: January 06, 2025, 01:11:00 PM »
Good description from the Op.

Welcome to Amiga.org 👍🏻

 

Offline nbache

Re: can you load a file into memory in amigabasic or in amigados?
« Reply #14 on: 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