English Amiga Board


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

 
 
Thread Tools
Old 15 February 2007, 17:50   #21
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
Quote:
Originally Posted by bippym
okay how is this for a loader (basic)

I got this by reading various tutorials on flashtro and other sites over past few weeks etc (and I explained this to dlfrsilver last night )

Code:
ExecBase    EQU 4
_LVODoIo    EQU -456
CMD_READ    EQU 2
IO_COMMAND    EQU 28
IO_DATA        EQU 40
IO_LENGTH    EQU 36
IO_OFFSET    EQU 44

DEST        EQU $70000
SIZE        EQU $10000
OFFSET        EQU $400

        move.l    #ExecBase,a6
        move.w    #CMD_READ,(IO_COMMAND,a1)
        move.l    #DEST, (IO_LENGTH,a1)
        move.l    #SIZE, (IO_LENGTH,a1)
        move.l    #OFFSET,(IO_OFFSET,a1)
        jsr    _LVODoIo,(a6)

(Jump to supervisor mode, not sure how yet, but I think TRAP)

        jmp    #DEST
        rts
could i use that sort of loader instead of the mfm loader from the game i've ripped files from?

I want to replace the loader with one like this (using trackdisk) would it work? and how would I know the offset on the disk for the files?
BippyM is offline  
Old 15 February 2007, 19:05   #22
musashi5150
move.w #$4489,$dff07e
 
musashi5150's Avatar
 
Join Date: Sep 2005
Location: Norfolk, UK
Age: 42
Posts: 2,351
No. It would be alright for single load games - but not for multiload. The reason? The DOS functions like DoIO() etc aren't available when running an NDOS game because you are running without the OS.

The solution would be to code (or borrow) your own raw tracks loader for DOS disks....
musashi5150 is offline  
Old 15 February 2007, 20:42   #23
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
hmmm this will be a challenge then seeing as I have absolutely NO idea what i'm doing when it comes to custom trackloaders!



Guess i'd better start reading and understanding.. if anyone wants to point me towards some detailed examples then please feel free!

I am at the point where I need to rebuild the disk image and track it
BippyM is offline  
Old 15 February 2007, 20:44   #24
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
http://eab.abime.net/showthread.php?t=28058

the bootblock in that thread is so well commented it's excellent

still not too sure what i need to do tho..

Great work x_to
BippyM is offline  
Old 15 February 2007, 20:56   #25
Joe Maroni
Moderator
 
Joe Maroni's Avatar
 
Join Date: Feb 2003
Location: Germany
Age: 44
Posts: 1,303
Send a message via MSN to Joe Maroni
Bippy....we both can reach it to understand assembler as well as we can...


if i knew earlier that i already "disassembled" the trackloader i stopped work before doing it...


but glad to see thatit help some others....
if anyone like i try to comment some other bootblocks too...
Joe Maroni is offline  
Old 15 February 2007, 21:00   #26
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
yeah

I'm hoping i can learn from your bootblock.
BippyM is offline  
Old 16 February 2007, 12:51   #27
Joe Maroni
Moderator
 
Joe Maroni's Avatar
 
Join Date: Feb 2003
Location: Germany
Age: 44
Posts: 1,303
Send a message via MSN to Joe Maroni
i´m not 100% sure if everything is right commented...
Joe Maroni is offline  
Old 16 February 2007, 14:01   #28
musashi5150
move.w #$4489,$dff07e
 
musashi5150's Avatar
 
Join Date: Sep 2005
Location: Norfolk, UK
Age: 42
Posts: 2,351
You could learn a lot from here:

http://aminet.net/dev/src/trackldr1_43.lha

It's a good trackloader - maybe a little bloated, but you could slim it down some.
musashi5150 is offline  
Old 05 June 2008, 12:49   #29
SkippyAR
 
Posts: n/a
Why not try de-protecting Richard Aplin's Double Dragon II game with an original a500 and Amiga Replay Amiga I, II or III

Hints: CIA Timing and CyberDos

Skippstah.
 
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alien Storm V1.4 Uploaded to the Zone (Please Test and Provide Feedback) Abaddon project.WHDLoad 5 01 May 2013 08:00
So I 'cracked' Photon Storm. What do you guys think? MethodGit Coders. General 3 05 August 2012 02:41
How was Alien Breed '92 cracked again? MethodGit support.Games 7 15 October 2010 21:00
Storm C 4 vulture request.Apps 4 26 November 2009 15:52
Storm C V4 NovaCoder Coders. General 5 28 October 2008 10:24

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 04:22.

Top

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