English Amiga Board    


Go Back   English Amiga Board > » Coders > Coders. General

Reply
 
Thread Tools
Old 12 October 2012, 15:56   #1
st!
Registered User
 
Join Date: Oct 2012
Location: Between
Posts: 2
HD loader example

Hi,

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.
st! is offline   Reply With Quote
Old 12 October 2012, 16:14   #2
redblade
Zone Friend
 
redblade's Avatar
 
Join Date: Mar 2004
Location: Western Australia
Age: 29
Posts: 938
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   Reply With Quote
Old 12 October 2012, 16:28   #3
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 4,547
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).
__________________
Makes me sick when I hear all the shit that you say
So much crap coming out, it must take you all day
There's a space kept in hell with your name on the seat
With a spike in the chair just to make it complete
StingRay is offline   Reply With Quote
Old 15 October 2012, 15:52   #4
st!
Registered User
 
Join Date: Oct 2012
Location: Between
Posts: 2
Ok, thanks, I'll check if it works that way!
st! is offline   Reply With Quote
Old 16 October 2012, 21:56   #5
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 4,547
If you do it right it'll definitely work that way.
__________________
Makes me sick when I hear all the shit that you say
So much crap coming out, it must take you all day
There's a space kept in hell with your name on the seat
With a spike in the chair just to make it complete
StingRay is offline   Reply With Quote
Reply


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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ripping the RNC sector loader... h0ffman Coders. General 13 07 September 2011 23:00
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
IFF Loader v1.0.0 is released... :) Steve News 11 17 September 2004 19:10


All times are GMT +2. The time now is 05:57.

-->

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Page generated in 0.20076 seconds with 11 queries