idt it committed

This commit is contained in:
Rushil Umaretiya 2024-04-10 20:33:19 -04:00
parent f4a9616adc
commit da785a1c9d
No known key found for this signature in database
GPG Key ID: 4E8FAF9C926AF959

12
cache.c
View File

@ -102,18 +102,6 @@ int cread(unsigned int cmf, unsigned int* hex_addr, bool* hit, bool* replace) {
return ret_val;
}
void print_binary(unsigned char num) {
// Start from the most significant bit (MSB) and move to the least
// significant bit (LSB)
for (int i = 7; i >= 0; i--) {
// Use bitwise AND to isolate the specific bit and shift right to get 1
// or 0
int bit = (num >> i) & 1;
printf("%d", bit);
}
printf("\n"); // Newline after printing the binary number
}
void cprint() {
unsigned int line;