# HG changeset patch # User Tormod Volden # Date 1389517901 -3600 # Node ID a7c66ffbec7c2357919305725880390046bf5c11 # Parent f1fba5550feeb2a3ac1ad5eb68531664853f541c Demystify string character calculation involving DNum or ITDRV Just make this calculation easier to understand and consistent over all files. diff -r f1fba5550fee -r a7c66ffbec7c 3rdparty/drivers/ide/idedesc.asm --- a/3rdparty/drivers/ide/idedesc.asm Sun Jan 12 01:40:58 2014 +0100 +++ b/3rdparty/drivers/ide/idedesc.asm Sun Jan 12 10:11:41 2014 +0100 @@ -94,7 +94,7 @@ name fcs /DD/ ELSE name fcc /H/ - fcb ITDRV+$B0 + fcb '0+ITDRV+$80 ENDC mgrnam fcs /RBF/ drvnam fcs /CCIDE/ diff -r f1fba5550fee -r a7c66ffbec7c 3rdparty/drivers/mmc/mmcdesc.asm --- a/3rdparty/drivers/mmc/mmcdesc.asm Sun Jan 12 01:40:58 2014 +0100 +++ b/3rdparty/drivers/mmc/mmcdesc.asm Sun Jan 12 10:11:41 2014 +0100 @@ -95,7 +95,7 @@ name fcs /DD/ else name fcc /H/ - fcb ITDRV+$B0 + fcb '0+ITDRV+$80 endc mgrnam fcs /RBF/ drvnam fcs /MMCDRV/ diff -r f1fba5550fee -r a7c66ffbec7c 3rdparty/fmgrs/msf/msfdesc.asm --- a/3rdparty/fmgrs/msf/msfdesc.asm Sun Jan 12 01:40:58 2014 +0100 +++ b/3rdparty/fmgrs/msf/msfdesc.asm Sun Jan 12 10:11:41 2014 +0100 @@ -24,9 +24,9 @@ optB equ * IFEQ density&%100 ..not hi density -namB fcb dnam,DNum+48+%10000000 device name +namB fcb dnam,'0+DNum+$80 device name ELSE -namB fcb dnam,'H,DNum+48+%10000000 add H to device name +namB fcb dnam,'H,'0+DNum+$80 add H to device name ENDC mgrB fcs /MSF/ diff -r f1fba5550fee -r a7c66ffbec7c level1/modules/dwdesc.asm --- a/level1/modules/dwdesc.asm Sun Jan 12 01:40:58 2014 +0100 +++ b/level1/modules/dwdesc.asm Sun Jan 12 10:11:41 2014 +0100 @@ -59,7 +59,7 @@ name fcs /DD/ ELSE name fcc /X/ - fcb 176+DNum + fcb '0+DNum+$80 ENDC mgrnam fcs /RBF/ drvnam fcs /rbdw/ diff -r f1fba5550fee -r a7c66ffbec7c level1/modules/rfmdesc.asm --- a/level1/modules/rfmdesc.asm Sun Jan 12 01:40:58 2014 +0100 +++ b/level1/modules/rfmdesc.asm Sun Jan 12 10:11:41 2014 +0100 @@ -39,7 +39,7 @@ name fcs /DD/ ELSE name fcc /Y/ - fcb 176+DNum + fcb '0+DNum+$80 ENDC mgrnam fcs /RFM/ diff -r f1fba5550fee -r a7c66ffbec7c level1/modules/superdesc.asm --- a/level1/modules/superdesc.asm Sun Jan 12 01:40:58 2014 +0100 +++ b/level1/modules/superdesc.asm Sun Jan 12 10:11:41 2014 +0100 @@ -165,7 +165,7 @@ IFNE NULL name FCC /NULL/ - FCB ITDRV+$B0 + FCB '0+ITDRV+$80 ELSE IFNE DD name FCS /DD/ @@ -175,7 +175,7 @@ IFNE HB FCS /H/ ELSE - FCB ITDRV+$B0 + FCB '0+ITDRV+$80 ENDC ELSE IFNE IDE @@ -183,7 +183,7 @@ IFNE HB FCS /H/ ELSE - FCB ITDRV+$B0 + FCB '0+ITDRV+$80 ENDC ELSE IFNE COCOSDC @@ -191,14 +191,14 @@ IFNE HB FCS /H/ ELSE - FCB ITDRV+$B0 + FCB '0+ITDRV+$80 ENDC ELSE name FCC /S/ IFNE HB FCS /H/ ELSE - FCB ITDRV+$B0 + FCB '0+ITDRV+$80 ENDC ENDC ENDC