News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

Rookie WinApe question. Getting assembler output.

Started by hareti, 21:18, 17 April 20

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hareti

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

demoniak

At the beginning of your source file, add:Write "FileName "

FileName will be written in the same folder than your assembler source

Johnny Olsen

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

hareti

Awesome, thank you both. I have an output file and have downloaded the Maxam manual.

hareti

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