mr-atari wrote:
don't do the JSR HDINIT. Just set CBFA, CBFE, CBFF anf JMP E477.
there could be one problem.... when does your program takes
control? after the coldstart has finished or before. if it starts
before, you need to set the system-status finished. clear $244.
Try your program loaded by DOS. Then your system-status is ok.
Hi Sijmen,
I tried it from dos and it worked fine. My program runs from the flashcart, so whatever state the computer is in when an exe runs from the flashcart menu. Strange thing is that booting worked in the last build before this one.
I haven't tried setting $244 or $9, but I will try that when I get a chance.
Quote:
I have to think this over, give me some days to re-think.
The power-up routine was very tricky to get it right ;-
I'll try to work around whatever you are doing to get things going with your boot routine.
Quote:
So I guess, hdinit isn't loaded yet (you are still at coldstart
power-up).
The HD is definitely init-ed, since my program checks for the HDINIT value at the $CBFx address and doesn't run otherwise.
Quote:
2 ways to fix. 1/end powerupfirst and start your
program using the vectors at $a,$b and setting bit 0 at $9
2/do hdinit, then set CFBA,CBFE,CBFF, and JMP E477.
Let me try that and get back to you!