English Amiga Board

Go Back   English Amiga Board > Coders > Coders. General

Thread Tools
Old 12 October 2012, 15:56   #1
Posts: n/a
HD loader example


I've already posted similar topic on Flashtro forums but it looks like I should've start here.

I've been trying to fix some NDOS game to load from HD. I don't want to use WHDL, since it's too
much for my A600, also it's better way to get into coding. I've already located track loader,
dumped all the files, found neccessary offsets to patch, etc. Then I got stuck. Could anyone tell
me if there's any tutorial/example how to load files from HD? I googled a bit but could't find
anything specific.
Old 12 October 2012, 16:14   #2
Zone Friend

redblade's Avatar
Join Date: Mar 2004
Location: Middle Earth
Age: 37
Posts: 1,742
I think dos.library isn't to friendly under _LVOForbid? Isn't that why Syndicate sometimes crashes the HD and you have to wait a while for it to revalidate itself on reboot?
redblade is offline  
Old 12 October 2012, 16:28   #3
move.l #$c0ff33,throat

StingRay's Avatar
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,650
This is not too trivial. At the start of your patch you need to save the "zero page" (first 1k should be enough) since important system data is stored there. Then, when you need to load from HD, you have to restore the "zero page" (it's not exactly zero page but I called it like this ever since my 64 days) and re-enable ports/timers interrupt so you can actually use dos.library for loading. If you get stuck I might attach the source for one of my old HD patches from back in the day (1996/1997).
StingRay is online now  
Old 15 October 2012, 15:52   #4
Posts: n/a
Ok, thanks, I'll check if it works that way!
Old 16 October 2012, 21:56   #5
move.l #$c0ff33,throat

StingRay's Avatar
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,650
If you do it right it'll definitely work that way.
StingRay is online now  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hardware File Loader h0ffman Coders. General 9 02 December 2010 16:40
WinUAE Loader + WHDLoad problem BobbyBobBob support.WinUAE 5 07 January 2010 22:35
HELP........with getting winuae loader to work. mrbailey1890 support.WinUAE 3 08 July 2009 23:47
RNC IDE CD32 loader Galahad/FLT support.WinUAE 19 24 June 2006 10:05
IFF Loader v1.0.0 is released... :) Steve News 11 17 September 2004 19:10

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 10:52.

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