CPCWiki forum

General Category => Emulators => Topic started by: hareti on 21:18, 17 April 20

Title: Rookie WinApe question. Getting assembler output.
Post by: hareti on 21:18, 17 April 20
Hi All, I'm hoping someone can help. Is it possible to send the output of the assembler to a file rather than "Direct to Emulator" as is stated when assembling? I've looked all over and cant find a setting for this.


Kind regards,


Hareti
Title: Re: Rookie WinApe question. Getting assembler output.
Post by: demoniak on 21:55, 17 April 20
At the beginning of your source file, add:Write "FileName "

FileName will be written in the same folder than your assembler source
Title: Re: Rookie WinApe question. Getting assembler output.
Post by: Johnny Olsen on 22:23, 17 April 20
WinApe is Maxam compatible. If you have further questions, you may find the answer in the Maxam manual.
Can be downloaded here.

http://www.cpcwiki.eu/index.php/Maxam_1.5
Title: Re: Rookie WinApe question. Getting assembler output.
Post by: hareti on 22:50, 17 April 20
Awesome, thank you both. I have an output file and have downloaded the Maxam manual.
Title: Re: Rookie WinApe question. Getting assembler output.
Post by: hareti on 10:15, 18 April 20
I have another question about the assembler output.


I've written a simple program, a small loop that prints some characters to the screen. The code starts with the org directive to place the code at 0x8000. At the end of the code the text to be printed is defined using db "Some text here". This is just after another org &8100 statement to place the text a little further away from the code.


The code runs in the emulator and works as expected. Using the debugger, I can see the code and data in the expected locations in memory. However, when I look at the file output from the assembler using a hex editor, the text data is placed directly after the code. I would have expected the text data to appear at location 0x0100 in the file. I've tried using the TEXT directive as mentioned in the Maxam manual but this behaves in the same way.


What I want to be able to do is use the output of the assembler to program a ROM after debugging it with WinAPE. Where am I going wrong ?
Powered by SMFPacks Menu Editor Mod