diff -crN counter/comp counter_mod/comp
*** counter/comp	Thu Jan  1 09:00:00 1970
--- counter_mod/comp	Sun Sep 11 15:52:09 2005
***************
*** 0 ****
--- 1,3 ----
+ sh-hitachi-elf-gcc -m2 -T romsh704.x -nostartfiles startup.s counter.c -o counter.elf -O2 -Wl,-Map,counter.map
+ sh-hitachi-elf-objcopy -O srec counter.elf counter.mot
+ 
diff -crN counter/romsh704.x counter_mod/romsh704.x
*** counter/romsh704.x	Sun Sep 11 15:47:36 2005
--- counter_mod/romsh704.x	Sun Sep 11 14:38:48 2005
***************
*** 43,50 ****
      /* “à‘ŸI/O 0xffff8000�`0xffff87ff */
      /* “à‘ŸRAM 0xfffff000�`0xffffffff */
      /* ŠO•”RAM 0x00400000�`0x0041ffff */
!     vect(r)         : org = 0x00000000, len = 0x280
!     rom(rx)         : org = 0x00000280, len = 256k-0x280
      ram2(rwx)       : org = 0x00400000, len = 1024k
      ram(rwx)        : org = 0xfffff000, len = 4k
  }
--- 43,52 ----
      /* “à‘ŸI/O 0xffff8000�`0xffff87ff */
      /* “à‘ŸRAM 0xfffff000�`0xffffffff */
      /* ŠO•”RAM 0x00400000�`0x0041ffff */
!     /* vect(r)         : org = 0x00000000, len = 0x280 */
!     vect(r)         : org = 0x00000000, len = 0x400      /* mod 05/09/11 */
!     /*rom(rx)          : org = 0x00000280, len = 256k-0x280 */
!     rom(rx)         : org = 0x00000400, len = 256k-0x400 /* mod 05/09/11 */
      ram2(rwx)       : org = 0x00400000, len = 1024k
      ram(rwx)        : org = 0xfffff000, len = 4k
  }
***************
*** 250,256 ****
          LONG(DEFINED(_int_oei)?ABSOLUTE(_int_oei):ABSOLUTE(_start))
          FILL(0xff)
      } > vect                         /*‚±‚±‚Ü‚Å‚ðvect—Ìˆæ‚ÉŠ„‚è•t‚¯‚é*/
!     .text : {
          CREATE_OBJECT_SYMBOLS
          *(.text)                     /*‚·‚×‚Ä‚Ìƒ\�[ƒXƒtƒ@ƒCƒ‹‚Ì.textƒZƒNƒVƒ‡ƒ“‚ð‚±‚±‚É*/
          _dataROM_begin = .;          /*•Ï�”_dataROM_begin‚ÉƒJƒŒƒ“ƒg‚ÌƒAƒhƒŒƒX‚ð‘ã“ü*/
--- 252,258 ----
          LONG(DEFINED(_int_oei)?ABSOLUTE(_int_oei):ABSOLUTE(_start))
          FILL(0xff)
      } > vect                         /*‚±‚±‚Ü‚Å‚ðvect—Ìˆæ‚ÉŠ„‚è•t‚¯‚é*/
