cc65: How to fill up a segment to a particular size?

You need an actual VIC.

Moderator: Moderators

Post Reply
User avatar
pixel
Vic 20 Scientist
Posts: 1358
Joined: Fri Feb 28, 2014 3:56 am
Website: http://hugbox.org/
Location: Berlin, Germany
Occupation: Pan–galactic shaman

cc65: How to fill up a segment to a particular size?

Post by pixel »

This one is trying to move `continue_to_start` to $2400 – but '.res' wants a constant expression. :( This is *so* retro. ;)

Code: Select all

end_of_secondary:
                                                                                                                                                              
    .res $2400 - end_of_secondary

continue_to_start:
An idea how this can be done anyone? Thanks a million in advance.

(mod: thread moved to 'Emulation and Cross Development' section)
A man without talent or ambition is most easily pleased. Others set his path and he is content.
https://github.com/SvenMichaelKlose
User avatar
Mike
Herr VC
Posts: 4841
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Re: cc65: How to fill up a segment to a particular size?

Post by Mike »

Normally, this kind of issue is handled via the project's *.cfg, where you define the larger memory areas.

With C, it shouldn't normally be necessary to align parts of a program to a page boundary. Thus I suspect you really want to solve another problem ...
User avatar
pixel
Vic 20 Scientist
Posts: 1358
Joined: Fri Feb 28, 2014 3:56 am
Website: http://hugbox.org/
Location: Berlin, Germany
Occupation: Pan–galactic shaman

Re: cc65: How to fill up a segment to a particular size?

Post by pixel »

Mike wrote: Wed Sep 30, 2020 1:12 am Normally, this kind of issue is handled via the project's *.cfg, where you define the larger memory areas.

With C, it shouldn't normally be necessary to align parts of a program to a page boundary. Thus I suspect you really want to solve another problem ...
Yep. Need some wrappers to be in BLK1, so it can bank in the rest of the UltiFS. Got this fixed by reordering the segment list. Anyway: there doesn't seem to be a way to enforce the size of a segment which is a bit sad at times.
A man without talent or ambition is most easily pleased. Others set his path and he is content.
https://github.com/SvenMichaelKlose
Post Reply