Author Topic: Rookie WinApe question. Getting assembler output.  (Read 477 times)

0 Members and 1 Guest are viewing this topic.

Offline hareti

  • CPC464
  • **
  • Posts: 4
  • Country: gb
  • Liked: 0
  • Likes Given: 0
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
« Last Edit: 23:20, 17 April 20 by hareti »

Offline demoniak

  • CPC664
  • ***
  • Posts: 85
  • Country: fr
  • Liked: 78
  • Likes Given: 46
Re: Rookie WinApe question. Getting assembler output.
« Reply #1 on: 23: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

Offline Johnny Olsen

  • Supporter
  • CPC6128
  • *
  • Posts: 256
  • Country: dk
  • Liked: 181
  • Likes Given: 354
Re: Rookie WinApe question. Getting assembler output.
« Reply #2 on: 00:23, 18 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

Offline hareti

  • CPC464
  • **
  • Posts: 4
  • Country: gb
  • Liked: 0
  • Likes Given: 0
Re: Rookie WinApe question. Getting assembler output.
« Reply #3 on: 00:50, 18 April 20 »
Awesome, thank you both. I have an output file and have downloaded the Maxam manual.

Offline hareti

  • CPC464
  • **
  • Posts: 4
  • Country: gb
  • Liked: 0
  • Likes Given: 0
Re: Rookie WinApe question. Getting assembler output.
« Reply #4 on: 12: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 ?