.if BOOTWAIT
ldi temp,10
- call delay_ms
+ rcall delay_ms
.endif
ldi temp2,8
ramtestwl:
ldi temp,255
- call delay_ms
+ rcall delay_ms
dec temp2
brne ramtestwl
printnewline
printstring "Initing mmc...",0
printnewline
- call mgr_init_partitions
+ lcall mgr_init_partitions
cbr temp,0x80
brne boot_ipl2
boot_ipl2:
- call mgr_prnt_parttbl
+ lcall mgr_prnt_parttbl
printnewline
printstring "Partinit done."
; Read first sector of first CP/M partition (ipl)
- lds xl,hostparttbl+1
- lds xh,hostparttbl+2
- lds yl,hostparttbl+3
- lds yh,hostparttbl+4
- rcall mmcReadSect
+; lds xl,hostparttbl+1
+; lds xh,hostparttbl+2
+; lds yl,hostparttbl+3
+; lds yh,hostparttbl+4
+; rcall mmcReadSect
+
+; Disk 0
+ sts seekdsk,_0
+; Track 0
+ sts seektrk,_0
+ sts seektrk+1,_0
+; Sector 0
+ sts seeksec,_0
+
+ rcall dsk_read
; rcall dsk_cboot ;init (de)blocking buffer
brne iplwriteloop
cpi zh,high(hostbuf+128)
brne iplwriteloop
- jmp z80_init
+ ljmp z80_init