Program to demonstrate how to use ISA info from lc3.h
More...
Functions | |
static int | count_bits (int v) |
static void | usage (void) |
int | main (int argc, char *argv[]) |
Study the code in main to understand how to determine the number and types of operands a particular LC3 instruction has. This information is encoded in a data structure defined in lc3.h
This code is a subset of the operations you will need to do when writing the assembler.
|
static |
Count the number on 1 bits in a value
v | - the value to use (non-negative) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
entry point of program
|
static |
print usage statement and exit