yep, 18 bytes in this case, because I skipped the beginning : "bsr start" and "bra loader" and keep only the "start" code.
and I also skipped the end of the boot because of "cracked by marco polo" string (you can also skip the loader)
most of the time bootmaster can do a direct usable exe (for simple "dos" bootblock)
But in case of NDOS game cracktro, like boot loader, you have to patch, extract the good code...
the boot code always start at offset 12 (because of header)
I use Megamonitor to disassemble a bootblock and patch it.
Code: Select all
<b 40000 0 2 // load boot at $40000, read 2 sectors from sector 0.
d 4000c // disassemble the boot
$4000c : bsr $40012 // start "intro"
$4000e : bra $40274 // goto loader
$40012 : movem.l d0-a6,-(sp) // save registers in stack
... // intro here
$40148 : movem.l (sp)+,d0-a6 // restore registers
$4014c : rts // end of "intro"
...// here the text "VISION FACTORY..."
... // datas
$40274 : ... // start of the loader
...
$4028a: ... // allocmem
...
$402b6: jsr -$1c8(a6) // execbase DoIO() : read sectors
...
$402c2: jmp (a3) // jump to game
...
$402c8: string "cracked by marco polo"...
you can rip the code : copy from $40012 to $402c8 (or $40274)
S boot 40012 402c8
and add exe hunks (a boot is always loaded in Chip ram. force with the hunk_len $40000000+len)