A65SM, some js 6502 assembler
.section 1,pos independent test section sec1start: lda #>lab1 sta somewhere rts sec1end: somewhere=cdef lab1=sec1end-sec1start .section 0, dont confuse sections numbers with section options .section 2, located code test sec2start: jsr more_serious nop rts .db 1,2,3,"Hello",201,,203,,>444 .fill "Echo!" .copy sec1start, sec1end more_serious: jsr some_important_libcall nop nop ; comment rts sec2end: some_important_libcall = c123 sec2start=c000 sec2end=c080 ; for .fill to work
assemble
see docu