.SECTION seems to alter output in inexplicable ways? #574
-
Okay, so I'm very tired so I'll keep it brief. Decided to try out .SECTION to label the things. Everything worked, though there seemed to be slight disturbances with the operation. Then I decided to add .SECTION "Initalization", and all hell broke loose. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Without looking at the code (no time to investigate what a Gearsystem 3.4 is and why your code doesn't work with it at the moment, perhaps later next week?) perhaps your issue is related to the types (FREE, FORCE, SEMIFREE...) of the .SECTION as they affect the placing of the .SECTION into the output. Does your code work without .SECTIONs? If you add .SECTIONs but make them FORCE then the result should be identical to if you didn't use .SECTIONs at all... Any Gearsystem users out here? |
Beta Was this translation helpful? Give feedback.
-
I see you are using .SECTIONs without specifying their types so they are FREE by default which makes the linker to sort them by their size and place them into suitable spots in the output. If you want to keep e.g. this .SECTION at ORG 0 then you need to add keyword FORCE to the .SECTION definition... |
Beta Was this translation helpful? Give feedback.
I see you are using .SECTIONs without specifying their types so they are FREE by default which makes the linker to sort them by their size and place them into suitable spots in the output. If you want to keep e.g. this .SECTION at ORG 0 then you need to add keyword FORCE to the .SECTION definition...