T.I.M | Toolchain Documentation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
asm.c File Reference

Main source file for the assembler. Contains main function and argument parser. More...

#include "asm.h"
#include "asm_lex.h"

Functions

void usage (int argc, char **argv)
 prints usage instructions for the program. More...
 
void parse_cmd_args (int argc, char **argv, asm_context *cxt)
 Parses the command line arguments passed to the program into a program_context object. More...
 
int main (int argc, char **argv)
 Main entry point for the application. More...
 

Detailed Description

Main source file for the assembler. Contains main function and argument parser.

Function Documentation

int main ( int  argc,
char **  argv 
)
void parse_cmd_args ( int  argc,
char **  argv,
asm_context cxt 
)

Parses the command line arguments passed to the program into a program_context object.

References ASCII, BINARY, fatal, usage(), and warning.

Referenced by main().

void usage ( int  argc,
char **  argv 
)

prints usage instructions for the program.

References tprintf.

Referenced by main(), and parse_cmd_args().