English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 25 February 2021, 23:29   #1
h0ffman
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.
h0ffman is offline  
Old 25 February 2021, 23:36   #2
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
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.
Galahad/FLT is offline  
Old 25 February 2021, 23:47   #3
alpine9000
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)
alpine9000 is offline  
Old 26 February 2021, 00:24   #4
a/b
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).
a/b is offline  
Old 26 February 2021, 01:02   #5
mcgeezer
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.
mcgeezer is offline  
Old 26 February 2021, 09:48   #6
ross
Defendit numerus
 
ross's Avatar
 
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.
ross is offline  
Old 26 February 2021, 13:41   #7
Photon
Moderator
 
Photon's Avatar
 
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.
Photon is offline  
Old 26 February 2021, 23:12   #8
Angus
Amiga Games Database
 
Angus's Avatar
 
Join Date: Jun 2006
Location: South West England
Posts: 1,279
Quote:
Originally Posted by Galahad/FLT View Post
I would avoid using a hardware file load/save.

Hi Phill, sent you a pm a bit back, in case you missed it - quite understood if it's a "no". Cheers.
Angus is offline  
Old 27 February 2021, 09:49   #9
h0ffman
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.
h0ffman is offline  
Old 27 February 2021, 17:14   #10
mr.spiv
Registered User
 
mr.spiv's Avatar
 
Join Date: Aug 2006
Location: Finland
Age: 52
Posts: 244
Quote:
Originally Posted by ross View Post
Probably the simplest thing is to use a defined track, reserving the sectors in the bitmap and then write it entirely.
Or use the free available sector label area
mr.spiv is offline  
Old 27 February 2021, 17:58   #11
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,483
Quote:
Originally Posted by mr.spiv View Post
Or use the free available sector label area
This reminds me of something
ross is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:36.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10835 seconds with 15 queries