6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 5:42 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: ca65 macros
PostPosted: Sat Apr 30, 2022 7:25 pm 
Offline

Joined: Sat Apr 30, 2022 7:13 pm
Posts: 159
Location: Devon. UK
I didn't want to post this on the cc65 github discussions as that seems all to be to do with development/bugs etc.

By the way, NEWBIE ALERT!!

I am starting to use macros in CA65. In the listing file produced with the --listing option the machine code produced by the macro is printed followed by the macro name but the mnemonics are not listed. Is there any way to get the assembler to show the expansion of the macro?

I can't find any obvious option for doing this. But as one learns to write macros, especially one with conditional expansion (.IF) etc it would be REALLY nice to see the expanded source rather than just the machine code.


Top
 Profile  
Reply with quote  
 Post subject: Re: ca65 macros
PostPosted: Sat Apr 30, 2022 8:33 pm 
Offline
User avatar

Joined: Wed Feb 14, 2018 2:33 pm
Posts: 1488
Location: Scotland
adrianhudson wrote:
I didn't want to post this on the cc65 github discussions as that seems all to be to do with development/bugs etc.

By the way, NEWBIE ALERT!!

I am starting to use macros in CA65. In the listing file produced with the --listing option the machine code produced by the macro is printed followed by the macro name but the mnemonics are not listed. Is there any way to get the assembler to show the expansion of the macro?

I can't find any obvious option for doing this. But as one learns to write macros, especially one with conditional expansion (.IF) etc it would be REALLY nice to see the expanded source rather than just the machine code.


I've not found a way either - but watching this thread just in-case there is something I've missed when looking for a way...

-Gordon
(welcome, etc. :)

_________________
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/


Top
 Profile  
Reply with quote  
 Post subject: Re: ca65 macros
PostPosted: Sun May 01, 2022 12:44 pm 
Offline
User avatar

Joined: Fri Aug 03, 2018 8:52 am
Posts: 746
Location: Germany
the cc65 github is also for potential feature additions, so you can very well post this question there as well to get the attention of the devs.


Top
 Profile  
Reply with quote  
 Post subject: Re: ca65 macros
PostPosted: Sun May 01, 2022 9:10 pm 
Offline

Joined: Sat Apr 30, 2022 7:13 pm
Posts: 159
Location: Devon. UK
Thank you Gordon and proxy for your replies. I'll take up your suggestion proxy, and post to the github.

p.s. Gordon, Ruby looks fantastic.


Top
 Profile  
Reply with quote  
 Post subject: Re: ca65 macros
PostPosted: Thu Jan 18, 2024 1:25 pm 
Offline

Joined: Tue Sep 26, 2023 11:09 am
Posts: 109
Looks like someone has an open PR which does just that https://github.com/cc65/cc65/pull/2279


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 37 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: