* doc/sdccman.lyx,
authorepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 18 Mar 2004 15:19:30 +0000 (15:19 +0000)
committerepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 18 Mar 2004 15:19:30 +0000 (15:19 +0000)
* device/lib/mcs51/crtpagesfr.asm,
* device/lib/mcs51/crtxinit.asm,
* device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
to avoid confusion with Si Lab's SFRPAGE register.

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3268 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
device/lib/mcs51/crtpagesfr.asm
device/lib/mcs51/crtxinit.asm
device/lib/mcs51/crtxstack.asm
doc/sdccman.lyx

index 89eb7ed38daf6cdb9d8123b7a36c254d7cd0e6a5..5b20d32a659c75b7cf127a8f0ae480ec6c0e3a75 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
+
+       * doc/sdccman.lyx,
+       * device/lib/mcs51/crtpagesfr.asm,
+       * device/lib/mcs51/crtxinit.asm,
+       * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
+       to avoid confusion with Si Lab's SFRPAGE register.
+
+
 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
 
        * src/SDCCglue.c (emitMaps): allow public sfr variables
 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
 
        * src/SDCCglue.c (emitMaps): allow public sfr variables
index ae799a546ac38f6ccc71d338c37080fef646b885..dd3ba08e86990d2f8af18b6abed7b0390d56bb44 100644 (file)
@@ -21,4 +21,4 @@
 ;    what you give them.   Help stamp out software-hoarding!  
 ; -------------------------------------------------------------------------*/
 
 ;    what you give them.   Help stamp out software-hoarding!  
 ; -------------------------------------------------------------------------*/
 
-__PAGESFR == 0xa0      ; 0xa0 is P2 on the original 8051
+__XPAGE == 0xa0        ; 0xa0 is P2 on the original 8051
index b1e2f2fea7bb54bf3d0dbf8f91c38bbfecbeeb05..84126fa7400d149944be2d669029e00095b0b999 100644 (file)
@@ -30,6 +30,8 @@
        .area GSINIT5 (CODE)
        .area GSINIT  (CODE)
        .area GSFINAL (CODE)
        .area GSINIT5 (CODE)
        .area GSINIT  (CODE)
        .area GSFINAL (CODE)
+
+       .globl __XPAGE
        
        .area GSINIT3 (CODE)
   
        
        .area GSINIT3 (CODE)
   
@@ -41,16 +43,16 @@ __mcs51_genXINIT::
        mov     r2,#((l_XINIT+255) >> 8)
        mov     dptr,#s_XINIT
        mov     r0,#s_XISEG
        mov     r2,#((l_XINIT+255) >> 8)
        mov     dptr,#s_XINIT
        mov     r0,#s_XISEG
-       mov     __PAGESFR,#(s_XISEG >> 8)
+       mov     __XPAGE,#(s_XISEG >> 8)
 00001$:        clr     a
        movc    a,@a+dptr
        movx    @r0,a
        inc     dptr
        inc     r0
        cjne    r0,#0,00002$
 00001$:        clr     a
        movc    a,@a+dptr
        movx    @r0,a
        inc     dptr
        inc     r0
        cjne    r0,#0,00002$
-       inc     __PAGESFR
+       inc     __XPAGE
 00002$:        djnz    r1,00001$
        djnz    r2,00001$
 00002$:        djnz    r1,00001$
        djnz    r2,00001$
-       mov     __PAGESFR,#0xFF
+       mov     __XPAGE,#0xFF
 00003$:
  
\ No newline at end of file
 00003$:
  
\ No newline at end of file
index 83790f7a050f21899082e022923ff0c27e3709ca..38e6d1355a074dc622e65ba8a4f9b72acd6ed748 100644 (file)
@@ -32,7 +32,7 @@
        .area GSFINAL (CODE)
 
        .globl __start__xstack
        .area GSFINAL (CODE)
 
        .globl __start__xstack
-       .globl __PAGESFR
+       .globl __XPAGE
 
        .area GSINIT1 (CODE)
 
 
        .area GSINIT1 (CODE)
 
@@ -41,7 +41,7 @@ __sdcc_init_xstack::
 ; Need to initialize in GSINIT1 in case the user's __sdcc_external_startup
 ; uses the xstack.
        
 ; Need to initialize in GSINIT1 in case the user's __sdcc_external_startup
 ; uses the xstack.
        
-       mov     __PAGESFR,#(__start__xstack >> 8)
+       mov     __XPAGE,#(__start__xstack >> 8)
        mov     _spx,#__start__xstack
 
        .area GSINIT5 (CODE)
        mov     _spx,#__start__xstack
 
        .area GSINIT5 (CODE)
@@ -49,5 +49,5 @@ __sdcc_init_xstack::
 ; Need to initialize in GSINIT5 because __mcs51_genXINIT modifies __PAGESFR
 ; and __mcs51_genRAMCLEAR modifies _spx.
        
 ; Need to initialize in GSINIT5 because __mcs51_genXINIT modifies __PAGESFR
 ; and __mcs51_genRAMCLEAR modifies _spx.
        
-       mov     __PAGESFR,#(__start__xstack >> 8)
+       mov     __XPAGE,#(__start__xstack >> 8)
        mov     _spx,#__start__xstack
        mov     _spx,#__start__xstack
index 21b011f5c8c86d4a6450116e82796097704ca541..6a0af25ef34d022f308d82db1166dc1ee35c7625 100644 (file)
@@ -14275,24 +14275,24 @@ sfr
  is where the chip designers decided to put it.
  Needless to say that they didn't agree on a common name either.
  So that the startup code can correctly initialize xdata variables, you
  is where the chip designers decided to put it.
  Needless to say that they didn't agree on a common name either.
  So that the startup code can correctly initialize xdata variables, you
- should define an sfr with the name _PAGESFR at the appropriate location
if the default, port P2, is not used for this.
+ should define an sfr with the name _XPAGE at the appropriate location if
+ the default, port P2, is not used for this.
  Some examples are:
 \layout Verse
 
 
 \family typewriter 
  Some examples are:
 \layout Verse
 
 
 \family typewriter 
-sfr at 0x92 _PAGESFR; /* Cypress EZ-USB family */
+sfr at 0x92 _XPAGE; /* Cypress EZ-USB family */
 \layout Verse
 
 
 \family typewriter 
 \layout Verse
 
 
 \family typewriter 
-sfr at 0xaf _PAGESFR; /* some Silicon Labs (Cygnal) chips */
+sfr at 0xaf _XPAGE; /* some Silicon Labs (Cygnal) chips */
 \layout Verse
 
 
 \family typewriter 
 \layout Verse
 
 
 \family typewriter 
-sfr at 0xaa _PAGESFR; /* some Silicon Labs (Cygnal) chips */
+sfr at 0xaa _XPAGE; /* some Silicon Labs (Cygnal) chips */
 \layout Standard
 
 For more exotic implementations further customizations may be needed.
 \layout Standard
 
 For more exotic implementations further customizations may be needed.