From Lucho (and I think Arkady had this as well at some point):

save 33 bytes by eliminating a switch for memory/UMB access modes.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@822 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2004-03-25 00:20:20 +00:00
parent f63eea565a
commit d17f333243
2 changed files with 6 additions and 19 deletions

View File

@ -45,6 +45,8 @@ static BYTE *mcb_hRcsId =
#define FIRST_FIT_U 0x80 #define FIRST_FIT_U 0x80
#define BEST_FIT_U 0x81 #define BEST_FIT_U 0x81
#define LAST_FIT_U 0x82 #define LAST_FIT_U 0x82
#define FIT_U_MASK 0xc0
#define FIT_MASK 0x3f
#define MCB_NORMAL 0x4d #define MCB_NORMAL 0x4d
#define MCB_LAST 0x5a #define MCB_LAST 0x5a

View File

@ -1210,25 +1210,10 @@ dispatch:
break; break;
case 0x01: case 0x01:
{ if ((lr.BL & FIT_U_MASK) > FIRST_FIT_U || /* 0xc0, 0x80 */
switch (lr.BL) (lr.BL & FIT_MASK) > LAST_FIT) /* 0x3f, 0x02 */
{ goto error_invalid;
case LAST_FIT: mem_access_mode = lr.BL;
case LAST_FIT_U:
case LAST_FIT_UO:
case BEST_FIT:
case BEST_FIT_U:
case BEST_FIT_UO:
case FIRST_FIT:
case FIRST_FIT_U:
case FIRST_FIT_UO:
mem_access_mode = lr.BL;
break;
default:
goto error_invalid;
}
}
break; break;
case 0x02: case 0x02: