![]() |
![]() |
#1 |
Registered User
Join Date: Dec 2013
Location: Auckland
Posts: 3,556
|
Coding a bootblock that still uses the OS
I'm not quite ready to ditch the OS yet - I'm still reliant on some libraries that use graphics library and cia resource - but I've rewritten everything in my project to optionally to use trackdisk.device rather than opening DOS. I've managed to get it running from a custom NDOS disk with a custom boot sector, but -
One issue I'm having is the instructions I've seen for writing boot blocks (http://amigadev.elowar.com/read/ADCD.../node015A.html) say to put the destination in A0 and return - that seems to work fine on A1200, but if I try it on A500 it immediately gurus. If I don't return from there and just directly jump to the game, I'm assuming it's not freeing as much memory as it could (that documentation mentions that returning from the boot sector cleans up the boot graphic etc). I'm not quite sure what I'm missing, but until I'm ready to completely ditch the OS, I'd definitely love to be able to recover as much memory as possible. Edit: I read https://eab.abime.net/showthread.php?t=110841 and it pointed out that registers need to be preserved, so I preserved everything except the stack, D0 and A0, and it does seem to be booting under A500 settings now. I *think* I can take it from here. Last edited by earok; Yesterday at 06:29. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bootblock | jarre | Coders. General | 5 | 19 April 2022 22:31 |
Coding challenge: Maximize-contiguous-chipmem bootblock | Photon | Coders. System | 30 | 01 August 2017 13:41 |
For sale Blizzard PPC 68060/50/210 320 MB SCSI BVision OS 4, OS 3.9, OS 3.5..... | PPC | MarketPlace | 5 | 20 June 2011 17:49 |
Coding a bootblock | Yesideez | Coders. General | 15 | 23 May 2010 00:13 |
Newbie coding in Storm C V4 (OS 3.9) | NovaCoder | Coders. General | 11 | 12 May 2009 17:19 |
|
|