Saving machine code games to DeltaDOS disk?
Saving machine code games to DeltaDOS disk?
Most machine code programs (games) have an EXEC address which is different to the START address. A typical example is: START ADDRESS = $0C00, END ADDRESS = $7000, EXEC ADDRESS = $4000. The DeltaDOS manual states that the SAVEM command only accepts a START and END address (SAVEM"NAME",START,END). How do you save machine code programs (games) like this to DeltaDOS disk?
Re: Saving machine code games to DeltaDOS disk?
Maybe you could save the machine code with SAVEM "",START,END, and then run it with LOADM"":EXEC $4000.
Not ideal, but it may work.
Not ideal, but it may work.
Re: Saving machine code games to DeltaDOS disk?
I had already thought about that rather obvious method. But then I thought about having to remember/write down all of the the different EXEC addresses for programs on several floppy disks.
Re: Saving machine code games to DeltaDOS disk?
Does the LOADM command update the EXEC vector ($009d:009e)?
If not, then I suppose there isn't much hope for a straightforward solution.
You could artificially make the files execute from their start address, if that would help.
If not, then I suppose there isn't much hope for a straightforward solution.
You could artificially make the files execute from their start address, if that would help.
Re: Saving machine code games to DeltaDOS disk?
The manual says it'll only start things from the beginning of the binary. Goes so far as to recommend putting a JMP in as the first instruction...
Re: Saving machine code games to DeltaDOS disk?
Yes.Sarah wrote:Does the LOADM command update the EXEC vector ($009d:009e)?
Re: Saving machine code games to DeltaDOS disk?
The JMP idea would be an acceptable compromise for most programs.sixxie wrote:The manual says it'll only start things from the beginning of the binary. Goes so far as to recommend putting a JMP in as the first instruction...