//
// To save code space the function AmiSetByte is replaced by
// an macro.
-// void AmiSetByte (void FAR* pAddr_p, BYTE bByteVal_p);
+// void AmiSetByte (void * pAddr_p, BYTE bByteVal_p);
-#define AmiSetByteToBe(pAddr_p, bByteVal_p) {*(BYTE FAR*)(pAddr_p) = (bByteVal_p);}
-#define AmiSetByteToLe(pAddr_p, bByteVal_p) {*(BYTE FAR*)(pAddr_p) = (bByteVal_p);}
+#define AmiSetByteToBe(pAddr_p, bByteVal_p) {*(BYTE *)(pAddr_p) = (bByteVal_p);}
+#define AmiSetByteToLe(pAddr_p, bByteVal_p) {*(BYTE *)(pAddr_p) = (bByteVal_p);}
-void AmiSetWordToBe(void FAR *pAddr_p, WORD wWordVal_p);
-void AmiSetDwordToBe(void FAR *pAddr_p, DWORD dwDwordVal_p);
-void AmiSetWordToLe(void FAR *pAddr_p, WORD wWordVal_p);
-void AmiSetDwordToLe(void FAR *pAddr_p, DWORD dwDwordVal_p);
+void AmiSetWordToBe(void *pAddr_p, WORD wWordVal_p);
+void AmiSetDwordToBe(void *pAddr_p, DWORD dwDwordVal_p);
+void AmiSetWordToLe(void *pAddr_p, WORD wWordVal_p);
+void AmiSetDwordToLe(void *pAddr_p, DWORD dwDwordVal_p);
//---------------------------------------------------------------------------
//
//
// To save code space the function AmiGetByte is replaced by
// an macro.
-// BYTE AmiGetByte (void FAR* pAddr_p);
+// BYTE AmiGetByte (void * pAddr_p);
-#define AmiGetByteFromBe(pAddr_p) (*(BYTE FAR*)(pAddr_p))
-#define AmiGetByteFromLe(pAddr_p) (*(BYTE FAR*)(pAddr_p))
+#define AmiGetByteFromBe(pAddr_p) (*(BYTE *)(pAddr_p))
+#define AmiGetByteFromLe(pAddr_p) (*(BYTE *)(pAddr_p))
-WORD AmiGetWordFromBe(void FAR *pAddr_p);
-DWORD AmiGetDwordFromBe(void FAR *pAddr_p);
-WORD AmiGetWordFromLe(void FAR *pAddr_p);
-DWORD AmiGetDwordFromLe(void FAR *pAddr_p);
+WORD AmiGetWordFromBe(void *pAddr_p);
+DWORD AmiGetDwordFromBe(void *pAddr_p);
+WORD AmiGetWordFromLe(void *pAddr_p);
+DWORD AmiGetDwordFromLe(void *pAddr_p);
//---------------------------------------------------------------------------
//
//
//---------------------------------------------------------------------------
-void AmiSetDword24ToBe(void FAR *pAddr_p, DWORD dwDwordVal_p);
-void AmiSetDword24ToLe(void FAR *pAddr_p, DWORD dwDwordVal_p);
+void AmiSetDword24ToBe(void *pAddr_p, DWORD dwDwordVal_p);
+void AmiSetDword24ToLe(void *pAddr_p, DWORD dwDwordVal_p);
//---------------------------------------------------------------------------
//
//
//---------------------------------------------------------------------------
-DWORD AmiGetDword24FromBe(void FAR *pAddr_p);
-DWORD AmiGetDword24FromLe(void FAR *pAddr_p);
+DWORD AmiGetDword24FromBe(void *pAddr_p);
+DWORD AmiGetDword24FromLe(void *pAddr_p);
//#ifdef USE_VAR64
//
//---------------------------------------------------------------------------
-void AmiSetQword40ToBe(void FAR *pAddr_p, QWORD qwQwordVal_p);
-void AmiSetQword40ToLe(void FAR *pAddr_p, QWORD qwQwordVal_p);
+void AmiSetQword40ToBe(void *pAddr_p, QWORD qwQwordVal_p);
+void AmiSetQword40ToLe(void *pAddr_p, QWORD qwQwordVal_p);
//---------------------------------------------------------------------------
//
//
//---------------------------------------------------------------------------
-QWORD AmiGetQword40FromBe(void FAR *pAddr_p);
-QWORD AmiGetQword40FromLe(void FAR *pAddr_p);
+QWORD AmiGetQword40FromBe(void *pAddr_p);
+QWORD AmiGetQword40FromLe(void *pAddr_p);
//---------------------------------------------------------------------------
//
//
//---------------------------------------------------------------------------
-void AmiSetQword48ToBe(void FAR *pAddr_p, QWORD qwQwordVal_p);
-void AmiSetQword48ToLe(void FAR *pAddr_p, QWORD qwQwordVal_p);
+void AmiSetQword48ToBe(void *pAddr_p, QWORD qwQwordVal_p);
+void AmiSetQword48ToLe(void *pAddr_p, QWORD qwQwordVal_p);
//---------------------------------------------------------------------------
//
//
//---------------------------------------------------------------------------
-QWORD AmiGetQword48FromBe(void FAR *pAddr_p);
-QWORD AmiGetQword48FromLe(void FAR *pAddr_p);
+QWORD AmiGetQword48FromBe(void *pAddr_p);
+QWORD AmiGetQword48FromLe(void *pAddr_p);
//---------------------------------------------------------------------------
//
//
//---------------------------------------------------------------------------
-void AmiSetQword56ToBe(void FAR *pAddr_p, QWORD qwQwordVal_p);
-void AmiSetQword56ToLe(void FAR *pAddr_p, QWORD qwQwordVal_p);
+void AmiSetQword56ToBe(void *pAddr_p, QWORD qwQwordVal_p);
+void AmiSetQword56ToLe(void *pAddr_p, QWORD qwQwordVal_p);
//---------------------------------------------------------------------------
//
//
//---------------------------------------------------------------------------
-QWORD AmiGetQword56FromBe(void FAR *pAddr_p);
-QWORD AmiGetQword56FromLe(void FAR *pAddr_p);
+QWORD AmiGetQword56FromBe(void *pAddr_p);
+QWORD AmiGetQword56FromLe(void *pAddr_p);
//---------------------------------------------------------------------------
//
//
//---------------------------------------------------------------------------
-void AmiSetQword64ToBe(void FAR *pAddr_p, QWORD qwQwordVal_p);
-void AmiSetQword64ToLe(void FAR *pAddr_p, QWORD qwQwordVal_p);
+void AmiSetQword64ToBe(void *pAddr_p, QWORD qwQwordVal_p);
+void AmiSetQword64ToLe(void *pAddr_p, QWORD qwQwordVal_p);
//---------------------------------------------------------------------------
//
//
//---------------------------------------------------------------------------
-QWORD AmiGetQword64FromBe(void FAR *pAddr_p);
-QWORD AmiGetQword64FromLe(void FAR *pAddr_p);
+QWORD AmiGetQword64FromBe(void *pAddr_p);
+QWORD AmiGetQword64FromLe(void *pAddr_p);
//---------------------------------------------------------------------------
//
// Return: void
//
//---------------------------------------------------------------------------
-void AmiSetTimeOfDay(void FAR *pAddr_p, tTimeOfDay FAR *pTimeOfDay_p);
+void AmiSetTimeOfDay(void *pAddr_p, tTimeOfDay *pTimeOfDay_p);
//---------------------------------------------------------------------------
//
// Return: void
//
//---------------------------------------------------------------------------
-void AmiGetTimeOfDay(void FAR *pAddr_p, tTimeOfDay FAR *pTimeOfDay_p);
+void AmiGetTimeOfDay(void *pAddr_p, tTimeOfDay *pTimeOfDay_p);
#ifdef __cplusplus
}
//------------< write BYTE in big endian >--------------------------
/*
-void AmiSetByteToBe (void FAR* pAddr_p, BYTE bByteVal_p)
+void AmiSetByteToBe (void *pAddr_p, BYTE bByteVal_p)
{
- *(BYTE FAR*)pAddr_p = bByteVal_p;
+ *(BYTE *)pAddr_p = bByteVal_p;
}
*/
//------------< write WORD in big endian >--------------------------
-void AmiSetWordToBe(void FAR * pAddr_p, WORD wWordVal_p)
+void AmiSetWordToBe(void * pAddr_p, WORD wWordVal_p)
{
- twStruct FAR *pwStruct;
+ twStruct *pwStruct;
twStruct wValue;
wValue.m_wWord = (WORD) ((wWordVal_p & 0x00FF) << 8); //LSB to MSB
wValue.m_wWord |= (WORD) ((wWordVal_p & 0xFF00) >> 8); //MSB to LSB
- pwStruct = (twStruct FAR *) pAddr_p;
+ pwStruct = (twStruct *) pAddr_p;
pwStruct->m_wWord = wValue.m_wWord;
}
//------------< write DWORD in big endian >-------------------------
-void AmiSetDwordToBe(void FAR *pAddr_p, DWORD dwDwordVal_p)
+void AmiSetDwordToBe(void *pAddr_p, DWORD dwDwordVal_p)
{
- tdwStruct FAR *pdwStruct;
+ tdwStruct *pdwStruct;
tdwStruct dwValue;
dwValue.m_dwDword = ((dwDwordVal_p & 0x000000FF) << 24); //LSB to MSB
dwValue.m_dwDword |= ((dwDwordVal_p & 0x00FF0000) >> 8);
dwValue.m_dwDword |= ((dwDwordVal_p & 0xFF000000) >> 24); //MSB to LSB
- pdwStruct = (tdwStruct FAR *) pAddr_p;
+ pdwStruct = (tdwStruct *) pAddr_p;
pdwStruct->m_dwDword = dwValue.m_dwDword;
}
//------------< write BYTE in little endian >--------------------------
/*
-void AmiSetByteToLe (void FAR* pAddr_p, BYTE bByteVal_p)
+void AmiSetByteToLe (void *pAddr_p, BYTE bByteVal_p)
{
- *(BYTE FAR*)pAddr_p = bByteVal_p;
+ *(BYTE *)pAddr_p = bByteVal_p;
}
*/
//------------< write WORD in little endian >--------------------------
-void AmiSetWordToLe(void FAR *pAddr_p, WORD wWordVal_p)
+void AmiSetWordToLe(void *pAddr_p, WORD wWordVal_p)
{
- twStruct FAR *pwStruct;
+ twStruct *pwStruct;
- pwStruct = (twStruct FAR *) pAddr_p;
+ pwStruct = (twStruct *) pAddr_p;
pwStruct->m_wWord = wWordVal_p;
}
//------------< write DWORD in little endian >-------------------------
-void AmiSetDwordToLe(void FAR *pAddr_p, DWORD dwDwordVal_p)
+void AmiSetDwordToLe(void *pAddr_p, DWORD dwDwordVal_p)
{
- tdwStruct FAR *pdwStruct;
+ tdwStruct *pdwStruct;
- pdwStruct = (tdwStruct FAR *) pAddr_p;
+ pdwStruct = (tdwStruct *) pAddr_p;
pdwStruct->m_dwDword = dwDwordVal_p;
}
//------------< read BYTE in big endian >---------------------------
/*
-BYTE AmiGetByteFromBe (void FAR* pAddr_p)
+BYTE AmiGetByteFromBe (void *pAddr_p)
{
- return ( *(BYTE FAR*)pAddr_p );
+ return ( *(BYTE *)pAddr_p );
}
*/
//------------< read WORD in big endian >---------------------------
-WORD AmiGetWordFromBe(void FAR *pAddr_p)
+WORD AmiGetWordFromBe(void *pAddr_p)
{
- twStruct FAR *pwStruct;
+ twStruct *pwStruct;
twStruct wValue;
- pwStruct = (twStruct FAR *) pAddr_p;
+ pwStruct = (twStruct *) pAddr_p;
wValue.m_wWord = (WORD) ((pwStruct->m_wWord & 0x00FF) << 8); //LSB to MSB
wValue.m_wWord |= (WORD) ((pwStruct->m_wWord & 0xFF00) >> 8); //MSB to LSB
//------------< read DWORD in big endian >--------------------------
-DWORD AmiGetDwordFromBe(void FAR *pAddr_p)
+DWORD AmiGetDwordFromBe(void *pAddr_p)
{
- tdwStruct FAR *pdwStruct;
+ tdwStruct *pdwStruct;
tdwStruct dwValue;
- pdwStruct = (tdwStruct FAR *) pAddr_p;
+ pdwStruct = (tdwStruct *) pAddr_p;
dwValue.m_dwDword = ((pdwStruct->m_dwDword & 0x000000FF) << 24); //LSB to MSB
dwValue.m_dwDword |= ((pdwStruct->m_dwDword & 0x0000FF00) << 8);
//------------< read BYTE in little endian >---------------------------
/*
-BYTE AmiGetByteFromLe (void FAR* pAddr_p)
+BYTE AmiGetByteFromLe (void *pAddr_p)
{
- return ( *(BYTE FAR*)pAddr_p );
+ return ( *(BYTE *)pAddr_p );
}
*/
//------------< read WORD in little endian >---------------------------
-WORD AmiGetWordFromLe(void FAR *pAddr_p)
+WORD AmiGetWordFromLe(void *pAddr_p)
{
- twStruct FAR *pwStruct;
+ twStruct *pwStruct;
- pwStruct = (twStruct FAR *) pAddr_p;
+ pwStruct = (twStruct *) pAddr_p;
return (pwStruct->m_wWord);
}
//------------< read DWORD in little endian >--------------------------
-DWORD AmiGetDwordFromLe(void FAR *pAddr_p)
+DWORD AmiGetDwordFromLe(void *pAddr_p)
{
- tdwStruct FAR *pdwStruct;
+ tdwStruct *pdwStruct;
- pdwStruct = (tdwStruct FAR *) pAddr_p;
+ pdwStruct = (tdwStruct *) pAddr_p;
return (pdwStruct->m_dwDword);
}
//
//---------------------------------------------------------------------------
-void AmiSetDword24ToBe(void FAR *pAddr_p, DWORD dwDwordVal_p)
+void AmiSetDword24ToBe(void *pAddr_p, DWORD dwDwordVal_p)
{
- ((BYTE FAR *) pAddr_p)[0] = ((BYTE FAR *) & dwDwordVal_p)[2];
- ((BYTE FAR *) pAddr_p)[1] = ((BYTE FAR *) & dwDwordVal_p)[1];
- ((BYTE FAR *) pAddr_p)[2] = ((BYTE FAR *) & dwDwordVal_p)[0];
+ ((BYTE *) pAddr_p)[0] = ((BYTE *) & dwDwordVal_p)[2];
+ ((BYTE *) pAddr_p)[1] = ((BYTE *) & dwDwordVal_p)[1];
+ ((BYTE *) pAddr_p)[2] = ((BYTE *) & dwDwordVal_p)[0];
}
//---------------------------------------------------------------------------
//
//---------------------------------------------------------------------------
-void AmiSetDword24ToLe(void FAR *pAddr_p, DWORD dwDwordVal_p)
+void AmiSetDword24ToLe(void *pAddr_p, DWORD dwDwordVal_p)
{
- ((BYTE FAR *) pAddr_p)[0] = ((BYTE FAR *) & dwDwordVal_p)[0];
- ((BYTE FAR *) pAddr_p)[1] = ((BYTE FAR *) & dwDwordVal_p)[1];
- ((BYTE FAR *) pAddr_p)[2] = ((BYTE FAR *) & dwDwordVal_p)[2];
+ ((BYTE *) pAddr_p)[0] = ((BYTE *) & dwDwordVal_p)[0];
+ ((BYTE *) pAddr_p)[1] = ((BYTE *) & dwDwordVal_p)[1];
+ ((BYTE *) pAddr_p)[2] = ((BYTE *) & dwDwordVal_p)[2];
}
//---------------------------------------------------------------------------
// State: not tested
//
//---------------------------------------------------------------------------
-DWORD AmiGetDword24FromBe(void FAR *pAddr_p)
+DWORD AmiGetDword24FromBe(void *pAddr_p)
{
tdwStruct dwStruct;
// State: not tested
//
//---------------------------------------------------------------------------
-DWORD AmiGetDword24FromLe(void FAR *pAddr_p)
+DWORD AmiGetDword24FromLe(void *pAddr_p)
{
tdwStruct dwStruct;
// State: not tested
//
//---------------------------------------------------------------------------
-void AmiSetQword64ToBe(void FAR *pAddr_p, QWORD qwQwordVal_p)
+void AmiSetQword64ToBe(void *pAddr_p, QWORD qwQwordVal_p)
{
- ((BYTE FAR *) pAddr_p)[0] = ((BYTE FAR *) & qwQwordVal_p)[7];
- ((BYTE FAR *) pAddr_p)[1] = ((BYTE FAR *) & qwQwordVal_p)[6];
- ((BYTE FAR *) pAddr_p)[2] = ((BYTE FAR *) & qwQwordVal_p)[5];
- ((BYTE FAR *) pAddr_p)[3] = ((BYTE FAR *) & qwQwordVal_p)[4];
- ((BYTE FAR *) pAddr_p)[4] = ((BYTE FAR *) & qwQwordVal_p)[3];
- ((BYTE FAR *) pAddr_p)[5] = ((BYTE FAR *) & qwQwordVal_p)[2];
- ((BYTE FAR *) pAddr_p)[6] = ((BYTE FAR *) & qwQwordVal_p)[1];
- ((BYTE FAR *) pAddr_p)[7] = ((BYTE FAR *) & qwQwordVal_p)[0];
+ ((BYTE *) pAddr_p)[0] = ((BYTE *) & qwQwordVal_p)[7];
+ ((BYTE *) pAddr_p)[1] = ((BYTE *) & qwQwordVal_p)[6];
+ ((BYTE *) pAddr_p)[2] = ((BYTE *) & qwQwordVal_p)[5];
+ ((BYTE *) pAddr_p)[3] = ((BYTE *) & qwQwordVal_p)[4];
+ ((BYTE *) pAddr_p)[4] = ((BYTE *) & qwQwordVal_p)[3];
+ ((BYTE *) pAddr_p)[5] = ((BYTE *) & qwQwordVal_p)[2];
+ ((BYTE *) pAddr_p)[6] = ((BYTE *) & qwQwordVal_p)[1];
+ ((BYTE *) pAddr_p)[7] = ((BYTE *) & qwQwordVal_p)[0];
}
//---------------------------------------------------------------------------
// State: not tested
//
//---------------------------------------------------------------------------
-void AmiSetQword64ToLe(void FAR *pAddr_p, QWORD qwQwordVal_p)
+void AmiSetQword64ToLe(void *pAddr_p, QWORD qwQwordVal_p)
{
- QWORD FAR *pqwDst;
+ QWORD *pqwDst;
- pqwDst = (QWORD FAR *) pAddr_p;
+ pqwDst = (QWORD *) pAddr_p;
*pqwDst = qwQwordVal_p;
}
// State: not tested
//
//---------------------------------------------------------------------------
-QWORD AmiGetQword64FromBe(void FAR *pAddr_p)
+QWORD AmiGetQword64FromBe(void *pAddr_p)
{
tqwStruct qwStruct;
- ((BYTE FAR *) & qwStruct.m_qwQword)[0] = ((BYTE FAR *) pAddr_p)[7];
- ((BYTE FAR *) & qwStruct.m_qwQword)[1] = ((BYTE FAR *) pAddr_p)[6];
- ((BYTE FAR *) & qwStruct.m_qwQword)[2] = ((BYTE FAR *) pAddr_p)[5];
- ((BYTE FAR *) & qwStruct.m_qwQword)[3] = ((BYTE FAR *) pAddr_p)[4];
- ((BYTE FAR *) & qwStruct.m_qwQword)[4] = ((BYTE FAR *) pAddr_p)[3];
- ((BYTE FAR *) & qwStruct.m_qwQword)[5] = ((BYTE FAR *) pAddr_p)[2];
- ((BYTE FAR *) & qwStruct.m_qwQword)[6] = ((BYTE FAR *) pAddr_p)[1];
- ((BYTE FAR *) & qwStruct.m_qwQword)[7] = ((BYTE FAR *) pAddr_p)[0];
+ ((BYTE *) & qwStruct.m_qwQword)[0] = ((BYTE *) pAddr_p)[7];
+ ((BYTE *) & qwStruct.m_qwQword)[1] = ((BYTE *) pAddr_p)[6];
+ ((BYTE *) & qwStruct.m_qwQword)[2] = ((BYTE *) pAddr_p)[5];
+ ((BYTE *) & qwStruct.m_qwQword)[3] = ((BYTE *) pAddr_p)[4];
+ ((BYTE *) & qwStruct.m_qwQword)[4] = ((BYTE *) pAddr_p)[3];
+ ((BYTE *) & qwStruct.m_qwQword)[5] = ((BYTE *) pAddr_p)[2];
+ ((BYTE *) & qwStruct.m_qwQword)[6] = ((BYTE *) pAddr_p)[1];
+ ((BYTE *) & qwStruct.m_qwQword)[7] = ((BYTE *) pAddr_p)[0];
return (qwStruct.m_qwQword);
}
// State: not tested
//
//---------------------------------------------------------------------------
-QWORD AmiGetQword64FromLe(void FAR *pAddr_p)
+QWORD AmiGetQword64FromLe(void *pAddr_p)
{
- tqwStruct FAR *pqwStruct;
+ tqwStruct *pqwStruct;
tqwStruct qwStruct;
- pqwStruct = (tqwStruct FAR *) pAddr_p;
+ pqwStruct = (tqwStruct *) pAddr_p;
qwStruct.m_qwQword = pqwStruct->m_qwQword;
return (qwStruct.m_qwQword);
//
//---------------------------------------------------------------------------
-void AmiSetQword40ToBe(void FAR *pAddr_p, QWORD qwQwordVal_p)
+void AmiSetQword40ToBe(void *pAddr_p, QWORD qwQwordVal_p)
{
- ((BYTE FAR *) pAddr_p)[0] = ((BYTE FAR *) & qwQwordVal_p)[4];
- ((BYTE FAR *) pAddr_p)[1] = ((BYTE FAR *) & qwQwordVal_p)[3];
- ((BYTE FAR *) pAddr_p)[2] = ((BYTE FAR *) & qwQwordVal_p)[2];
- ((BYTE FAR *) pAddr_p)[3] = ((BYTE FAR *) & qwQwordVal_p)[1];
- ((BYTE FAR *) pAddr_p)[4] = ((BYTE FAR *) & qwQwordVal_p)[0];
+ ((BYTE *) pAddr_p)[0] = ((BYTE *) & qwQwordVal_p)[4];
+ ((BYTE *) pAddr_p)[1] = ((BYTE *) & qwQwordVal_p)[3];
+ ((BYTE *) pAddr_p)[2] = ((BYTE *) & qwQwordVal_p)[2];
+ ((BYTE *) pAddr_p)[3] = ((BYTE *) & qwQwordVal_p)[1];
+ ((BYTE *) pAddr_p)[4] = ((BYTE *) & qwQwordVal_p)[0];
}
//
//---------------------------------------------------------------------------
-void AmiSetQword40ToLe(void FAR *pAddr_p, QWORD qwQwordVal_p)
+void AmiSetQword40ToLe(void *pAddr_p, QWORD qwQwordVal_p)
{
- ((DWORD FAR *) pAddr_p)[0] = ((DWORD FAR *) & qwQwordVal_p)[0];
- ((BYTE FAR *) pAddr_p)[4] = ((BYTE FAR *) & qwQwordVal_p)[4];
+ ((DWORD *) pAddr_p)[0] = ((DWORD *) & qwQwordVal_p)[0];
+ ((BYTE *) pAddr_p)[4] = ((BYTE *) & qwQwordVal_p)[4];
}
//
//---------------------------------------------------------------------------
-QWORD AmiGetQword40FromBe(void FAR *pAddr_p)
+QWORD AmiGetQword40FromBe(void *pAddr_p)
{
tqwStruct qwStruct;
//
//---------------------------------------------------------------------------
-QWORD AmiGetQword40FromLe(void FAR *pAddr_p)
+QWORD AmiGetQword40FromLe(void *pAddr_p)
{
tqwStruct qwStruct;
//
//---------------------------------------------------------------------------
-void AmiSetQword48ToBe(void FAR *pAddr_p, QWORD qwQwordVal_p)
+void AmiSetQword48ToBe(void *pAddr_p, QWORD qwQwordVal_p)
{
- ((BYTE FAR *) pAddr_p)[0] = ((BYTE FAR *) & qwQwordVal_p)[5];
- ((BYTE FAR *) pAddr_p)[1] = ((BYTE FAR *) & qwQwordVal_p)[4];
- ((BYTE FAR *) pAddr_p)[2] = ((BYTE FAR *) & qwQwordVal_p)[3];
- ((BYTE FAR *) pAddr_p)[3] = ((BYTE FAR *) & qwQwordVal_p)[2];
- ((BYTE FAR *) pAddr_p)[4] = ((BYTE FAR *) & qwQwordVal_p)[1];
- ((BYTE FAR *) pAddr_p)[5] = ((BYTE FAR *) & qwQwordVal_p)[0];
+ ((BYTE *) pAddr_p)[0] = ((BYTE *) & qwQwordVal_p)[5];
+ ((BYTE *) pAddr_p)[1] = ((BYTE *) & qwQwordVal_p)[4];
+ ((BYTE *) pAddr_p)[2] = ((BYTE *) & qwQwordVal_p)[3];
+ ((BYTE *) pAddr_p)[3] = ((BYTE *) & qwQwordVal_p)[2];
+ ((BYTE *) pAddr_p)[4] = ((BYTE *) & qwQwordVal_p)[1];
+ ((BYTE *) pAddr_p)[5] = ((BYTE *) & qwQwordVal_p)[0];
}
//
//---------------------------------------------------------------------------
-void AmiSetQword48ToLe(void FAR *pAddr_p, QWORD qwQwordVal_p)
+void AmiSetQword48ToLe(void *pAddr_p, QWORD qwQwordVal_p)
{
- ((DWORD FAR *) pAddr_p)[0] = ((DWORD FAR *) & qwQwordVal_p)[0];
- ((WORD FAR *) pAddr_p)[2] = ((WORD FAR *) & qwQwordVal_p)[2];
+ ((DWORD *) pAddr_p)[0] = ((DWORD *) & qwQwordVal_p)[0];
+ ((WORD *) pAddr_p)[2] = ((WORD *) & qwQwordVal_p)[2];
}
//
//---------------------------------------------------------------------------
-QWORD AmiGetQword48FromBe(void FAR *pAddr_p)
+QWORD AmiGetQword48FromBe(void *pAddr_p)
{
tqwStruct qwStruct;
//
//---------------------------------------------------------------------------
-QWORD AmiGetQword48FromLe(void FAR *pAddr_p)
+QWORD AmiGetQword48FromLe(void *pAddr_p)
{
tqwStruct qwStruct;
//
//---------------------------------------------------------------------------
-void AmiSetQword56ToBe(void FAR *pAddr_p, QWORD qwQwordVal_p)
+void AmiSetQword56ToBe(void *pAddr_p, QWORD qwQwordVal_p)
{
- ((BYTE FAR *) pAddr_p)[0] = ((BYTE FAR *) & qwQwordVal_p)[6];
- ((BYTE FAR *) pAddr_p)[1] = ((BYTE FAR *) & qwQwordVal_p)[5];
- ((BYTE FAR *) pAddr_p)[2] = ((BYTE FAR *) & qwQwordVal_p)[4];
- ((BYTE FAR *) pAddr_p)[3] = ((BYTE FAR *) & qwQwordVal_p)[3];
- ((BYTE FAR *) pAddr_p)[4] = ((BYTE FAR *) & qwQwordVal_p)[2];
- ((BYTE FAR *) pAddr_p)[5] = ((BYTE FAR *) & qwQwordVal_p)[1];
- ((BYTE FAR *) pAddr_p)[6] = ((BYTE FAR *) & qwQwordVal_p)[0];
+ ((BYTE *) pAddr_p)[0] = ((BYTE *) & qwQwordVal_p)[6];
+ ((BYTE *) pAddr_p)[1] = ((BYTE *) & qwQwordVal_p)[5];
+ ((BYTE *) pAddr_p)[2] = ((BYTE *) & qwQwordVal_p)[4];
+ ((BYTE *) pAddr_p)[3] = ((BYTE *) & qwQwordVal_p)[3];
+ ((BYTE *) pAddr_p)[4] = ((BYTE *) & qwQwordVal_p)[2];
+ ((BYTE *) pAddr_p)[5] = ((BYTE *) & qwQwordVal_p)[1];
+ ((BYTE *) pAddr_p)[6] = ((BYTE *) & qwQwordVal_p)[0];
}
//
//---------------------------------------------------------------------------
-void AmiSetQword56ToLe(void FAR *pAddr_p, QWORD qwQwordVal_p)
+void AmiSetQword56ToLe(void *pAddr_p, QWORD qwQwordVal_p)
{
- ((DWORD FAR *) pAddr_p)[0] = ((DWORD FAR *) & qwQwordVal_p)[0];
- ((WORD FAR *) pAddr_p)[2] = ((WORD FAR *) & qwQwordVal_p)[2];
- ((BYTE FAR *) pAddr_p)[6] = ((BYTE FAR *) & qwQwordVal_p)[6];
+ ((DWORD *) pAddr_p)[0] = ((DWORD *) & qwQwordVal_p)[0];
+ ((WORD *) pAddr_p)[2] = ((WORD *) & qwQwordVal_p)[2];
+ ((BYTE *) pAddr_p)[6] = ((BYTE *) & qwQwordVal_p)[6];
}
//
//---------------------------------------------------------------------------
-QWORD AmiGetQword56FromBe(void FAR *pAddr_p)
+QWORD AmiGetQword56FromBe(void *pAddr_p)
{
tqwStruct qwStruct;
//
//---------------------------------------------------------------------------
-QWORD AmiGetQword56FromLe(void FAR *pAddr_p)
+QWORD AmiGetQword56FromLe(void *pAddr_p)
{
tqwStruct qwStruct;
//
//---------------------------------------------------------------------------
-void AmiSetTimeOfDay(void FAR *pAddr_p, tTimeOfDay FAR *pTimeOfDay_p)
+void AmiSetTimeOfDay(void *pAddr_p, tTimeOfDay *pTimeOfDay_p)
{
- AmiSetDwordToLe(((BYTE FAR *) pAddr_p),
- pTimeOfDay_p->m_dwMs & 0x0FFFFFFF);
- AmiSetWordToLe(((BYTE FAR *) pAddr_p) + 4, pTimeOfDay_p->m_wDays);
+ AmiSetDwordToLe(((BYTE *) pAddr_p), pTimeOfDay_p->m_dwMs & 0x0FFFFFFF);
+ AmiSetWordToLe(((BYTE *) pAddr_p) + 4, pTimeOfDay_p->m_wDays);
}
//
//---------------------------------------------------------------------------
-void AmiGetTimeOfDay(void FAR *pAddr_p, tTimeOfDay FAR *pTimeOfDay_p)
+void AmiGetTimeOfDay(void *pAddr_p, tTimeOfDay *pTimeOfDay_p)
{
- pTimeOfDay_p->m_dwMs =
- AmiGetDwordFromLe(((BYTE FAR *) pAddr_p)) & 0x0FFFFFFF;
- pTimeOfDay_p->m_wDays = AmiGetWordFromLe(((BYTE FAR *) pAddr_p) + 4);
+ pTimeOfDay_p->m_dwMs = AmiGetDwordFromLe(((BYTE *) pAddr_p)) & 0x0FFFFFFF;
+ pTimeOfDay_p->m_wDays = AmiGetWordFromLe(((BYTE *) pAddr_p) + 4);
}