neptune.scr

来自「以ST公司CPU为核心的彩色电视机的完整源程序。」· SCR 代码 · 共 105 行

SCR
105
字号
OUTPUT_FORMAT("a.out-st9")
OUTPUT_ARCH(st9)
     
MEMORY
{
    rom0        : ORIGIN = 0x000000, LENGTH = 64K,       MMU = DPR0 DPR1 NO NO
    rom1        : ORIGIN = 0x010000, LENGTH = 64K,       MMU = DPR0 DPR1 NO NO
    ram         : ORIGIN = 0x20F000, LENGTH = 4K,        MMU = DPR3
    osdram      : ORIGIN = 0x220000, LENGTH = 384,       MMU = DPR2

/* configuring for osd-debuging with emulator -begin */
/* After finishing the program ,you must remove them */
/*
    oddl        : ORIGIN = 0x230000, LENGTH = 16K,       MMU = DPR1
    oddh        : ORIGIN = 0x234000, LENGTH = 16K,       MMU = DPR1
    evenl       : ORIGIN = 0x238000, LENGTH = 16K,       MMU = DPR1
    evenh       : ORIGIN = 0x23C000, LENGTH = 16K,       MMU = DPR1
*/
/* configuring for osd-debuging with emulator -end */

}


SECTIONS
{
        .text : {
                _text_start  =  .;  
                reset.o(.text)
                
                _start_constants = .;
                *(.data)
                _end_constants = .;
                
                *(.text)
                _etext  =  .;
                
                DO_OPTION_I;
  
                _text_end  =  .;  
                } > rom0
                
    rom1.bk9 : {
               _text_start_rom1  =  .;
		
               _text_end_rom1	=  .;
               } > rom1

     
       .data : {
               _data_start  =  .;  
                
               *(.data)
               _edata  =  .;  
                
               _data_end  =  .;  
               } > ram
                
       osdram.bk9 : {
                    } > osdram

/* configuring for osd-debuging with emulator -begin */ 
/* After finishing the program ,you must remove them */
/*
        oddl.bk9 : {
                   font_odl.o(.bss)
                   } > oddl


        oddh.bk9 : {
                   font_odh.o(.bss)
                   } > oddh


        evenl.bk9 : {
                    font_evl.o(.bss)
                    } > evenl

        evenh.bk9 : {
                    font_evh.o(.bss)
                    } > evenh
*/
/* configuring for debuging with emulator -end */ 


        .bss :  {
                _bss_start = .;
                
                *(.bss COMMON)
                _ebss  =  .;  
                
                _bss_end = . ;
                } > ram

/* Here you define the system stack and user stack */
       
        _stack_size = DEFINED(_stack_size) ? _stack_size : 0x1E; 
        _user_stack_size = DEFINED(_user_stack_size) ? _user_stack_size : 0xFF;
     
        _stack_start = DEFINED( _stack_start) ? _stack_start : 0xFEE1; 
        _stack_end = _stack_start + _stack_size ;
     
        _user_stack_end = DEFINED(_user_stack_start) ? _user_stack_end : 0xFFFF;
        _user_stack_start = _user_stack_end - _user_stack_size;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?