!     .text 0x400 : {                  /* mod 05/09/11 */
          CREATE_OBJECT_SYMBOLS
          *(.text)                     /*‚·‚×‚Ä‚Ìƒ\�[ƒXƒtƒ@ƒCƒ‹‚Ì.textƒZƒNƒVƒ‡ƒ“‚ð‚±‚±‚É*/
          _dataROM_begin = .;          /*•Ï�”_dataROM_begin‚ÉƒJƒŒƒ“ƒg‚ÌƒAƒhƒŒƒX‚ð‘ã“ü*/
***************
*** 287,290 ****
  ‚ð“ñ�d‰»‚·‚é‚½‚ß‚É�uAT�vƒRƒ}ƒ“ƒh‚ªŽg‚í‚ê‚é�B
  ROM—Ìˆæ‚É�‘‚«�ž‚Ü‚ê‚½�‰Šú’l‚ðƒ†�[ƒUƒvƒ�ƒOƒ‰ƒ€‚ª“®‚«�o‚·‘O‚ÉRAM—Ìˆæ‚ÉƒRƒs�[‚·‚é‚±
  ‚Æ‚ÍƒXƒ^�[ƒgƒAƒbƒvƒ‹�[ƒ`ƒ“‚ÌŽdŽ–‚Ì‚P‚Â‚Å‚·�B
! *******************************************************************************/
\ No newline at end of file
--- 289,293 ----
  ‚ð“ñ�d‰»‚·‚é‚½‚ß‚É�uAT�vƒRƒ}ƒ“ƒh‚ªŽg‚í‚ê‚é�B
  ROM—Ìˆæ‚É�‘‚«�ž‚Ü‚ê‚½�‰Šú’l‚ðƒ†�[ƒUƒvƒ�ƒOƒ‰ƒ€‚ª“®‚«�o‚·‘O‚ÉRAM—Ìˆæ‚ÉƒRƒs�[‚·‚é‚±
  ‚Æ‚ÍƒXƒ^�[ƒgƒAƒbƒvƒ‹�[ƒ`ƒ“‚ÌŽdŽ–‚Ì‚P‚Â‚Å‚·�B
! *******************************************************************************/
! 
diff -crN counter/romsh704.x.ORG counter_mod/romsh704.x.ORG
*** counter/romsh704.x.ORG	Thu Jan  1 09:00:00 1970
--- counter_mod/romsh704.x.ORG	Sun Sep 11 13:42:06 2005
***************
*** 0 ****
--- 1,290 ----
+ /*****************************************************************************
+          ƒŠƒ“ƒJƒXƒNƒŠƒvƒg�@1Dec2003 T.kosaka A.Yamashita 
+ 
+ ‹@ŠBŒê‚Ìƒvƒ�ƒOƒ‰ƒ€‚âƒf�[ƒ^‚Ì”z’u�i‚Ç‚±‚ÌƒAƒhƒŒƒX‚É”z’u‚·‚é‚©�j‚ðŒˆ‚ß‚Ü‚·
+ 
+ ƒL�[ƒ��[ƒh
+ OUTPUT_ARCH ƒ}ƒVƒ“‚ÌƒA�[ƒLƒeƒNƒ`ƒƒ
+ ENTRY       ƒvƒ�ƒOƒ‰ƒ€‚Ì’†‚ÅŽÀ�s‚·‚é�Å�‰‚Ì–½—ß‚ÌˆÊ’u‚ð�Ý’è
+ MEMORY      ƒ�ƒ‚ƒŠƒuƒ�ƒbƒN‚ÌˆÊ’u‚ÆƒTƒCƒY‚ð‹L�q
+ SECTIONS    �o—Íƒtƒ@ƒCƒ‹‚Ìƒ�ƒ‚ƒŠƒŒƒCƒAƒEƒg‚ð‹L�q
+ 
+ ƒZƒNƒVƒ‡ƒ“‚Ì–¼‘O
+ .vector  Š„‚è�ž‚ÝƒxƒNƒ^ƒe�[ƒuƒ‹
+ .text    ƒvƒ�ƒOƒ‰ƒ€‹@ŠBŒêƒR�[ƒh�C’è�”�i�Ã“I•¶Žš—ñ‚ðŠÜ‚Þ�j
+ .data    ŠO•”•Ï�”�Cstatic•Ï�”‚Å�‰Šú‰»�i�éŒ¾Žž‚É’l‚ª‘ã“ü‚³‚ê‚Ä‚¢‚é�j�Ï‚Ì•Ï�”
+ .bss     ŠO•”•Ï�”�Cstatic•Ï�”‚Å�‰Šú‰»‚È‚µ‚Ì•Ï�”
+ —á
+ int aaa=1234;                   aaa‚Í.data‚ÉŠm•Û‚³‚ê‚é
+ int bbb;                        bbb‚Í.bss‚ÉŠm•Û‚³‚ê‚é
+ const int bbb1=5678;            bbb1‚Í.text‚ÉŠm•Û‚³‚ê‚é
+ 
+ main()
+ {
+     int ccc;                    ccc‚ÍƒXƒ^ƒbƒN‚É“®“I‚ÉŠm•Û‚³‚ê‚é
+       :
+ }
+ 
+ int func(void)
+ {
+     static int ddd=0;           ddd‚Í.data‚ÉŠm•Û‚³‚ê‚é
+     static int eee;             eee‚Í.bss‚ÉŠm•Û‚³‚ê‚é
+     int fff;                    fff‚ÍƒXƒ^ƒbƒN‚É“®“I‚ÉŠm•Û‚³‚ê‚é
+       :
+     fff += 2345;                2345‚Í.text‚ÉŠm•Û‚³‚ê‚é
+       :
+ }
+ ******************************************************************************/
+ OUTPUT_ARCH(sh)
+ ENTRY("_start")
+ MEMORY
+ {
+     /* “à‘ŸROM 0x00000000�`0x0003ffff */
+     /* “à‘ŸI/O 0xffff8000�`0xffff87ff */
+     /* “à‘ŸRAM 0xfffff000�`0xffffffff */
+     /* ŠO•”RAM 0x00400000�`0x0041ffff */
+     vect(r)         : org = 0x00000000, len = 0x280
+     rom(rx)         : org = 0x00000280, len = 256k-0x280
+     ram2(rwx)       : org = 0x00400000, len = 1024k
+     ram(rwx)        : org = 0xfffff000, len = 4k
+ }
+ SECTIONS
+ {
+     .vector : {
+         /* 0 */
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(0))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(0))
+         /* 4 */
+         LONG(DEFINED(_int_GeneralIllegalInstruction)?ABSOLUTE(_int_GeneralIllegalInstruction):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(DEFINED(_int_SlotIllegalInstruction)?ABSOLUTE(_int_SlotIllegalInstruction):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 8 */
+         LONG(ABSOLUTE(_start))
+         LONG(DEFINED(_int_CPUAddressError)?ABSOLUTE(_int_CPUAddressError):ABSOLUTE(_start))
+         LONG(DEFINED(_int_DMAAddressError)?ABSOLUTE(_int_DMAAddressError):ABSOLUTE(_start))
+         LONG(DEFINED(_int_NMI)?ABSOLUTE(_int_NMI):ABSOLUTE(_start))
+         /* 12 */
+         LONG(DEFINED(_int_Userbrake)?ABSOLUTE(_int_Userbrake):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 16 */
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 20 */
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 24 */
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 28 */
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 32 */
+         LONG(DEFINED(_int_trap0)?ABSOLUTE(_int_trap0):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap1)?ABSOLUTE(_int_trap1):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap2)?ABSOLUTE(_int_trap2):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap3)?ABSOLUTE(_int_trap3):ABSOLUTE(_start))
+         /* 36 */
+         LONG(DEFINED(_int_trap4)?ABSOLUTE(_int_trap4):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap5)?ABSOLUTE(_int_trap5):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap6)?ABSOLUTE(_int_trap6):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap7)?ABSOLUTE(_int_trap7):ABSOLUTE(_start))
+         /* 40 */
+         LONG(DEFINED(_int_trap8)?ABSOLUTE(_int_trap8):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap9)?ABSOLUTE(_int_trap9):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap10)?ABSOLUTE(_int_trap10):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap11)?ABSOLUTE(_int_trap11):ABSOLUTE(_start))
+         /* 44 */
+         LONG(DEFINED(_int_trap12)?ABSOLUTE(_int_trap12):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap13)?ABSOLUTE(_int_trap13):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap14)?ABSOLUTE(_int_trap14):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap15)?ABSOLUTE(_int_trap15):ABSOLUTE(_start))
+         /* 48 */
+         LONG(DEFINED(_int_trap16)?ABSOLUTE(_int_trap16):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap17)?ABSOLUTE(_int_trap17):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap18)?ABSOLUTE(_int_trap18):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap19)?ABSOLUTE(_int_trap19):ABSOLUTE(_start))
+         /* 52 */
+         LONG(DEFINED(_int_trap20)?ABSOLUTE(_int_trap20):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap21)?ABSOLUTE(_int_trap21):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap22)?ABSOLUTE(_int_trap22):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap23)?ABSOLUTE(_int_trap23):ABSOLUTE(_start))
+         /* 56 */
+         LONG(DEFINED(_int_trap24)?ABSOLUTE(_int_trap24):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap25)?ABSOLUTE(_int_trap25):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap26)?ABSOLUTE(_int_trap26):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap27)?ABSOLUTE(_int_trap27):ABSOLUTE(_start))
+         /* 60 */
+         LONG(DEFINED(_int_trap28)?ABSOLUTE(_int_trap28):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap29)?ABSOLUTE(_int_trap29):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap30)?ABSOLUTE(_int_trap30):ABSOLUTE(_start))
+         LONG(DEFINED(_int_trap31)?ABSOLUTE(_int_trap31):ABSOLUTE(_start))
+         /* 64 */
+         LONG(DEFINED(_int_irq0)?ABSOLUTE(_int_irq0):ABSOLUTE(_start))
+         LONG(DEFINED(_int_irq1)?ABSOLUTE(_int_irq1):ABSOLUTE(_start))
+         LONG(DEFINED(_int_irq2)?ABSOLUTE(_int_irq2):ABSOLUTE(_start))
+         LONG(DEFINED(_int_irq3)?ABSOLUTE(_int_irq3):ABSOLUTE(_start))
+         /* 68 */
+         LONG(DEFINED(_int_irq4)?ABSOLUTE(_int_irq4):ABSOLUTE(_start))
+         LONG(DEFINED(_int_irq5)?ABSOLUTE(_int_irq5):ABSOLUTE(_start))
+         LONG(DEFINED(_int_irq6)?ABSOLUTE(_int_irq6):ABSOLUTE(_start))
+         LONG(DEFINED(_int_irq7)?ABSOLUTE(_int_irq7):ABSOLUTE(_start))
+         /* 72 */
+         LONG(DEFINED(_int_dei0)?ABSOLUTE(_int_dei0):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 76 */
+         LONG(DEFINED(_int_dei1)?ABSOLUTE(_int_dei1):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 80 */
+         LONG(DEFINED(_int_dei2)?ABSOLUTE(_int_dei2):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 84 */
+         LONG(DEFINED(_int_dei3)?ABSOLUTE(_int_dei3):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 88 */
+         LONG(DEFINED(_int_tgi0a)?ABSOLUTE(_int_tgi0a):ABSOLUTE(_start))
+         LONG(DEFINED(_int_tgi0b)?ABSOLUTE(_int_tgi0b):ABSOLUTE(_start))
+         LONG(DEFINED(_int_tgi0c)?ABSOLUTE(_int_tgi0c):ABSOLUTE(_start))
+         LONG(DEFINED(_int_tgi0d)?ABSOLUTE(_int_tgi0d):ABSOLUTE(_start))
+         /* 92 */
+         LONG(DEFINED(_int_tci0v)?ABSOLUTE(_int_tci0v):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 96 */
+         LONG(DEFINED(_int_tgi1a)?ABSOLUTE(_int_tgi1a):ABSOLUTE(_start))
+         LONG(DEFINED(_int_tgi1b)?ABSOLUTE(_int_tgi1b):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 100 */
+         LONG(DEFINED(_int_tci1v)?ABSOLUTE(_int_tci1v):ABSOLUTE(_start))
+         LONG(DEFINED(_int_tci1u)?ABSOLUTE(_int_tci1u):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 104 */
+         LONG(DEFINED(_int_tgi2a)?ABSOLUTE(_int_tgi2a):ABSOLUTE(_start))
+         LONG(DEFINED(_int_tgi2b)?ABSOLUTE(_int_tgi2b):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 108 */
+         LONG(DEFINED(_int_tci2v)?ABSOLUTE(_int_tci2v):ABSOLUTE(_start))
+         LONG(DEFINED(_int_tci2u)?ABSOLUTE(_int_tci2u):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 112 */
+         LONG(DEFINED(_int_tgi3a)?ABSOLUTE(_int_tgi3a):ABSOLUTE(_start))
+         LONG(DEFINED(_int_tgi3b)?ABSOLUTE(_int_tgi3b):ABSOLUTE(_start))
+         LONG(DEFINED(_int_tgi3c)?ABSOLUTE(_int_tgi3c):ABSOLUTE(_start))
+         LONG(DEFINED(_int_tgi3d)?ABSOLUTE(_int_tgi3d):ABSOLUTE(_start))
+         /* 116 */
+         LONG(DEFINED(_int_tci3v)?ABSOLUTE(_int_tci3v):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 120 */
+         LONG(DEFINED(_int_tgi4a)?ABSOLUTE(_int_tgi4a):ABSOLUTE(_start))
+         LONG(DEFINED(_int_tgi4b)?ABSOLUTE(_int_tgi4b):ABSOLUTE(_start))
+         LONG(DEFINED(_int_tgi4c)?ABSOLUTE(_int_tgi4c):ABSOLUTE(_start))
+         LONG(DEFINED(_int_tgi4d)?ABSOLUTE(_int_tgi4d):ABSOLUTE(_start))
+         /* 124 */
+         LONG(DEFINED(_int_tci4v)?ABSOLUTE(_int_tci4v):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 128 */
+         LONG(DEFINED(_int_eri0)?ABSOLUTE(_int_eri0):ABSOLUTE(_start))
+         LONG(DEFINED(_int_rxi0)?ABSOLUTE(_int_rxi0):ABSOLUTE(_start))
+         LONG(DEFINED(_int_txi0)?ABSOLUTE(_int_txi0):ABSOLUTE(_start))
+         LONG(DEFINED(_int_tei0)?ABSOLUTE(_int_tei0):ABSOLUTE(_start))
+         /* 132 */
+         LONG(DEFINED(_int_eri1)?ABSOLUTE(_int_eri1):ABSOLUTE(_start))
+         LONG(DEFINED(_int_rxi1)?ABSOLUTE(_int_rxi1):ABSOLUTE(_start))
+         LONG(DEFINED(_int_txi1)?ABSOLUTE(_int_txi1):ABSOLUTE(_start))
+         LONG(DEFINED(_int_tei1)?ABSOLUTE(_int_tei1):ABSOLUTE(_start))
+         /* 136 */
+         LONG(DEFINED(_int_adi0)?ABSOLUTE(_int_adi0):ABSOLUTE(_start))
+         LONG(DEFINED(_int_adi1)?ABSOLUTE(_int_adi1):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 140 */
+         LONG(DEFINED(_int_swdtce)?ABSOLUTE(_int_swdtce):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 144 */
+         LONG(DEFINED(_int_cmi0)?ABSOLUTE(_int_cmi0):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 148 */
+         LONG(DEFINED(_int_cmi1)?ABSOLUTE(_int_cmi1):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 152 */
+         LONG(DEFINED(_int_iti)?ABSOLUTE(_int_iti):ABSOLUTE(_start))
+         LONG(DEFINED(_int_cmi)?ABSOLUTE(_int_cmi):ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         LONG(ABSOLUTE(_start))
+         /* 156 */
+         LONG(DEFINED(_int_oei)?ABSOLUTE(_int_oei):ABSOLUTE(_start))
+         FILL(0xff)
+     } > vect                         /*‚±‚±‚Ü‚Å‚ðvect—Ìˆæ‚ÉŠ„‚è•t‚¯‚é*/
+     .text : {
+         CREATE_OBJECT_SYMBOLS
+         *(.text)                     /*‚·‚×‚Ä‚Ìƒ\�[ƒXƒtƒ@ƒCƒ‹‚Ì.textƒZƒNƒVƒ‡ƒ“‚ð‚±‚±‚É*/
+         _dataROM_begin = .;          /*•Ï�”_dataROM_begin‚ÉƒJƒŒƒ“ƒg‚ÌƒAƒhƒŒƒX‚ð‘ã“ü*/
+     }  > rom                         /*‚±‚±‚Ü‚Å‚ðrom—Ìˆæ‚ÉŠ„‚è•t‚¯‚é*/
+     .data : AT (_dataROM_begin) {    /*AT �‰Šú’lƒf�[ƒ^‚ð_dataROM_begin‚É�‘‚«�ž‚Þ*/
+         _dataRAM_begin = .;          /*•Ï�”_dataRAM_begin‚ÉƒJƒŒƒ“ƒg‚ÌƒAƒhƒŒƒX‚ð‘ã“ü*/
+         *(.data)                     /*‚·‚×‚Ä‚Ìƒ\�[ƒXƒtƒ@ƒCƒ‹‚Ì.dataƒZƒNƒVƒ‡ƒ“‚ð‚±‚±‚É*/
+         _dataRAM_end = .;            /*•Ï�”_dataRAM_end‚ÉƒJƒŒƒ“ƒg‚ÌƒAƒhƒŒƒX‚ð‘ã“ü*/
+     } > ram2                         /*‚±‚±‚Ü‚Å‚ðram2—Ìˆæ‚ÉŠ„‚è•t‚¯‚é*/
+     .bss : {
+         _bss_begin = .;              /*•Ï�”_bss_begin‚ÉƒJƒŒƒ“ƒg‚ÌƒAƒhƒŒƒX‚ð‘ã“ü*/
+         *(.bss)                      /*‚·‚×‚Ä‚Ìƒ\�[ƒXƒtƒ@ƒCƒ‹‚Ì.bssƒZƒNƒVƒ‡ƒ“‚ð‚±‚±‚É*/
+         _bss_end = .;                /*•Ï�”_bss_end‚ÉƒJƒŒƒ“ƒg‚ÌƒAƒhƒŒƒX‚ð‘ã“ü*/
+     }  >ram2                         /*‚±‚±‚Ü‚Å‚ðram2—Ìˆæ‚ÉŠ„‚è•t‚¯‚é*/
+ }
+ 
+ /*******************************************************************************
+ •â‘«�à–¾
+ 
+ ƒŠƒ“ƒN�ì‹Æ‚É‚æ‚èŽŸ‚ÌŠe•Ï�”�i5ŒÂ�j‚Ì’l‚ª’è‚Ü‚è‚Ü‚·�B‚±‚ê‚ç‚Ì•Ï�”‚ÍƒXƒ^�[ƒgƒAƒbƒvƒ‹
+ �[ƒ`ƒ“‚Å—˜—p‚³‚ê‚Ü‚·�B
+ _dataROM_begin    .dataƒZƒNƒVƒ‡ƒ“‚Ìƒ�ƒ‚ƒŠƒCƒ��[ƒW‚Å�‰Šú’l‚ª•À‚Ô�æ“ªƒAƒhƒŒƒX
+                   ‚±‚Ì—Ìˆæ‚ªƒ†�[ƒUƒvƒ�ƒOƒ‰ƒ€ŽÀ�sŽž‚ÉŽQ�Æ‚³‚ê‚é‚±‚Æ‚Í‚È‚¢
+ _dataRAM_begin    .dataƒZƒNƒVƒ‡ƒ“‚Ì�æ“ªƒAƒhƒŒƒX
+ _dataRAM_end      .dataƒZƒNƒVƒ‡ƒ“‚Ì––”öƒAƒhƒŒƒX�{‚P
+ _bss_begin        .bssƒZƒNƒVƒ‡ƒ“‚Ì�æ“ªƒAƒhƒŒƒX
+ _bss_end          .bssƒZƒNƒVƒ‡ƒ“‚Ì––”öƒAƒhƒŒƒX�{‚P
+ 
+ �‰Šú‰»‚³‚ê‚½ƒOƒ��[ƒoƒ‹•Ï�”�i�æ‚Ì—á‚Å‚Íint aaaa=1234;�j‚ªRAM�ã‚É”z’u‚³‚ê‚é‚Æ�C“d
+ Œ¹‚ª�Ø‚ê‚½�ó‘Ô‚Å‚Í�‰Šú’l1234‚ðŠo‚¦‚Ä‚¨‚­‚±‚Æ‚ª�o—ˆ‚È‚¢�B‚Ü‚½ROM�ã‚É”z’u‚³‚ê‚é‚Æ�C
+ ƒ†�[ƒUƒvƒ�ƒOƒ‰ƒ€‚Å’l‚ð•Ï�X‚·‚é‚±‚Æ‚ª�o—ˆ‚È‚¢�B
+ ‚»‚±‚Å‚±‚Ì‚æ‚¤‚È•Ï�”‚Í�CŽÀ�sƒvƒ�ƒOƒ‰ƒ€‚Å‚ÍRAM—Ìˆæ‚É‚»‚Ì•Ï�”‚ª‚ ‚é‚æ‚¤‚É‹@ŠBŒêƒR
+ �[ƒh‚ð�ì‚Á‚Ä‚¨‚«�C�‰Šú’l‚ÍROM—Ìˆæ‚É�‘‚«‚±‚Þ‚æ‚¤‚É‚È‚é�B“¯‚¶•Ï�”‚Ì‚ß‚à‚èŠ„‚è“–‚Ä
+ ‚ð“ñ�d‰»‚·‚é‚½‚ß‚É�uAT�vƒRƒ}ƒ“ƒh‚ªŽg‚í‚ê‚é�B
+ ROM—Ìˆæ‚É�‘‚«�ž‚Ü‚ê‚½�‰Šú’l‚ðƒ†�[ƒUƒvƒ�ƒOƒ‰ƒ€‚ª“®‚«�o‚·‘O‚ÉRAM—Ìˆæ‚ÉƒRƒs�[‚·‚é‚±
+ ‚Æ‚ÍƒXƒ^�[ƒgƒAƒbƒvƒ‹�[ƒ`ƒ“‚ÌŽdŽ–‚Ì‚P‚Â‚Å‚·�B
+ *******************************************************************************/
\ No newline at end of file
diff -crN counter/sh_7045.h counter_mod/sh_7045.h
*** counter/sh_7045.h	Sun Sep 11 15:47:36 2005
--- counter_mod/sh_7045.h	Sun Sep 11 14:15:18 2005
***************
*** 109,115 ****
  	SCI1.SCR.BYTE = 0;       /* clear all flags */
  	                  /* 2400-38400baud are available at n=0(cks1=0,cks2=0) */
  	SCI1.SMR.BYTE = 0;       /* Ascnc, 8bit , NoParity, stop1, 1/1 */
! 	SCI1.BRR = 22;	         /* 38400baud (CPU=28.6MHz) */
  	for(i=0;i<1000000;i++);      /* wait more than 1bit time */
  	SCI1.SCR.BYTE = 0x30;    /* scr = 0011 0000 (TE=1,RE=1) */
  	return;
--- 109,116 ----
  	SCI1.SCR.BYTE = 0;       /* clear all flags */
  	                  /* 2400-38400baud are available at n=0(cks1=0,cks2=0) */
  	SCI1.SMR.BYTE = 0;       /* Ascnc, 8bit , NoParity, stop1, 1/1 */
! 	/*SCI1.BRR = 22;*/       /* 38400baud (CPU=28.6MHz) */
! 	SCI1.BRR = 47;	         /* 19200baud (CPU=28.6MHz) mod 05/09/11*/
  	for(i=0;i<1000000;i++);      /* wait more than 1bit time */
  	SCI1.SCR.BYTE = 0x30;    /* scr = 0011 0000 (TE=1,RE=1) */
  	return;
