Hi!
I'm working around with Cache Simulator for my term project. Then I saw your code and I got interested.
I wonder how your sample input is (that used for this code), is it something like this :
0x0000 A578
0x0000 A579
0x0000 A57A
0x0000 A57B
0x0000 A57C
0x0000 A57D
0x0000 A57E
0x0000 A57F
0x0000 A580
0x0000 A581
...
Thank you! Appreciate your work!