int main(int argc, char **argv) { (void) argc; (void) argv; TRACE_LEVEL_SET(TRACE_ALL); TEST_INITIALIZE(); testEncode(); testDecode(); testDecodeCorruptLength(); TEST_FINALIZE(); return 0; }
int main(void){ machine_t *m = malloc(sizeof(machine_t)); m->programCounter = 0; m->reg = calloc(13, sizeof(uint32_t)); m->memory = calloc(65536, sizeof(uint32_t)); m->N = 0; m->Z = 0; m->C = 0; m->V = 0; testExtractBits(); testDecode(m); testSignedExtension(); // testSDT(); // testMult(); // testDataProc(); // testBranch(); }