void drawui5() { int row=0; cls(2); drawtext(32," Cheat Finder",0); print_2_1("Edit Cheats..."); print_2("Search Results - ",number(found_for[6])); if (cheatfinderstate==1) { // looks like: // "New==Old - 65535" print_cheatfinder_line_newold("==",found_for[0]); print_cheatfinder_line_newold("!=",found_for[1]); print_cheatfinder_line_newold(" >",found_for[2]); print_cheatfinder_line_newold(" <",found_for[3]); print_cheatfinder_line_newold(">=",found_for[4]); print_cheatfinder_line_newold("<=",found_for[5]); print_2("Compare with number - ","Off"); print_2_1("Update Values"); } else { // char compare[4]; char *compare=&str[32-4]; // looks like: // "Value==FF - 65535" strcpy(compare,hexn(compare_value,2)); print_cheatfinder_line("==",found_for[0]); print_cheatfinder_line("!=",found_for[1]); print_cheatfinder_line(" >",found_for[2]); print_cheatfinder_line(" <",found_for[3]); print_cheatfinder_line(">=",found_for[4]); print_cheatfinder_line("<=",found_for[5]); // print_2_4("Value==",compare," - ",number(found_for[0])); // print_2_4("Value!=",compare," - ",number(found_for[1])); // print_2_4("Value >",compare," - ",number(found_for[2])); // print_2_4("Value <",compare," - ",number(found_for[3])); // print_2_4("Value>=",compare," - ",number(found_for[4])); // print_2_4("Value<=",compare," - ",number(found_for[5])); print_2("Compare with number - ","On"); print_2("Number to compare to: ",compare); } print_2_1("New Search"); }
int main(){ unsigned x, y, z; x = 109; y = 30; printf("x =%u,\ty =%u\n", x, y); print_2(x, 4); print_2(y, 4); z = setbits(x, 7, 2, y); printf("\nsetbits(x, 7, 2, y) =\n"); print_2(z, 4); z = invert(x, 31, 32); printf("\ninvert(x, 31, 32) =\n"); print_2(z, 4); z = rightrot(x, 3); printf("\nrightrot(x, 3) = \n"); print_2(z, 4); return 0; }
int main(int argc, const char *argv[]) { print_2(print_1,5); return 0; }