# Segment configuration # # Segment Code,Constants: +seg .const -b 0x8080 -m 0x7f80 -n .const -it +seg .text -a .const -n .text # Segment Eeprom: +seg .eeprom -b 0x4000 -m 0x400 -n .eeprom # Segment Zero Page (this deliberately avoids 0x0 to avoid # NULL pointers to real data): +seg .bsct -b 0x2 -m 0xfe -n .bsct +seg .ubsct -a .bsct -n .ubsct +seg .bit -a .ubsct -n .bit -id +seg .share -a .bit -n .share -is # Segment Ram (allow up to RAMTOP-64 to be used for data # sections, leaving 64 bytes for the startup stack): +seg .data -b 0x100 -m 0x6c0 -n .data +seg .bss -a .data -n .bss # # Startup file # crtsi0.sm8 # # Object files list - section reserved for STVD # build-cosmic\atomkernel.o build-cosmic\atommutex.o build-cosmic\atomqueue.o build-cosmic\atomsem.o build-cosmic\atomtimer.o build-cosmic\stm8s_clk.o build-cosmic\stm8s_gpio.o build-cosmic\stm8s_tim1.o build-cosmic\stm8s_uart2.o build-cosmic\tests-main.o build-cosmic\atomport.o build-cosmic\uart.o build-cosmic\atomport-asm-cosmic.o # Caller passes in test application object name as param1 @1 # # Library list # libis0.sm8 libm0.sm8 # # Interrupt vectors file # +seg .const -b 0x8000 -k build-cosmic\stm8_interrupt_vector.o # # Defines # +def __endzp=@.ubsct # end of uninitialized zpage +def __memory=@.bss # end of bss segment +def __startmem=@.bss +def __endmem=0x7bf +def __stack=0x7ff #