Skip to content

Commit 6a9c3b8

Browse files
authored
Merge pull request #151 from Konamiman/fix/call-mapdrv-to-sector-0
Fix "map to device sector 0" option in CALL MAPDRV
2 parents 3a1e520 + 3e77e9b commit 6a9c3b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/kernel/bank4/partit.mac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4488,7 +4488,7 @@ MAPDRV_NOGETCUR:
44884488
ld hl,0
44894489
ld (MAPDRV_SEC),hl
44904490
ld (MAPDRV_SEC+2),hl
4491-
jr MAPDRV_GOTPAR
4491+
jr MAPDRV_GOT_PAR_SEC
44924492
MAPDRV_NOP0:
44934493

44944494
;* If partition number is 2 to 4, convert it to primary or logical
@@ -4549,6 +4549,7 @@ MAPDRV_GOTPAR:
45494549

45504550
ld (MAPDRV_SEC),de
45514551
ld (MAPDRV_SEC+2),hl
4552+
MAPDRV_GOT_PAR_SEC:
45524553

45534554
;* Perform the mapping
45544555

0 commit comments

Comments
 (0)