git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3578
4a8a32a2-be11-0410-ad9d-
d568d2c75423
gptr; /* hush the compiler */
_asm
gptr; /* hush the compiler */
_asm
; save values passed
;
; depending on the pointer type acc. to SDCCsymt.h
; save values passed
;
; depending on the pointer type acc. to SDCCsymt.h
; any other value for type
; return xFF
mov a,#0xff
; any other value for type
; return xFF
mov a,#0xff
;
; Pointer to data space
;
;
; Pointer to data space
;
;
; pointer to xternal data
;
00002$:
movx a,@dptr
;
; pointer to xternal data
;
00002$:
movx a,@dptr
;
; pointer to code area
;
00003$:
; clr a is already 0
movc a,@a+dptr
;
; pointer to code area
;
00003$:
; clr a is already 0
movc a,@a+dptr
;
; pointer to xternal stack or pdata
;
;
; pointer to xternal stack or pdata
;
movx a,@r0
pop ar0
#endif
movx a,@r0
pop ar0
#endif
-
-;
-; return
-;
- 00005$:
; any other value for type
; return xFF
mov a,#0xff
; any other value for type
; return xFF
mov a,#0xff
;
; Pointer to data space
;
00001$:
mov r0,dpl ; use only low order address
mov a,@r0
;
; Pointer to data space
;
00001$:
mov r0,dpl ; use only low order address
mov a,@r0
;
; pointer to xternal data
; pointer to code area
;
; pointer to xternal data
; pointer to code area
00003$:
; clr a is already 0
movc a,@a+dptr
00003$:
; clr a is already 0
movc a,@a+dptr
;
; pointer to xternal stack
;
;
; pointer to xternal stack
;
mov r0,a
pop acc
xch a,r0
mov r0,a
pop acc
xch a,r0
gptr; c; /* hush the compiler */
_asm
gptr; c; /* hush the compiler */
_asm
push acc
;
; depending on the pointer type acc. to SDCCsymt.h
push acc
;
; depending on the pointer type acc. to SDCCsymt.h
00003$:
pop acc ; do nothing
00003$:
pop acc ; do nothing
;
; store into near space
;
;
; store into near space
;
mov r0,dpl
mov @r0,a
pop ar0
mov r0,dpl
mov @r0,a
pop ar0
00002$:
pop acc
movx @dptr,a
00002$:
pop acc
movx @dptr,a
00004$:
#if USE_PDATA_PAGING_REGISTER
00004$:
#if USE_PDATA_PAGING_REGISTER
movx @r0,a
pop ar0
#endif
movx @r0,a
pop ar0
#endif