Like many other people around here, I'm using the CA65 assembler to develop for the X16. One thing I don't really understand is what the .SEGMENT command does exactly. I find the CA65 documentation a bit terse on this matter:
Quote
Switch to another segment. Code and data is always emitted into a segment, that is, a named section of data. The default segment is "CODE".
Could any tell me what exactly happens if I use .SEGMENT "DATA" inside my code?
Question
C3c
Hi Everyone!
Like many other people around here, I'm using the CA65 assembler to develop for the X16. One thing I don't really understand is what the .SEGMENT command does exactly. I find the CA65 documentation a bit terse on this matter:
Could any tell me what exactly happens if I use .SEGMENT "DATA" inside my code?
Thanks!
Cedric
Edited by C3cforgot to add tags
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.