I've noticed another problem with my code this time it's something with the soft-reset.
The reset routine I'm using (copy-pasted from one of available examples):
resetRoutine
di
ld sp,0100h
ld a,0ffh
out (0b2h),a
ld c,40h
exos 0
ld a,01h
out (0b3h), a
ld a,06h
jp 0c00dh
Installed with:
ld a,0ffh
out (0b2h),a ;system segment to page2
ld hl,resetRoutine
ld (0bff8h),hl ;store soft reset in EXOS segment
My problem is that in a wip that uses more than 64kb I need to reset the machine at least twice (do a hard-reset?) to make it to the boot screen (after a single reset the machine hangs). Another problem is about the sdcard - with all my wips - after a successful reset I need to manually change the current drive to :f: to autorun the file-explorer. However that is not the case with most of the other software. What am I doing wrong?
After reseting the machine in