6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Mon Oct 07, 2024 9:23 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Apr 29, 2004 2:19 am 
Offline

Joined: Wed Dec 18, 2002 3:20 am
Posts: 113
Ok,

Is there any way of getting rid of Phase errors when using macros? I'm assuming at this point its normal due to haveing to re-position addresses due to insertion of code, but I wasn't sure....

_________________
-Tony
KG4WFX


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Apr 29, 2004 5:01 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8522
Location: Southern California
Macros of course have to be defined before they're called. No choice there, but it's no big deal. I did have a project once (10,000 lines? 15 years ago?) where the assembler's second pass gave a ton of phase errors IIRC but the third pass went perfectly. I can't remember now what the situation was, but I probably had a lot of conditional assembly in the macros. I'll come back and edit this if it comes to mind what it was. For now I'm just trying to think of what you might have that's producing errors. Whatever it was on that project, the screen looked awful to someone looking at it during assembly if they didn't know what was happening, but everything was fine with the extra pass.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Apr 29, 2004 2:06 pm 
Offline

Joined: Wed Dec 18, 2002 3:20 am
Posts: 113
What you said made me try something - the set8bit subroutine was originally in my LCD handler file, when I converted it to a macro, I left it in that file (of course, at the beginning of it instead of where it was) - I commented it out and placed it in what became the main file at the beginning and the phase errors went away. - thanks for the tip. I guess I assumed it would handle inserting the macro code during phase 1 before it generated addresses; no matter where the macro was - ie: it would scan the code for macros then go on to initial assembly...

_________________
-Tony
KG4WFX


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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:  
cron