From da785a1c9da8c54c00589d8a829366d085e46ae7 Mon Sep 17 00:00:00 2001 From: Rushil Umaretiya Date: Wed, 10 Apr 2024 20:33:19 -0400 Subject: [PATCH] idt it committed --- cache.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cache.c b/cache.c index d4ba76a..c8877fa 100644 --- a/cache.c +++ b/cache.c @@ -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;