diff --git a/doc/cc65.sgml b/doc/cc65.sgml index fa48960af..237ca5991 100644 --- a/doc/cc65.sgml +++ b/doc/cc65.sgml @@ -515,6 +515,28 @@ Here is a description of all the command line options: name="#pragma local-strings"> for fine grained control. + -mm model, --memory-model model + + This option sets the code and data models for the compiler to use. Please + note that memory models are an unfinished feature and using this option + with any other memory model than + + + -o name Specify the name of the output file. If you don't specify a name, the diff --git a/src/cc65/main.c b/src/cc65/main.c index e1c37d26a..b952667b0 100644 --- a/src/cc65/main.c +++ b/src/cc65/main.c @@ -1100,6 +1100,14 @@ int main (int argc, char* argv[]) OptSignedChars (Arg, 0); break; + case 'm': + if (Arg[2] == 'm') { + OptMemoryModel (Arg, GetArg (&I, 3)); + } else { + UnknownOption (Arg); + } + break; + case 'o': SetOutputName (GetArg (&I, 2)); break;