#if defined DSDCC_MODEL_HUGE
void
-_gptrput (char *gptr, char c) _naked
+_gptrput (char *gptr, char c) __naked
{
/* This is the banked version with pointers up to 22 bits.
B cannot be trashed */
gptr; c; /* hush the compiler */
- _asm
+ __asm
;
; depending on the pointer type according to SDCCsymt.h
;
pdataptr$:
movx @r0,a ; 1
sjmp dataptrrestore$ ; 2
- mov r0,dph ; restore r0 ; 2
- mov dph,#0 ; restore dph ; 2
- ret ; 1
;
; store into far space
;
;===
;27 bytes
-_endasm;
+ __endasm;
}
#elif defined DSDCC_MODEL_MEDIUM
void
-_gptrput (char *gptr, char c) _naked
+_gptrput (char *gptr, char c) __naked
{
/* This is the non-banked version with pointers up to 14 bits.
Assumes B is free to be used */
gptr; c; /* hush the compiler */
- _asm
+ __asm
;
; depending on the pointer type according to SDCCsymt.h
;
ret ; 1
;===
;25 bytes
- _endasm;
+ __endasm;
}
#elif 1
void
-_gptrput (char *gptr, char c) _naked
+_gptrput (char *gptr, char c) __naked
{
/* This is the new version with pointers up to 16 bits.
B cannot be trashed */
gptr; c; /* hush the compiler */
- _asm
+ __asm
;
; depending on the pointer type according to SDCCsymt.h
;
;===
;24 bytes
-_endasm;
+ __endasm;
}
#else
void
-_gptrput (char *gptr, char c) _naked
+_gptrput (char *gptr, char c) __naked
{
/* This is the old version with pointers up to 16 bits. */
gptr; c; /* hush the compiler */
- _asm
+ __asm
ar0 = 0x00
push acc ; 2
;
ret ; 1
;===
;46 bytes
-_endasm;
+ __endasm;
}
#endif
void
_gptrputWord ()
{
- _asm
+ __asm
;
; depending on the pointer type acc. to SDCCsymt.h
;
mov r0,dph ; restore r0
mov dph,#0 ; restore dph
00016$:
- _endasm;
+ __endasm;
}
#else
void
_gptrputWord ()
{
- _asm
+ __asm
push acc
;
; depending on the pointer type acc. to SDCCsymt.h
inc dptr
pop ar0
00016$:
- _endasm;
+ __endasm;
}
#endif