示例#1
0
        public void start()
        {
            int resp;

            Console.WriteLine("EverDrive diagnostics begins...");
            if (edio.isServiceMode())
            {
                throw new Exception("device in service mode");
            }

            resp = testMEM("PRG", Edio.ADDR_PRG, Edio.SIZE_PRG);
            printResp(resp);

            resp = testMEM("CHR", Edio.ADDR_CHR, Edio.SIZE_CHR);
            printResp(resp);

            resp = testMEM("SRM", Edio.ADDR_SRM, Edio.SIZE_SRM);
            printResp(resp);

            resp = testRTC();
            printResp(resp);

            testVDC();


            edio.rtcGet().print();

            Console.WriteLine("Diagnostics complete");
        }