Re: [cc65] Problems with ORG directive and linker

From: Groepaz <groepaz1gmx.net>
Date: 2011-03-30 18:43:50
On Mittwoch 30 März 2011, you wrote:
> > http://www.cc65.org/faq.php#ORG
> 
> Okay, I missed that; that explains the behavior that I am seeing.
> 
> However, I am still curious; although it is not the recommended method
> in the presence of a capable linker, is there any way to do absolute
> code placement at the assembler level? I would be very happy if I
> could get the old code-base to work without anything other than a few
> text replacements.

its right there in the FAQ :)

at the top of your program put a 

.org 0

then replace all "old" .org statements by something like

.res <addr> - *
.org <addr>

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

Vorsicht: Lesen gefährdet die Dummheit!

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Mar 30 18:44:18 2011

This archive was generated by hypermail 2.1.8 : 2011-03-30 18:44:20 CEST