25 February 2021, 23:29 | #1 |
Registered User
Join Date: Aug 2008
Location: Salisbury
Posts: 746
|
Looking for hardware file loader and saver
It's increasingly looking like I'm going to need to kill the system to fit my metal gear port into an a500. There are some additional compression areas I can go down but I know I'm going to lose that with the other soundtracks I still need to write.
My current thoughts are I can do two builds, one hard drive and one from floppy for the 500 / low memory configs. So I was wondering if anyone has a hardware based file load and save routine I could use. Obviously credit will be given. |
25 February 2021, 23:36 | #2 |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,014
|
I would avoid using a hardware file load/save. Only one I can think of that does it natively is a Rob Northen one.
But I find they are not very reliable. My advice would be to stick with a sector loader/save, and if you wanted it file loading/saving because you wanted to allow copying of save file between floppy and hard drive version, does write a quick AmigaDOS util that can do the extraction for the user. When it comes to errors and the like, I just find one that dodges the system that saves to be problematic. |
25 February 2021, 23:47 | #3 |
Registered User
Join Date: Mar 2016
Location: Australia
Posts: 881
|
Celtic Heart contains hardware trackdisk routines for reading and writing:
http://server.owl.de/~frank/CelticHeart.lha (trackdisk.asm) |
26 February 2021, 00:24 | #4 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,050
|
hrtmon (src/file.s). Should be on aminet but maybe there's is a newer version somewhere around (whload is using it as well as winuae).
|
26 February 2021, 01:02 | #5 |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
Ross’ ocean loader can load files from a dos file system with the system off.
It doesnt save though but may get part of what u need. |
26 February 2021, 09:48 | #6 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,483
|
Yep, version for DOS\0 or DOS\1 FS exists, easily configurable as to which CIA/Timer to use.
But no files saving... Probably the simplest thing is to use a defined track, reserving the sectors in the bitmap and then write it entirely. |
26 February 2021, 13:41 | #7 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,647
|
Macro/function MyLoadFile(name) with a flag to switch to track-loaded? Looks up sector start and length in a table from the name. Even with multiple disks it's really quite easy.
But I would wait until the game is near completion with final enough assets. For OCS/1MB normally the OS ends up in slowmem or in case of chipmem-only machines, same amount of total memory left. Is it really that close to full 1MB RAM usage? Only ~7% is used by the OS. |
26 February 2021, 23:12 | #8 |
Amiga Games Database
Join Date: Jun 2006
Location: South West England
Posts: 1,279
|
|
27 February 2021, 09:49 | #9 |
Registered User
Join Date: Aug 2008
Location: Salisbury
Posts: 746
|
Ah OK. Not the greatest of ideas then. I'll hold fire for now on making a final decision until the last of the assets are in. I guess one option also is to use trackdisk.device as that'll be pretty safe and I could do that from boot block saving a few kb without completely killing the system.
|
27 February 2021, 17:14 | #10 |
Registered User
Join Date: Aug 2006
Location: Finland
Age: 52
Posts: 244
|
|
27 February 2021, 17:58 | #11 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,483
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ASM: Hardware Track Loader | Vortex | Coders. Tutorials | 175 | 18 October 2022 19:18 |
Real hardware UAE state file loader | Toni Wilen | support.WinUAE | 52 | 02 December 2021 09:59 |
USSLoad real hardware *.uss state save file loader v2.0 | Toni Wilen | News | 28 | 23 November 2021 20:54 |
Detect file-loader error | majikeyric | Coders. Asm / Hardware | 0 | 02 March 2016 17:55 |
Hardware File Loader | h0ffman | Coders. General | 9 | 02 December 2010 16:40 |
|
|