Thanks for the suggestion.
I did consider splitting the assembler source into common code, swram specific code, and non swram specific code, and then using INCUDE to pull in the separate pieces of code as required for both swram and non swram builds. But that seemed a bit OTT for code that is already very simple to build by just setting the SRAM parameter to either 0 or 1. So I've not gone that far. Yet.
I do also print out the start, finish and execute addresses (along with some other useful info), but that was really to help with setting the load and execute addresses correctly when copying the files over to my PiEconetBridge file server.
I'm trying to avoid using special (non BeebASM) scripts to build the disc image. Ideally, I would like to build everything by just running BeebASM from the command line. With the for loop in Exile-main.asm, that now works for most of the files in the disc image, but there is one other file that needs a bit of further work...
I did consider splitting the assembler source into common code, swram specific code, and non swram specific code, and then using INCUDE to pull in the separate pieces of code as required for both swram and non swram builds. But that seemed a bit OTT for code that is already very simple to build by just setting the SRAM parameter to either 0 or 1. So I've not gone that far. Yet.
I do also print out the start, finish and execute addresses (along with some other useful info), but that was really to help with setting the load and execute addresses correctly when copying the files over to my PiEconetBridge file server.
Code:
IF SRAM SAVE "ExileMC", load_address, intro_end, introELSE SAVE "ExileB", load_address, intro_end, intro ENDIFprint "Start of Relocated code:", ~main_begin, "/", ~load_addressprint "End of Relocated code:", ~(main_end - 1), "/", ~(main_end + load_address - main_begin - 1)print "Start of Static code:", ~introprint "End of Static code:", ~(intro_end - 1)print "Load Address:", ~load_addressprint "File Length:", ~(intro_end-load_address)print "Execute Address:", ~intro
Statistics: Posted by KenLowe — Mon Jan 27, 2025 11:21 pm