MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / readsize

Function readsize

src/debug.cpp:1100–1122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1098}
1099
1100static int readsize (int val, TCHAR **c)
1101{
1102 TCHAR cc = _totupper (readchar(c));
1103 if (cc == 'B')
1104 return 1;
1105 if (cc == 'W')
1106 return 2;
1107 if (cc == '3')
1108 return 3;
1109 if (cc == 'L')
1110 return 4;
1111#ifdef WITH_SOFTFLOAT
1112 if (cc == 'S')
1113 return NUMTYTPE_S;
1114 if (cc == 'D')
1115 return NUMTYTPE_D;
1116 if (cc == 'X')
1117 return NUMTYTPE_X;
1118 if (cc == 'P')
1119 return NUMTYTPE_P;
1120#endif
1121 return 0;
1122}
1123
1124static int checkvaltype(TCHAR **cp, uae_u32 *val, debugfloatx80 *valx80, int *size, TCHAR def)
1125{

Callers 1

checkvaltypeFunction · 0.85

Calls 1

readcharFunction · 0.85

Tested by

no test coverage detected