asm_parser/assembler.c

25 lines
965 B
C
Raw Normal View History

/***************************************************************************
* file name : assembler.c *
* author : *
* description : This program will assemble a .ASM file into a .OBJ file *
* This program will use the "asm_parser" library to achieve *
* its functionality. *
* *
***************************************************************************
*
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "asm_parser.h"
int main(int argc, char** argv) {
char* filename = NULL ; // name of ASM file
char program [ROWS][COLS] ; // ASM file line-by-line
char program_bin_str [ROWS][17] ; // instructions converted to a binary string
unsigned short int program_bin [ROWS] ; // instructions in binary (HEX)
}