Quote:
Originally Posted by spud
Let's say I have a single file game I want to track load in, what do I have do to that file?
|
easy way
use a tool like
SectorTrasher (The Master/Silents Dk): Zoned
pick the file, "write sectors"
and then set the load address and the jump address, the same most of the time : if program packed at absolute address (ex. $40000), use this one, else make sure the program is relocatable or (re)pack it at absolute address you want.
and "write bootblock"
and voilĂ
if you want to code : copy the file (AR, sectortrasher,megamon,etc...)
use the trackdisk.device directly from boot
Code:
dc.b "DOS",0
dc.l 0
dc.l $370
movea.l $4.w,a6
move.l #80*512,36(a1) ; len nb sectors*512 (80)
move.l #$40000,40(a1) ; buffer
move.l #11*512,44(a1) ; offset sector start (11)
move.w #2,28(a1) ; read
jsr -456(a6) ;
move.w #9,28(a1) ; td_motor
clr.l 36(a1) ; off
jsr -456(a6) ;
jmp $40000
compil, fix the checksum and write at sector 0 (with AR, megamon, or other tool for boot)