%Look at contents of register
clc


s = size(rcontents)';

rnew = zeros(32,32);
rnewmat = rnew;
k = 1;
for n = 1:s(3)
    if any(any(rcontents(:,:,n)~=rnew))
        rnewmat(:,:,k) = rcontents(:,:,n);
        rnew = rcontents(:,:,n);
        k = k + 1;
    end
end

s = size(rnewmat);
figure(1)
    clf
    

for n = 1:s(3)
    for m = 1:32
        a = num2str(rnewmat(:,m,n))';
        b = bin2dec(a);
        rmat2(m) = b;
    end
    bar(rmat2)
    pause
end
