function hex_out = M_peek(FPGA_addr)

cd \winxpfiles\PCbin

if nargin == 0
    [a,b] = dos('peek 0');
else
    [a,b] = dos(['peek ' num2str(FPGA_addr)]);
end

f=dec2hex(hex2dec(b(strfind(b,'ed.')+5:length(b)-1)));

hex_out = f;