![]() |
|
|
#1 |
|
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. |
|
|
|
|
|
#2 |
|
Zone Friend
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?
|
|
|
|
|
|
#3 |
|
move.l #$c0ff33,throat
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 |
|
|
|
|
|
#4 |
|
Registered User
Join Date: Oct 2012
Location: Between
Posts: 2
|
Ok, thanks, I'll check if it works that way!
|
|
|
|
|
|
#5 |
|
move.l #$c0ff33,throat
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 |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
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 |