diff --git a/hwTestSuite/APPL0001.bin b/hwTestSuite/APPL0001.bin new file mode 100644 index 0000000..cf93e80 --- /dev/null +++ b/hwTestSuite/APPL0001.bin @@ -0,0 +1 @@ +TstS \ No newline at end of file diff --git a/hwTestSuite/TstSuite b/hwTestSuite/TstSuite new file mode 100755 index 0000000..710506e Binary files /dev/null and b/hwTestSuite/TstSuite differ diff --git a/hwTestSuite/TstSuite.prc b/hwTestSuite/TstSuite.prc new file mode 100644 index 0000000..281a742 Binary files /dev/null and b/hwTestSuite/TstSuite.prc differ diff --git a/hwTestSuite/TstSuite.rcp b/hwTestSuite/TstSuite.rcp index 125cd01..93f44e7 100644 --- a/hwTestSuite/TstSuite.rcp +++ b/hwTestSuite/TstSuite.rcp @@ -1,5 +1,6 @@ -ICONFAMILY "icon_1.bmp" "icon_2.bmp" "icon_4.bmp" "icon_8.bmp" -SMALLICON "icon_sm.bmp" // icon for P3 list view +//ICONFAMILY "icon_1.bmp" "icon_2.bmp" "icon_4.bmp" "icon_8.bmp" +//SMALLICON "icon_sm.bmp" // icon for P3 list view +//so fracking tired of the icon shit, it can be blank for now APPLICATION ID 1 "TstS" VERSION ID 1 "1.00" diff --git a/hwTestSuite/code0000.TstSuite.grc b/hwTestSuite/code0000.TstSuite.grc new file mode 100644 index 0000000..3da4faf Binary files /dev/null and b/hwTestSuite/code0000.TstSuite.grc differ diff --git a/hwTestSuite/code0001.TstSuite.grc b/hwTestSuite/code0001.TstSuite.grc new file mode 100644 index 0000000..28a44e1 Binary files /dev/null and b/hwTestSuite/code0001.TstSuite.grc differ diff --git a/hwTestSuite/data0000.TstSuite.grc b/hwTestSuite/data0000.TstSuite.grc new file mode 100644 index 0000000..5279b1b Binary files /dev/null and b/hwTestSuite/data0000.TstSuite.grc differ diff --git a/hwTestSuite/pref0000.TstSuite.grc b/hwTestSuite/pref0000.TstSuite.grc new file mode 100644 index 0000000..a2bd827 Binary files /dev/null and b/hwTestSuite/pref0000.TstSuite.grc differ diff --git a/hwTestSuite/readme.md b/hwTestSuite/readme.md index 4cfa047..1a148f3 100644 --- a/hwTestSuite/readme.md +++ b/hwTestSuite/readme.md @@ -3,7 +3,13 @@ The tests available in the end will be: Dump Bootloader(Original, EZ, VZ) Rom Writes +m68k CPU Version + ## Warning The version of gcc avalible for Palm OS is very old, any change you make must be c89 compatible or it wont compile! + +If you enable unsafe mode you will have to reboot to exit, this is because it will take over the whole OS including interrupts, reset vectors(force crashes may be required for some tests), I/O ports, RAM control and clock speed. + +In the hex viewer registers that are not safe to read will say "UNSAFE" instead of a hex value, the main unsafe reads are the uart registers. diff --git a/hwTestSuite/rloc0000.TstSuite.grc b/hwTestSuite/rloc0000.TstSuite.grc new file mode 100644 index 0000000..3c756f6 Binary files /dev/null and b/hwTestSuite/rloc0000.TstSuite.grc differ diff --git a/hwTestSuite/testSuite.c b/hwTestSuite/testSuite.c index 269c8ff..841d688 100644 --- a/hwTestSuite/testSuite.c +++ b/hwTestSuite/testSuite.c @@ -226,7 +226,7 @@ void testerInit(){ oldLlbar = LLBAR; /* set to full refresh */ - LPXCD = 0; + /*LPXCD = 0;*/ /* display off */ CKCON &= ~0x80; @@ -237,7 +237,7 @@ void testerInit(){ LLBAR = 10; /* line buffer now 20 bytes */ /* register to control grayscale pixel oscillations */ - FRCM = 0xB9;//not listed in Dragonball VZ datasheet + /*FRCM = 0xB9;*//*not listed in Dragonball VZ datasheet*/ LSSA = framebuffer; @@ -253,10 +253,10 @@ void testerInit(){ UG_ConsoleSetBackcolor(C_WHITE); UG_ConsoleSetForecolor(C_BLACK); - //make test list, c89 again + /*make test list*/ initTestList(); - //load first subprogram + /*load first subprogram*/ subprogramIndex = 0; subprogramArgsSet = false; lastSubprogramReturnValue = makeVar(LENGTH_0, TYPE_NULL, 0); @@ -268,7 +268,7 @@ void testerExit(){ LSSA = oldFramebuffer; LPXCD = oldLpxcd; PICF = oldPicf; - VPW= oldVpw; + VPW = oldVpw; LLBAR = oldLlbar; } @@ -281,15 +281,17 @@ void testerFrameLoop(){ } DWord PilotMain(Word cmd, Ptr cmdBPB, Word launchFlags){ - testerInit(); - - applicationRunning = true; - while(applicationRunning){ - testerFrameLoop(); - SysTaskDelay(4);/*30 fps*/ + if(cmd == sysAppLaunchCmdNormalLaunch){ + testerInit(); + + applicationRunning = true; + while(applicationRunning){ + testerFrameLoop(); + SysTaskDelay(4);/*30 fps*/ + } + + testerExit(); } - - testerExit(); return(0); } diff --git a/hwTestSuite/tver0001.bin b/hwTestSuite/tver0001.bin new file mode 100644 index 0000000..b2c8168 Binary files /dev/null and b/hwTestSuite/tver0001.bin differ diff --git a/tests/hwTestSuiteVersions/TstSuite(dont install will require a hard reset to boot again).prc b/tests/hwTestSuiteVersions/TstSuite(dont install will require a hard reset to boot again).prc new file mode 100644 index 0000000..d655e1c Binary files /dev/null and b/tests/hwTestSuiteVersions/TstSuite(dont install will require a hard reset to boot again).prc differ diff --git a/unimplementedFeatures.txt b/unimplementedFeatures.txt index ffe4855..e7df28a 100644 --- a/unimplementedFeatures.txt +++ b/unimplementedFeatures.txt @@ -8,3 +8,4 @@ Peripheral Control Register, audio ppm mixing selection System Control Register, 0xXXFFF000 all upper banks are registers mode Port D level sensitive interrupts Port D keyboard enable register +The data sheet says LRRA is 0xFFFFFA29 and 0xFFFFFA28 but its only 8bits? \ No newline at end of file