static void OptBssName (const char* Opt, const char* Arg)
/* Handle the --bss-name option */
{
- /* Must have a segment name */
- if (Arg == 0) {
- NeedArg (Opt);
- }
-
/* Check for a valid name */
CheckSegName (Arg);
static void OptCodeName (const char* Opt, const char* Arg)
/* Handle the --code-name option */
{
- /* Must have a segment name */
- if (Arg == 0) {
- NeedArg (Opt);
- }
-
/* Check for a valid name */
CheckSegName (Arg);
static void OptCPU (const char* Opt, const char* Arg)
/* Handle the --cpu option */
{
- if (Arg == 0) {
- NeedArg (Opt);
- }
if (strcmp (Arg, "6502") == 0) {
CPU = CPU_6502;
} else if (strcmp (Arg, "65C02") == 0) {
static void OptDataName (const char* Opt, const char* Arg)
/* Handle the --code-name option */
{
- /* Must have a segment name */
- if (Arg == 0) {
- NeedArg (Opt);
- }
-
/* Check for a valid name */
CheckSegName (Arg);
static void OptIncludeDir (const char* Opt, const char* Arg)
/* Add an include search path */
{
- if (Arg == 0) {
- NeedArg (Opt);
- }
AddIncludePath (Arg, INC_SYS | INC_USER);
}
static void OptRodataName (const char* Opt, const char* Arg)
/* Handle the --rodata-name option */
{
- /* Must have a segment name */
- if (Arg == 0) {
- NeedArg (Opt);
- }
-
/* Check for a valid name */
CheckSegName (Arg);
static void OptTarget (const char* Opt, const char* Arg)
/* Set the target system */
{
- if (Arg == 0) {
- NeedArg (Opt);
- }
SetSys (Arg);
}