03-31-2011, 11:04 PM
It's my belief that they are compiled in order, so you should get that effect from
GOTO start
REM Routines that can go below 32768
FUNCTION a ()
END FUNCTION
SUB b
END SUB
align 32768
REM BUFFER
asm
defs 0,6912
end asm
REM High memory routines
FUNCTION c()
end function
SUB d
end sub
start:
Here's where we jump to immediately, so start of program.
[Note that the above code is example, rather than strictly correct!]
Not sure where the heap is put, though? I think it's after the code.
GOTO start
REM Routines that can go below 32768
FUNCTION a ()
END FUNCTION
SUB b
END SUB
align 32768
REM BUFFER
asm
defs 0,6912
end asm
REM High memory routines
FUNCTION c()
end function
SUB d
end sub
start:
Here's where we jump to immediately, so start of program.
[Note that the above code is example, rather than strictly correct!]
Not sure where the heap is put, though? I think it's after the code.