#include "gpsim_assert.h"
-#include "pic16f877.h"
+#include "picregs.h"
#pragma preproc_asm -
{
TRISA = 0x0f;
+#if defined(__pic14)
_asm
BSF STATUS,RP0
MOVF TRISA,W
BCF STATUS,RP0
MOVWF _test_tris
_endasm;
+#else // !defined(__pic14)
+ _asm
+ BANKSEL _TRISA
+ MOVF _TRISA,W
+ BANKSEL _test_tris
+ MOVWF _test_tris
+ _endasm;
+#endif // !defined(__pic14)
if(test_tris != 0x0f)
failures++;