English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   Coders. Asm / Hardware (https://eab.abime.net/forumdisplay.php?f=112)
-   -   SECTION statement and the CHIP/FAST attribute (https://eab.abime.net/showthread.php?t=69627)

Apollo 14 June 2013 18:09

SECTION statement and the CHIP/FAST attribute
 
Is it true that there is no kind of a 'fallback' declaring a section to be located in fast mem, e.g.
Code:

section myCode,code,fast
So, it won't be automatically located into chip mem? So, is there an order declaring it only as
Code:

section myCode,Code
Takes fastmem precedence over chipmem regarding the latter section statement? Sorry for asking this, but I didn't found precise information.

StingRay 14 June 2013 18:58

if you declare _F or fast (depending on the used assembler), the section in question will be loaded to fast memory, if no fast mem is available, an out of memory error will occur. If you omit the _F/fast specifier, the section will be loaded to fast mem if available, otherwise chip mem will be used.

Apollo 14 June 2013 20:41

Thank you. Question is answered.

Photon 15 June 2013 18:18

For completeness:

_P (or omitted): fastmem if available, else chipmem
_F: fastmem, forced
_C: chipmem, forced (for data accessed by custom chips, such as graphics, samples, copper lists).


All times are GMT +2. The time now is 15:16.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.06838 seconds with 11 queries