Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
166 lines (106 sloc) 5.12 KB
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; crt target defaults ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CRTCFG = -1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; user supplied crt defaults ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
INCLUDE "crt_cfg.inc"
ENDIF
IF __CRTCFG = 0
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; zx next ram model ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
defc TAR__crt_org_code = 32768
defc TAR__crt_org_data = 0
defc TAR__crt_org_bss = 0
defc TAR__crt_model = 0
defc TAR__register_sp = 65368 ;; under UDGs
defc TAR__crt_stack_size = 512
defc TAR__crt_initialize_bss = 0
defc TAR__crt_include_preamble = 0
defc TAR__crt_org_vector_table = 0
defc TAR__crt_interrupt_mode = -1
defc TAR__crt_interrupt_mode_exit = 1
defc TAR__crt_enable_commandline = 0
defc TAR__crt_enable_commandline_ex = 0
defc TAR__crt_enable_restart = 0
defc TAR__crt_enable_close = 1
defc TAR__crt_enable_eidi = 0x01 ;; disable interrupts at start
defc TAR__crt_on_exit = 0x30002 ;; return to basic
defc TAR__crt_enable_rst = 0
defc TAR__crt_enable_nmi = 0
; clib defaults
defc TAR__clib_exit_stack_size = 0
defc TAR__clib_quickexit_stack_size = 0
defc TAR__clib_malloc_heap_size = -1
defc TAR__clib_stdio_heap_size = 256
defc TAR__clib_balloc_table_size = 0
defc TAR__clib_fopen_max = 0
defc TAR__clib_open_max = 0
ENDIF
IF __CRTCFG = 2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; esxdos dot command ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
defc TAR__crt_org_code = 0x2000
defc TAR__crt_org_data = 0
defc TAR__crt_org_bss = 0
defc TAR__crt_model = 0
defc TAR__register_sp = -1
defc TAR__crt_stack_size = 512
defc TAR__crt_initialize_bss = 0
defc TAR__crt_include_preamble = 0
defc TAR__crt_org_vector_table = 0
defc TAR__crt_interrupt_mode = -1
defc TAR__crt_interrupt_mode_exit = -1
defc TAR__crt_enable_commandline = 3
defc TAR__crt_enable_commandline_ex = 0x80 ;; bit 7 set to include program name in command line (nextzxos only)
defc TAR__crt_enable_restart = 0
defc TAR__crt_enable_close = 1
defc TAR__crt_enable_eidi = 0 ;; no changes to interrupts
defc TAR__crt_on_exit = 0x30002 ;; return to basic
defc TAR__crt_enable_rst = 0
defc TAR__crt_enable_nmi = 0
; clib defaults
defc TAR__clib_exit_stack_size = 0
defc TAR__clib_quickexit_stack_size = 0
defc TAR__clib_malloc_heap_size = 0
defc TAR__clib_stdio_heap_size = 0
defc TAR__clib_balloc_table_size = 0
defc TAR__clib_fopen_max = 0
defc TAR__clib_open_max = 0
ENDIF
IF __CRTCFG = 3
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; nextos dotn command ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
defc TAR__crt_org_code = 0x2000 ;; must be 0x2000
defc TAR__crt_org_data = 0
defc TAR__crt_org_bss = 0
defc TAR__crt_model = 0 ;; ram model only
defc TAR__register_sp = 0 ;; SP at top of memory
defc TAR__crt_stack_size = 384
defc TAR__crt_initialize_bss = 0
defc TAR__crt_include_preamble = 0
defc TAR__crt_org_vector_table = 0
defc TAR__crt_interrupt_mode = -1
defc TAR__crt_interrupt_mode_exit = 1
defc TAR__crt_enable_commandline = 3
defc TAR__crt_enable_commandline_ex = 0x80 ;; bit 7 set to include program name in command line (nextzxos only)
defc TAR__crt_enable_restart = 0 ;; ignored, always returns to basic
defc TAR__crt_enable_close = 1
defc TAR__crt_enable_eidi = 0x20 ;; ei on exit
defc TAR__crt_on_exit = 0x30002 ;; ignored, always returns to basic
defc TAR__crt_enable_rst = 0 ;; N/A
defc TAR__crt_enable_nmi = 0 ;; N/A
; clib defaults
defc TAR__clib_exit_stack_size = 0
defc TAR__clib_quickexit_stack_size = 0
defc TAR__clib_malloc_heap_size = 0
defc TAR__clib_stdio_heap_size = 0
defc TAR__clib_balloc_table_size = 0
defc TAR__clib_fopen_max = 0
defc TAR__clib_open_max = 0
ENDIF
;; end crt target defaults ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
You can’t perform that action at this time.