├── .github └── workflows │ └── ci.yml ├── .gitignore ├── COPYING.txt ├── README.md ├── app ├── build.gradle ├── proguard-project.txt └── src │ └── main │ ├── AndroidManifest.xml │ ├── assets │ ├── HandEra330.skin │ ├── HandEra330_1x.jpg │ ├── HandEra330_2x.jpg │ └── HostFS.prc │ ├── java │ └── com │ │ └── perpendox │ │ └── phem │ │ ├── AboutFragment.java │ │ ├── ButtonBarFragment.java │ │ ├── Card_Mgmt_Fragment.java │ │ ├── CheckReviewAuth.java │ │ ├── CrashFragment.java │ │ ├── EmAlertFragment.java │ │ ├── ExceptionHandler.java │ │ ├── FileArrayAdapter.java │ │ ├── FileChooserItem.java │ │ ├── File_Chooser_Fragment.java │ │ ├── IdleHandler.java │ │ ├── InstallFileOperation.java │ │ ├── LoadSessionOperation.java │ │ ├── MainActivity.java │ │ ├── NewSessionOperation.java │ │ ├── OperationFragment.java │ │ ├── PHEMApp.java │ │ ├── PHEMNativeIF.java │ │ ├── PHEMOperation.java │ │ ├── PHEMSoundService.java │ │ ├── PHEMView.java │ │ ├── ResetFragment.java │ │ ├── ScreenFragment.java │ │ ├── SessionCreateFragment.java │ │ ├── SessionManageFragment.java │ │ ├── SessionSaveFragment.java │ │ ├── SettingsFragment.java │ │ ├── StatusFragment.java │ │ └── SuicidalFragmentListener.java │ ├── jni │ ├── Android.mk │ ├── Application.mk │ ├── COPYING.txt │ ├── SrcAndroid │ │ ├── DefaultLarge.xpm │ │ ├── DefaultSmall.xpm │ │ ├── EmApplicationAndroid.cpp │ │ ├── EmApplicationAndroid.h │ │ ├── EmCommonUnix.h │ │ ├── EmDirRefAndroid.cpp │ │ ├── EmDirRefAndroid.h │ │ ├── EmDlgAndroid.cpp │ │ ├── EmDlgAndroid.h │ │ ├── EmDocumentAndroid.cpp │ │ ├── EmDocumentAndroid.h │ │ ├── EmFileRefAndroid.cpp │ │ ├── EmFileRefAndroid.h │ │ ├── EmPixMapAndroid.cpp │ │ ├── EmPixMapAndroid.h │ │ ├── EmTransportSerialAndroid.cpp │ │ ├── EmTransportSerialAndroid.h │ │ ├── EmTransportUSBAndroid.cpp │ │ ├── EmTransportUSBAndroid.h │ │ ├── EmWindowAndroid.cpp │ │ ├── EmWindowAndroid.h │ │ ├── PHEMNativeIF.cpp │ │ ├── PHEMNativeIF.h │ │ ├── Platform_Android.cpp │ │ ├── ResStrings.h │ │ ├── com_perpendox_phem_PHEMNativeIF.h │ │ └── jconfig.h │ ├── SrcShared │ │ ├── ATraps.cpp │ │ ├── ATraps.h │ │ ├── Byteswapping.cpp │ │ ├── Byteswapping.h │ │ ├── CGremlins.cpp │ │ ├── CGremlins.h │ │ ├── CGremlinsStubs.cpp │ │ ├── CGremlinsStubs.h │ │ ├── ChunkFile.cpp │ │ ├── ChunkFile.h │ │ ├── DebugMgr.cpp │ │ ├── DebugMgr.h │ │ ├── EcmIf.h │ │ ├── EcmObject.h │ │ ├── EmAction.cpp │ │ ├── EmAction.h │ │ ├── EmApplication.cpp │ │ ├── EmApplication.h │ │ ├── EmAssert.h │ │ ├── EmCommands.h │ │ ├── EmCommon.cpp │ │ ├── EmCommon.h │ │ ├── EmDevice.cpp │ │ ├── EmDevice.h │ │ ├── EmDirRef.cpp │ │ ├── EmDirRef.h │ │ ├── EmDlg.cpp │ │ ├── EmDlg.h │ │ ├── EmDocument.cpp │ │ ├── EmDocument.h │ │ ├── EmErrCodes.h │ │ ├── EmEventOutput.cpp │ │ ├── EmEventOutput.h │ │ ├── EmEventPlayback.cpp │ │ ├── EmEventPlayback.h │ │ ├── EmException.cpp │ │ ├── EmException.h │ │ ├── EmExgMgr.cpp │ │ ├── EmExgMgr.h │ │ ├── EmFileImport.cpp │ │ ├── EmFileImport.h │ │ ├── EmFileRef.cpp │ │ ├── EmFileRef.h │ │ ├── EmJPEG.cpp │ │ ├── EmJPEG.h │ │ ├── EmLowMem.cpp │ │ ├── EmLowMem.h │ │ ├── EmMapFile.cpp │ │ ├── EmMapFile.h │ │ ├── EmMenus.cpp │ │ ├── EmMenus.h │ │ ├── EmMinimize.cpp │ │ ├── EmMinimize.h │ │ ├── EmPalmFunction.cpp │ │ ├── EmPalmFunction.h │ │ ├── EmPalmHeap.cpp │ │ ├── EmPalmHeap.h │ │ ├── EmPalmOS.cpp │ │ ├── EmPalmOS.h │ │ ├── EmPalmStructs.cpp │ │ ├── EmPalmStructs.h │ │ ├── EmPalmStructs.i │ │ ├── EmPixMap.cpp │ │ ├── EmPixMap.h │ │ ├── EmPoint.cpp │ │ ├── EmPoint.h │ │ ├── EmQuantizer.cpp │ │ ├── EmQuantizer.h │ │ ├── EmROMReader.cpp │ │ ├── EmROMReader.h │ │ ├── EmROMTransfer.cpp │ │ ├── EmROMTransfer.h │ │ ├── EmRPC.cpp │ │ ├── EmRPC.h │ │ ├── EmRect.cpp │ │ ├── EmRect.h │ │ ├── EmRefCounted.cpp │ │ ├── EmRefCounted.h │ │ ├── EmRegion.cpp │ │ ├── EmRegion.h │ │ ├── EmScreen.cpp │ │ ├── EmScreen.h │ │ ├── EmSession.cpp │ │ ├── EmSession.h │ │ ├── EmStream.cpp │ │ ├── EmStream.h │ │ ├── EmStreamFile.cpp │ │ ├── EmStreamFile.h │ │ ├── EmStructs.h │ │ ├── EmSubroutine.cpp │ │ ├── EmSubroutine.h │ │ ├── EmThreadSafeQueue.cpp │ │ ├── EmThreadSafeQueue.h │ │ ├── EmTransport.cpp │ │ ├── EmTransport.h │ │ ├── EmTransportSerial.cpp │ │ ├── EmTransportSerial.h │ │ ├── EmTransportSocket.cpp │ │ ├── EmTransportSocket.h │ │ ├── EmTransportUSB.cpp │ │ ├── EmTransportUSB.h │ │ ├── EmTypes.h │ │ ├── EmWindow.cpp │ │ ├── EmWindow.h │ │ ├── ErrorHandling.cpp │ │ ├── ErrorHandling.h │ │ ├── Gzip │ │ │ ├── COPYING │ │ │ ├── bits.c │ │ │ ├── crypt.h │ │ │ ├── deflate.c │ │ │ ├── gzip.h │ │ │ ├── inflate.c │ │ │ ├── lzw.h │ │ │ ├── revision.h │ │ │ ├── tailor.h │ │ │ ├── trees.c │ │ │ └── util.c │ │ ├── Hardware │ │ │ ├── EmBankDRAM.cpp │ │ │ ├── EmBankDRAM.h │ │ │ ├── EmBankDummy.cpp │ │ │ ├── EmBankDummy.h │ │ │ ├── EmBankMapped.cpp │ │ │ ├── EmBankMapped.h │ │ │ ├── EmBankROM.cpp │ │ │ ├── EmBankROM.h │ │ │ ├── EmBankRegs.cpp │ │ │ ├── EmBankRegs.h │ │ │ ├── EmBankSRAM.cpp │ │ │ ├── EmBankSRAM.h │ │ │ ├── EmCPU.cpp │ │ │ ├── EmCPU.h │ │ │ ├── EmCPU68K.cpp │ │ │ ├── EmCPU68K.h │ │ │ ├── EmCPUARM.cpp │ │ │ ├── EmCPUARM.h │ │ │ ├── EmHAL.cpp │ │ │ ├── EmHAL.h │ │ │ ├── EmMemory.cpp │ │ │ ├── EmMemory.h │ │ │ ├── EmRegs.cpp │ │ │ ├── EmRegs.h │ │ │ ├── EmRegs328.cpp │ │ │ ├── EmRegs328.h │ │ │ ├── EmRegs328PalmIII.h │ │ │ ├── EmRegs328PalmPilot.cpp │ │ │ ├── EmRegs328PalmPilot.h │ │ │ ├── EmRegs328PalmVII.h │ │ │ ├── EmRegs328Pilot.h │ │ │ ├── EmRegs328Prv.h │ │ │ ├── EmRegs328Symbol1700.cpp │ │ │ ├── EmRegs328Symbol1700.h │ │ │ ├── EmRegsASICSymbol1700.cpp │ │ │ ├── EmRegsASICSymbol1700.h │ │ │ ├── EmRegsEZ.cpp │ │ │ ├── EmRegsEZ.h │ │ │ ├── EmRegsEZPalmIIIc.cpp │ │ │ ├── EmRegsEZPalmIIIc.h │ │ │ ├── EmRegsEZPalmIIIe.h │ │ │ ├── EmRegsEZPalmIIIx.h │ │ │ ├── EmRegsEZPalmM100.cpp │ │ │ ├── EmRegsEZPalmM100.h │ │ │ ├── EmRegsEZPalmV.cpp │ │ │ ├── EmRegsEZPalmV.h │ │ │ ├── EmRegsEZPalmVII.cpp │ │ │ ├── EmRegsEZPalmVII.h │ │ │ ├── EmRegsEZPalmVIIx.cpp │ │ │ ├── EmRegsEZPalmVIIx.h │ │ │ ├── EmRegsEZPalmVx.h │ │ │ ├── EmRegsEZPrv.h │ │ │ ├── EmRegsEZTRGpro.cpp │ │ │ ├── EmRegsEZTRGpro.h │ │ │ ├── EmRegsEZTemp.cpp │ │ │ ├── EmRegsEZTemp.h │ │ │ ├── EmRegsEZVisor.cpp │ │ │ ├── EmRegsEZVisor.h │ │ │ ├── EmRegsFrameBuffer.cpp │ │ │ ├── EmRegsFrameBuffer.h │ │ │ ├── EmRegsMediaQ11xx.cpp │ │ │ ├── EmRegsMediaQ11xx.h │ │ │ ├── EmRegsPLDPalmVIIEZ.cpp │ │ │ ├── EmRegsPLDPalmVIIEZ.h │ │ │ ├── EmRegsPrv.h │ │ │ ├── EmRegsSED1375.cpp │ │ │ ├── EmRegsSED1375.h │ │ │ ├── EmRegsSED1376.cpp │ │ │ ├── EmRegsSED1376.h │ │ │ ├── EmRegsSZ.cpp │ │ │ ├── EmRegsSZ.h │ │ │ ├── EmRegsSZPrv.h │ │ │ ├── EmRegsSZTemp.cpp │ │ │ ├── EmRegsSZTemp.h │ │ │ ├── EmRegsUSBPhilipsPDIUSBD12.cpp │ │ │ ├── EmRegsUSBPhilipsPDIUSBD12.h │ │ │ ├── EmRegsUSBVisor.cpp │ │ │ ├── EmRegsUSBVisor.h │ │ │ ├── EmRegsVZ.cpp │ │ │ ├── EmRegsVZ.h │ │ │ ├── EmRegsVZHandEra330.cpp │ │ │ ├── EmRegsVZHandEra330.h │ │ │ ├── EmRegsVZPalmM500.cpp │ │ │ ├── EmRegsVZPalmM500.h │ │ │ ├── EmRegsVZPalmM505.cpp │ │ │ ├── EmRegsVZPalmM505.h │ │ │ ├── EmRegsVZPrv.h │ │ │ ├── EmRegsVZTemp.cpp │ │ │ ├── EmRegsVZTemp.h │ │ │ ├── EmRegsVZVisorEdge.cpp │ │ │ ├── EmRegsVZVisorEdge.h │ │ │ ├── EmRegsVZVisorPlatinum.cpp │ │ │ ├── EmRegsVZVisorPlatinum.h │ │ │ ├── EmRegsVZVisorPrism.cpp │ │ │ ├── EmRegsVZVisorPrism.h │ │ │ ├── EmSPISlave.cpp │ │ │ ├── EmSPISlave.h │ │ │ ├── EmSPISlaveADS784x.cpp │ │ │ ├── EmSPISlaveADS784x.h │ │ │ ├── EmUAEGlue.cpp │ │ │ ├── EmUAEGlue.h │ │ │ ├── EmUARTDragonball.cpp │ │ │ ├── EmUARTDragonball.h │ │ │ └── TRG │ │ │ │ ├── EmHandEra330Defs.h │ │ │ │ ├── EmHandEraCFBus.h │ │ │ │ ├── EmHandEraSDBus.h │ │ │ │ ├── EmRegs330CPLD.cpp │ │ │ │ ├── EmRegs330CPLD.h │ │ │ │ ├── EmSPISlave330Current.cpp │ │ │ │ ├── EmSPISlave330Current.h │ │ │ │ ├── EmTRG.cpp │ │ │ │ ├── EmTRG.h │ │ │ │ ├── EmTRGATA.cpp │ │ │ │ ├── EmTRGATA.h │ │ │ │ ├── EmTRGCF.cpp │ │ │ │ ├── EmTRGCF.h │ │ │ │ ├── EmTRGCFDefs.h │ │ │ │ ├── EmTRGCFIO.cpp │ │ │ │ ├── EmTRGCFIO.h │ │ │ │ ├── EmTRGCFMem.cpp │ │ │ │ ├── EmTRGCFMem.h │ │ │ │ ├── EmTRGDiskIO.cpp │ │ │ │ ├── EmTRGDiskIO.h │ │ │ │ ├── EmTRGDiskType.cpp │ │ │ │ ├── EmTRGDiskType.h │ │ │ │ ├── EmTRGSD.cpp │ │ │ │ └── EmTRGSD.h │ │ ├── Hordes.cpp │ │ ├── Hordes.h │ │ ├── HostControl.cpp │ │ ├── HostControl.h │ │ ├── HostControlPrv.h │ │ ├── LoadApplication.cpp │ │ ├── LoadApplication.h │ │ ├── Logging.cpp │ │ ├── Logging.h │ │ ├── Marshal.cpp │ │ ├── Marshal.h │ │ ├── MetaMemory.cpp │ │ ├── MetaMemory.h │ │ ├── Miscellaneous.cpp │ │ ├── Miscellaneous.h │ │ ├── Palm.h │ │ ├── Palm │ │ │ ├── Device │ │ │ │ ├── 328Jerry │ │ │ │ │ └── IncsPrv │ │ │ │ │ │ └── HardwareTD1.h │ │ │ │ ├── EZAustin │ │ │ │ │ └── IncsPrv │ │ │ │ │ │ ├── HardwareAustin.h │ │ │ │ │ │ └── SED1375Hwr.h │ │ │ │ ├── EZSumo │ │ │ │ │ └── IncsPrv │ │ │ │ │ │ └── HardwareEZ.h │ │ │ │ └── VZTrn │ │ │ │ │ └── IncsPrv │ │ │ │ │ └── HardwareVZ.h │ │ │ └── Platform │ │ │ │ ├── Core │ │ │ │ ├── Hardware │ │ │ │ │ └── IncsPrv │ │ │ │ │ │ ├── Hardware.h │ │ │ │ │ │ ├── HwrROMToken.h │ │ │ │ │ │ ├── M68328Hwr.h │ │ │ │ │ │ ├── M68EZ328Hwr.h │ │ │ │ │ │ ├── M68SZ328Hwr.h │ │ │ │ │ │ └── M68VZ328Hwr.h │ │ │ │ └── System │ │ │ │ │ ├── IncsPrv │ │ │ │ │ ├── DataPrv.h │ │ │ │ │ ├── DebugPrv.h │ │ │ │ │ ├── Globals.h │ │ │ │ │ ├── MemoryPrv.h │ │ │ │ │ ├── SerialLinkPrv.h │ │ │ │ │ ├── SysEvtPrv.h │ │ │ │ │ └── SystemPrv.h │ │ │ │ │ └── Src │ │ │ │ │ └── Crc.c │ │ │ │ └── Incs │ │ │ │ ├── BuildDefaults.h │ │ │ │ ├── BuildDefines.h │ │ │ │ ├── Core │ │ │ │ ├── CoreTraps.h │ │ │ │ ├── Hardware │ │ │ │ │ ├── HAL.h │ │ │ │ │ ├── HwrMiscFlags.h │ │ │ │ │ └── M68KHwr.h │ │ │ │ ├── System │ │ │ │ │ ├── Bitmap.h │ │ │ │ │ ├── CharAttr.h │ │ │ │ │ ├── Chars.h │ │ │ │ │ ├── Crc.h │ │ │ │ │ ├── DLCommon.h │ │ │ │ │ ├── DLServer.h │ │ │ │ │ ├── DataMgr.h │ │ │ │ │ ├── DateTime.h │ │ │ │ │ ├── ErrorBase.h │ │ │ │ │ ├── FeatureMgr.h │ │ │ │ │ ├── Font.h │ │ │ │ │ ├── IntlMgr.h │ │ │ │ │ ├── KeyMgr.h │ │ │ │ │ ├── LocaleMgr.h │ │ │ │ │ ├── Localize.h │ │ │ │ │ ├── MemoryMgr.h │ │ │ │ │ ├── NetBitUtils.h │ │ │ │ │ ├── NetMgr.h │ │ │ │ │ ├── OverlayMgr.h │ │ │ │ │ ├── PalmLocale.h │ │ │ │ │ ├── PenMgr.h │ │ │ │ │ ├── Preferences.h │ │ │ │ │ ├── Rect.h │ │ │ │ │ ├── SerialLinkMgr.h │ │ │ │ │ ├── SerialMgr.h │ │ │ │ │ ├── SoundMgr.h │ │ │ │ │ ├── SysEvent.h │ │ │ │ │ ├── SysEvtMgr.h │ │ │ │ │ ├── SystemMgr.h │ │ │ │ │ ├── SystemPkt.h │ │ │ │ │ ├── SystemResources.h │ │ │ │ │ ├── TextMgr.h │ │ │ │ │ └── Window.h │ │ │ │ └── UI │ │ │ │ │ ├── AttentionMgr.h │ │ │ │ │ ├── Control.h │ │ │ │ │ ├── Event.h │ │ │ │ │ ├── FatalAlert.h │ │ │ │ │ ├── Field.h │ │ │ │ │ ├── Find.h │ │ │ │ │ ├── Form.h │ │ │ │ │ ├── InsPoint.h │ │ │ │ │ ├── List.h │ │ │ │ │ ├── ScrollBar.h │ │ │ │ │ ├── Table.h │ │ │ │ │ └── UIResources.h │ │ │ │ ├── Libraries │ │ │ │ └── LibTraps.h │ │ │ │ └── PalmTypes.h │ │ ├── PalmOptErrorCheckLevel.h │ │ ├── PalmPack.h │ │ ├── PalmPackPop.h │ │ ├── Patches │ │ │ ├── EmPatchIf.h │ │ │ ├── EmPatchLoader.cpp │ │ │ ├── EmPatchLoader.h │ │ │ ├── EmPatchMgr.cpp │ │ │ ├── EmPatchMgr.h │ │ │ ├── EmPatchModule.cpp │ │ │ ├── EmPatchModule.h │ │ │ ├── EmPatchModuleHtal.cpp │ │ │ ├── EmPatchModuleHtal.h │ │ │ ├── EmPatchModuleMap.cpp │ │ │ ├── EmPatchModuleMap.h │ │ │ ├── EmPatchModuleMemMgr.cpp │ │ │ ├── EmPatchModuleNetLib.cpp │ │ │ ├── EmPatchModuleNetLib.h │ │ │ ├── EmPatchModuleSys.cpp │ │ │ ├── EmPatchModuleSys.h │ │ │ ├── EmPatchModuleTypes.h │ │ │ ├── EmPatchState.cpp │ │ │ └── EmPatchState.h │ │ ├── Platform.h │ │ ├── Platform_NetLib.h │ │ ├── Platform_NetLib_Sck.cpp │ │ ├── PreferenceMgr.cpp │ │ ├── PreferenceMgr.h │ │ ├── Profiling.cpp │ │ ├── Profiling.h │ │ ├── ROMStubs.cpp │ │ ├── ROMStubs.h │ │ ├── ResStrings.cpp │ │ ├── SLP.cpp │ │ ├── SLP.h │ │ ├── SessionFile.cpp │ │ ├── SessionFile.h │ │ ├── Skins.cpp │ │ ├── Skins.h │ │ ├── SocketMessaging.cpp │ │ ├── SocketMessaging.h │ │ ├── Startup.cpp │ │ ├── Startup.h │ │ ├── String2 │ │ ├── StringConversions.cpp │ │ ├── StringConversions.h │ │ ├── StringData.cpp │ │ ├── StringData.h │ │ ├── Strings.r.h │ │ ├── Strings.txt │ │ ├── Switches.h │ │ ├── SystemPacket.cpp │ │ ├── SystemPacket.h │ │ ├── TracerCommon.cpp │ │ ├── TracerCommon.h │ │ ├── TracerPlatform.h │ │ ├── UAE │ │ │ ├── UAE.h │ │ │ ├── build68k.c │ │ │ ├── compiler.h │ │ │ ├── config.h │ │ │ ├── cpudefs.c │ │ │ ├── cpuemu.c │ │ │ ├── cpuemu1.c │ │ │ ├── cpuemu2.c │ │ │ ├── cpuemu3.c │ │ │ ├── cpuemu4.c │ │ │ ├── cpuemu5.c │ │ │ ├── cpuemu6.c │ │ │ ├── cpuemu7.c │ │ │ ├── cpuemu8.c │ │ │ ├── cpustbl.c │ │ │ ├── cputbl.h │ │ │ ├── custom.h │ │ │ ├── gencpu.c │ │ │ ├── machdep_m68k.h │ │ │ ├── machdep_maccess.h │ │ │ ├── memory_cpu.h │ │ │ ├── missing.c │ │ │ ├── newcpu.h │ │ │ ├── options.h │ │ │ ├── readcpu.cpp │ │ │ ├── readcpu.h │ │ │ ├── sysconfig.h │ │ │ ├── sysdeps.h │ │ │ ├── table68k │ │ │ └── target.h │ │ ├── jpeg │ │ │ ├── cderror.h │ │ │ ├── jcapimin.c │ │ │ ├── jcapistd.c │ │ │ ├── jccoefct.c │ │ │ ├── jccolor.c │ │ │ ├── jcdctmgr.c │ │ │ ├── jchuff.c │ │ │ ├── jchuff.h │ │ │ ├── jcinit.c │ │ │ ├── jcmainct.c │ │ │ ├── jcmarker.c │ │ │ ├── jcmaster.c │ │ │ ├── jcomapi.c │ │ │ ├── jcparam.c │ │ │ ├── jcphuff.c │ │ │ ├── jcprepct.c │ │ │ ├── jcsample.c │ │ │ ├── jctrans.c │ │ │ ├── jdapimin.c │ │ │ ├── jdapistd.c │ │ │ ├── jdatadst.c │ │ │ ├── jdatasrc.c │ │ │ ├── jdcoefct.c │ │ │ ├── jdcolor.c │ │ │ ├── jdct.h │ │ │ ├── jddctmgr.c │ │ │ ├── jdhuff.c │ │ │ ├── jdhuff.h │ │ │ ├── jdinput.c │ │ │ ├── jdmainct.c │ │ │ ├── jdmarker.c │ │ │ ├── jdmaster.c │ │ │ ├── jdmerge.c │ │ │ ├── jdphuff.c │ │ │ ├── jdpostct.c │ │ │ ├── jdsample.c │ │ │ ├── jdtrans.c │ │ │ ├── jerror.c │ │ │ ├── jerror.h │ │ │ ├── jfdctflt.c │ │ │ ├── jfdctfst.c │ │ │ ├── jfdctint.c │ │ │ ├── jidctflt.c │ │ │ ├── jidctfst.c │ │ │ ├── jidctint.c │ │ │ ├── jidctred.c │ │ │ ├── jinclude.h │ │ │ ├── jmemmac.c │ │ │ ├── jmemmgr.c │ │ │ ├── jmemnobs.c │ │ │ ├── jmemsys.h │ │ │ ├── jmorecfg.h │ │ │ ├── jpegint.h │ │ │ ├── jpeglib.h │ │ │ ├── jquant1.c │ │ │ ├── jquant2.c │ │ │ ├── jutils.c │ │ │ └── jversion.h │ │ ├── omnithread │ │ │ ├── mach.cpp │ │ │ ├── mach.h │ │ │ ├── nt.cpp │ │ │ ├── nt.h │ │ │ ├── null_thread.cpp │ │ │ ├── null_thread.h │ │ │ ├── omnithread.h │ │ │ ├── posix.cpp │ │ │ ├── posix.h │ │ │ ├── solaris.cpp │ │ │ └── solaris.h │ │ └── xstring2 │ └── Tools │ │ ├── Strings2Resource.pl │ │ └── s2r.sh │ └── res │ ├── drawable-hdpi │ ├── ab_contact.png │ ├── ab_dateb.png │ ├── ab_down.png │ ├── ab_memo.png │ ├── ab_todo.png │ ├── ab_up.png │ ├── about_menu_icon.png │ ├── card_menu_icon.png │ ├── extract_menu_icon.png │ ├── ic_launcher.png │ ├── input_menu_icon.png │ ├── install_menu_icon.png │ ├── power_icon.png │ ├── reset_menu_icon.png │ ├── session_menu_icon.png │ └── settings_menu_icon.png │ ├── drawable-ldpi │ └── ic_launcher.png │ ├── drawable-mdpi │ ├── ab_contact.png │ ├── ab_dateb.png │ ├── ab_down.png │ ├── ab_memo.png │ ├── ab_todo.png │ ├── ab_up.png │ ├── about_menu_icon.png │ ├── card_menu_icon.png │ ├── extract_menu_icon.png │ ├── ic_launcher.png │ ├── input_menu_icon.png │ ├── install_menu_icon.png │ ├── power_icon.png │ ├── reset_menu_icon.png │ ├── session_menu_icon.png │ └── settings_menu_icon.png │ ├── drawable-xhdpi │ ├── ab_contact.png │ ├── ab_dateb.png │ ├── ab_down.png │ ├── ab_memo.png │ ├── ab_todo.png │ ├── ab_up.png │ ├── about_menu_icon.png │ ├── card_menu_icon.png │ ├── extract_menu_icon.png │ ├── ic_launcher.png │ ├── input_menu_icon.png │ ├── install_menu_icon.png │ ├── power_icon.png │ ├── reset_menu_icon.png │ ├── session_menu_icon.png │ └── settings_menu_icon.png │ ├── drawable-xxhdpi │ └── ic_launcher.png │ ├── drawable │ ├── dir_icon.png │ ├── dir_up.png │ ├── file_icon.png │ ├── pbutton_pressed.xml │ ├── pbutton_released.xml │ ├── pbutton_selector.xml │ ├── perpendox_logo.png │ ├── phem_loading.png │ ├── phem_no_session.png │ └── tv_border.xml │ ├── layout │ ├── file_view.xml │ ├── fragment_about.xml │ ├── fragment_button_bar.xml │ ├── fragment_card_mgmt.xml │ ├── fragment_crash_handler.xml │ ├── fragment_create_session.xml │ ├── fragment_manage_session.xml │ ├── fragment_reset.xml │ ├── fragment_save_session.xml │ ├── fragment_screen.xml │ ├── fragment_settings.xml │ ├── fragment_status.xml │ ├── fragment_task.xml │ ├── main_landscape.xml │ └── main_portrait.xml │ ├── menu │ ├── crash_handler.xml │ └── main_menu.xml │ ├── values-de │ └── strings.xml │ ├── values-ja │ └── strings.xml │ ├── values-large-land │ ├── dimens.xml │ └── layouts.xml │ ├── values-large │ ├── dimens.xml │ └── layouts.xml │ ├── values-small │ └── dimens.xml │ ├── values-sw600dp-land │ ├── dimens.xml │ └── layouts.xml │ ├── values-sw600dp │ ├── dimens.xml │ └── layouts.xml │ ├── values-sw720dp-land │ └── dimens.xml │ ├── values-sw720dp │ └── dimens.xml │ ├── values-v11 │ └── styles.xml │ ├── values-v14 │ └── styles.xml │ └── values │ ├── colors.xml │ ├── dimens.xml │ ├── layouts.xml │ ├── strings.xml │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .gradle/ 3 | .externalNativeBuild 4 | *.iml 5 | build/ 6 | obj/ 7 | libs/ 8 | local.properties 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### PHEM - The Palm Hardware Emulator 2 | Fork of http://perpendox.com/phem/index.html 3 | Don't forget to choose the correct Build Variant (Flavor) 4 | 5 | #### License 6 | GPL-2.0 -------------------------------------------------------------------------------- /app/proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | #-dontskipnonpubliclibraryclasses 22 | #-dontobfuscate 23 | #-forceprocessing 24 | #-optimizationpasses 5 25 | # 26 | #-keep class * extends android.app.Activity 27 | #-keep class com.perpendox.phem.PHEMNativeIF 28 | #-assumenosideeffects class android.util.Log { 29 | # public static *** d(...); 30 | # public static *** v(...); 31 | #} 32 | -optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable 33 | 34 | #-dontobfuscate 35 | -optimizationpasses 5 36 | -keep class com.perpendox.phem.PHEMNativeIF 37 | -keepclasseswithmembers class * { 38 | *** *_cb(...); 39 | } 40 | -------------------------------------------------------------------------------- /app/src/main/assets/HandEra330.skin: -------------------------------------------------------------------------------- 1 | # This is a skin file for PHEM, the Palm Hardware Emulator M68k. 2 | # It is designed to maximize screen area. 3 | 4 | Name = HandEra330 5 | File1x = HandEra330_1x.jpg 6 | File2x = HandEra330_2x.jpg 7 | #BackgroundColor = 0x7B, 0x8C, 0x5A 8 | BackgroundColor = 0x98, 0xA8, 0x7A 9 | HighlightColor = 0x64, 0xF0, 0xDC 10 | Devices = HandEra330 11 | 12 | # x y w h 13 | # ---- ---- ---- ---- 14 | Element1 = Touchscreen, 2, 2, 240, 320 15 | Element2 = LCD, 2, 2, 240, 320 16 | -------------------------------------------------------------------------------- /app/src/main/assets/HandEra330_1x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/assets/HandEra330_1x.jpg -------------------------------------------------------------------------------- /app/src/main/assets/HandEra330_2x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/assets/HandEra330_2x.jpg -------------------------------------------------------------------------------- /app/src/main/assets/HostFS.prc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/assets/HostFS.prc -------------------------------------------------------------------------------- /app/src/main/java/com/perpendox/phem/ExceptionHandler.java: -------------------------------------------------------------------------------- 1 | package com.perpendox.phem; 2 | 3 | import java.lang.Thread.UncaughtExceptionHandler; 4 | 5 | import android.content.Context; 6 | import android.content.SharedPreferences; 7 | import android.util.Log; 8 | 9 | public class ExceptionHandler implements UncaughtExceptionHandler { 10 | private static final String LOG_TAG = ExceptionHandler.class 11 | .getSimpleName(); 12 | private UncaughtExceptionHandler defaultExceptionHandler; 13 | SharedPreferences preferences; 14 | 15 | // Constructor. 16 | public ExceptionHandler(UncaughtExceptionHandler uncaughtExceptionHandler, 17 | Context context) { 18 | if (MainActivity.enable_logging) { 19 | Log.d(LOG_TAG, "Setting up exception handler."); 20 | } 21 | preferences = context.getSharedPreferences(MainActivity.PREF_ROOT, 0); 22 | defaultExceptionHandler = uncaughtExceptionHandler; 23 | } 24 | 25 | public void uncaughtException(Thread thread, Throwable throwable) { 26 | if (MainActivity.enable_logging) { 27 | Log.d(LOG_TAG, "Oy. Uncaught exception."); 28 | } 29 | preferences.edit().putBoolean(MainActivity.PREF_APP_CRASHED, true) 30 | .commit(); 31 | 32 | // Call the original handler. 33 | defaultExceptionHandler.uncaughtException(thread, throwable); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/src/main/java/com/perpendox/phem/FileChooserItem.java: -------------------------------------------------------------------------------- 1 | package com.perpendox.phem; 2 | 3 | public class FileChooserItem implements Comparable{ 4 | private String name; 5 | private String data; 6 | private String date; 7 | private String path; 8 | private String image; 9 | private int type; 10 | public static final int TYPE_PARENT = 101; 11 | public static final int TYPE_CURRENT = 102; 12 | public static final int TYPE_DIR = 103; 13 | public static final int TYPE_FILE = 104; 14 | 15 | public FileChooserItem(String n,String d, String dt, String p, String img, int t) 16 | { 17 | name = n; 18 | data = d; 19 | date = dt; 20 | path = p; 21 | image = img; 22 | type = t; 23 | } 24 | public String getName() 25 | { 26 | return name; 27 | } 28 | public String getData() 29 | { 30 | return data; 31 | } 32 | public String getDate() 33 | { 34 | return date; 35 | } 36 | public String getPath() 37 | { 38 | return path; 39 | } 40 | public String getImage() { 41 | return image; 42 | } 43 | public int getType() { 44 | return type; 45 | } 46 | public int compareTo(FileChooserItem o) { 47 | if(this.name != null) 48 | return this.name.toLowerCase().compareTo(o.getName().toLowerCase()); 49 | else 50 | throw new IllegalArgumentException(); 51 | } 52 | } -------------------------------------------------------------------------------- /app/src/main/java/com/perpendox/phem/IdleHandler.java: -------------------------------------------------------------------------------- 1 | package com.perpendox.phem; 2 | 3 | import android.os.Handler; 4 | import android.os.Looper; 5 | import android.os.Message; 6 | 7 | public class IdleHandler extends Handler { 8 | 9 | public Boolean do_power_button = false; 10 | 11 | public IdleHandler(Looper looper) { 12 | super(looper); 13 | } 14 | 15 | @Override 16 | public void handleMessage(Message msg) { 17 | synchronized (PHEMApp.idle_sync) { 18 | // Guarantee that emulated device sees the power button pressed, 19 | // then released. 20 | if (do_power_button) { 21 | PHEMNativeIF.Button_Event(PHEMNativeIF.POWER_BUTTON_ID, true); 22 | } 23 | 24 | PHEMNativeIF.Handle_Idle(); 25 | 26 | if (do_power_button) { 27 | PHEMNativeIF.Button_Event(PHEMNativeIF.POWER_BUTTON_ID, false); 28 | do_power_button = false; 29 | } 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /app/src/main/java/com/perpendox/phem/InstallFileOperation.java: -------------------------------------------------------------------------------- 1 | package com.perpendox.phem; 2 | 3 | import android.util.Log; 4 | 5 | // Installing a file to the emulator can take a while. So we do it on a separate 6 | // thread using an AsyncTask. 7 | public class InstallFileOperation extends PHEMOperation { 8 | private static final String LOG_TAG = InstallFileOperation.class.getSimpleName(); 9 | OperationFragment mFragment; 10 | private String the_file =""; 11 | 12 | public InstallFileOperation(String file) { 13 | super(); 14 | if (MainActivity.enable_logging) {Log.d(LOG_TAG, "Initializing with file:" + file);} 15 | the_file = file; 16 | } 17 | 18 | @Override 19 | protected void onPreExecute() { 20 | if (MainActivity.enable_logging) {Log.d(LOG_TAG, "Pausing idle.");} 21 | MainActivity.Pause_Idle(); 22 | } 23 | 24 | @Override 25 | void Set_Fragment(OperationFragment fragment) { 26 | if (MainActivity.enable_logging) {Log.d(LOG_TAG, "Fragment set.");} 27 | mFragment = fragment; 28 | } 29 | 30 | @Override 31 | protected void onPostExecute(final Boolean success) { 32 | MainActivity.Resume_Idle(); 33 | if (MainActivity.enable_logging) {Log.d(LOG_TAG, "Resuming idle.");} 34 | if (mFragment == null) 35 | return; 36 | mFragment.taskFinished(); 37 | } 38 | 39 | @Override 40 | protected Boolean doInBackground(Void... params) { 41 | if (the_file.length() <= 0) { 42 | if (MainActivity.enable_logging) {Log.d(LOG_TAG, "Didn't get a file!");} 43 | return false; 44 | } 45 | if (0 == PHEMNativeIF.Install_Palm_File(the_file)) { 46 | if (MainActivity.enable_logging) {Log.d(LOG_TAG, "Loaded " + the_file);} 47 | return true; 48 | } else { 49 | if (MainActivity.enable_logging) {Log.d(LOG_TAG, "Error loading file!");} 50 | return false; 51 | } 52 | } 53 | 54 | // These methods are used to set up the ProgressDialog that's shown to 55 | // the user. 56 | @Override 57 | String Get_Title() { 58 | return "Installing"; 59 | } 60 | 61 | @Override 62 | String Get_Message() { 63 | return "File: " + the_file; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /app/src/main/java/com/perpendox/phem/PHEMOperation.java: -------------------------------------------------------------------------------- 1 | package com.perpendox.phem; 2 | 3 | import android.os.AsyncTask; 4 | 5 | /* A potentially longer-running operation that shouldn't be allowed to block 6 | * the UI thread. E.g. InstallFileOperation, LoadSessionOperation, 7 | * NewSessionOperation. */ 8 | public abstract class PHEMOperation extends AsyncTask { 9 | abstract void Set_Fragment(OperationFragment frag); 10 | abstract String Get_Title(); 11 | abstract String Get_Message(); 12 | } 13 | -------------------------------------------------------------------------------- /app/src/main/java/com/perpendox/phem/SuicidalFragmentListener.java: -------------------------------------------------------------------------------- 1 | package com.perpendox.phem; 2 | 3 | // When a UI fragment has done its job - the type of reset has been selected, 4 | // the file to install has been chosen, etc. - it uses this interface to notify 5 | // the Activity that it's served its purpose in life and is ready to meet the 6 | // Grim Reaper. 7 | public interface SuicidalFragmentListener { 8 | void onFragmentSuicide(String tag); 9 | } 10 | -------------------------------------------------------------------------------- /app/src/main/jni/Application.mk: -------------------------------------------------------------------------------- 1 | APP_STL := gnustl_static 2 | APP_PLATFORM := android-8 3 | APP_ABI := armeabi-v7a x86 4 | NDK_TOOLCHAIN_VERSION := 4.9 5 | #NDK_TOOLCHAIN_VERSION := clang -------------------------------------------------------------------------------- /app/src/main/jni/SrcAndroid/EmApplicationAndroid.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1999-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmApplicationAndroid_h 15 | #define EmApplicationAndroid_h 16 | 17 | #include "EmApplication.h" // EmApplication 18 | #include "EmStructs.h" // ByteList 19 | #include "PreferenceMgr.h" // EmulatorPrefs 20 | 21 | #include "PHEMNativeIF.h" 22 | 23 | class EmWindowAndroid; 24 | 25 | class EmApplicationAndroid : public EmApplication 26 | { 27 | public: 28 | EmApplicationAndroid (void); 29 | virtual ~EmApplicationAndroid (void); 30 | 31 | public: 32 | EmulatorPreferences prefs; 33 | virtual Bool Startup(int argc, char** argv); 34 | void Run(void); 35 | virtual void Shutdown(void); 36 | void HandleIdle(void); 37 | void HandleEvent(PHEM_Event *evt); 38 | 39 | private: 40 | Bool PrvIdleClipboard (void); 41 | static void PrvClipboardPeriodic (void* data); 42 | void PrvCreateWindow(int argc, char** argv); 43 | 44 | private: 45 | EmWindowAndroid *fAppWindow; 46 | ByteList fClipboardData; 47 | }; 48 | 49 | extern EmApplicationAndroid* gHostApplication; 50 | 51 | #endif // EmApplicationAndroid_h 52 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcAndroid/EmDirRefAndroid.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmDirRefWin_h 15 | #define EmDirRefWin_h 16 | 17 | #include "EmDirRef.h" 18 | 19 | #endif /* EmDirRefWin_h */ 20 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcAndroid/EmDocumentAndroid.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcAndroid/EmDocumentAndroid.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcAndroid/EmDocumentAndroid.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1998-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmDocumentAndroid_h 15 | #define EmDocumentAndroid_h 16 | 17 | #include "EmDocument.h" 18 | 19 | /* 20 | EmDocumentAndroid is an Android-specific sub-class of EmDocument. It is 21 | responsible for translating platform-specific document-related 22 | actions into cross-platform actions, making use of the the cross- 23 | platform EmDocument implementations. 24 | */ 25 | 26 | class EmDocumentAndroid : public EmDocument 27 | { 28 | public: 29 | EmDocumentAndroid (void); 30 | virtual ~EmDocumentAndroid (void); 31 | 32 | public: 33 | // I'd like these to be private, but at least one part of Poser 34 | // needs access to HostSaveScreen. 35 | virtual void HostSaveScreen (const EmFileRef&); 36 | }; 37 | 38 | extern EmDocumentAndroid* gHostDocument; 39 | 40 | #endif // EmDocumentAndroid_h 41 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcAndroid/EmFileRefAndroid.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmFileRefAndroid_h 15 | #define EmFileRefAndroid_h 16 | 17 | #include "EmFileRef.h" 18 | 19 | #endif /* EmFileRefAndroid_h */ 20 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcAndroid/EmPixMapAndroid.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcAndroid/EmPixMapAndroid.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcAndroid/EmPixMapAndroid.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmPixMapAndroid_h 15 | #define EmPixMapAndroid_h 16 | 17 | #include "EmPixMap.h" // EmPixMap 18 | 19 | void ConvertPixMapToHost ( const EmPixMap& src, void* buffer, 20 | int firstLine, int lastLine, Bool scale); 21 | 22 | #endif // EmPixMapAndroid_h 23 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcAndroid/EmTransportUSBAndroid.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmTransportUSBAndroid_h 15 | #define EmTransportUSBAndroid_h 16 | 17 | #include "EmTransportUSB.h" 18 | 19 | class EmTransportSerial; 20 | 21 | class EmHostTransportUSB 22 | { 23 | public: 24 | EmHostTransportUSB (void); 25 | ~EmHostTransportUSB (void); 26 | 27 | void UpdateOpenState (void); 28 | Bool FakeOpenConnection (void); 29 | 30 | public: 31 | Bool fOpenLocally; 32 | Bool fOpenRemotely; 33 | EmTransportSerial* fSerialTransport; 34 | }; 35 | 36 | #endif /* EmTransportUSBAndroid_h */ 37 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcAndroid/EmWindowAndroid.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcAndroid/EmWindowAndroid.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcAndroid/Platform_Android.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcAndroid/Platform_Android.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcAndroid/ResStrings.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1999-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef __RESSTRINGS_H__ 15 | #define __RESSTRINGS_H__ 16 | 17 | const char *_ResGetString(int idx); 18 | 19 | #endif /* __RESSTRINGS_H__ */ 20 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcAndroid/jconfig.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* jconfig.vc --- jconfig.h for Microsoft Visual C++ on Windows 95 or NT. */ 3 | /* see jconfig.doc for explanations */ 4 | 5 | #define HAVE_PROTOTYPES 6 | #define HAVE_UNSIGNED_CHAR 7 | #define HAVE_UNSIGNED_SHORT 8 | /* #define void char */ 9 | /* #define const */ 10 | #undef CHAR_IS_UNSIGNED 11 | #define HAVE_STDDEF_H 12 | #define HAVE_STDLIB_H 13 | #undef NEED_BSD_STRINGS 14 | #undef NEED_SYS_TYPES_H 15 | #undef NEED_FAR_POINTERS /* we presume a 32-bit flat memory model */ 16 | #undef NEED_SHORT_EXTERNAL_NAMES 17 | #undef INCOMPLETE_TYPES_BROKEN 18 | 19 | /* Define "boolean" as unsigned char, not int, per Windows custom */ 20 | #ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */ 21 | typedef unsigned char boolean; 22 | #endif 23 | #define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */ 24 | 25 | 26 | #ifdef JPEG_INTERNALS 27 | 28 | #undef RIGHT_SHIFT_IS_UNSIGNED 29 | 30 | #endif /* JPEG_INTERNALS */ 31 | 32 | #ifdef JPEG_CJPEG_DJPEG 33 | 34 | #define BMP_SUPPORTED /* BMP image file format */ 35 | #define GIF_SUPPORTED /* GIF image file format */ 36 | #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 37 | #undef RLE_SUPPORTED /* Utah RLE image file format */ 38 | #define TARGA_SUPPORTED /* Targa image file format */ 39 | 40 | #define TWO_FILE_COMMANDLINE /* optional */ 41 | #define USE_SETMODE /* Microsoft has setmode() */ 42 | #undef NEED_SIGNAL_CATCHER 43 | #undef DONT_USE_B_MODE 44 | #undef PROGRESS_REPORT /* optional */ 45 | 46 | #endif /* JPEG_CJPEG_DJPEG */ 47 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/ATraps.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/ATraps.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/ATraps.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1998-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef _ATRAPS_H_ 15 | #define _ATRAPS_H_ 16 | 17 | #include "Miscellaneous.h" // StMemoryMapper 18 | #include "UAE.h" // regstruct 19 | 20 | class SessionFile; 21 | 22 | class ATrap 23 | { 24 | public: 25 | ATrap (void); 26 | ~ATrap (void); 27 | 28 | void Call (uint16 trapWord); 29 | 30 | void PushByte (uint8 iByte); 31 | void PushWord (uint16 iWord); 32 | void PushLong (uint32 iLong); 33 | 34 | void SetNewDReg (int regNum, uint32 value); 35 | void SetNewAReg (int regNum, uint32 value); 36 | 37 | uint32 GetD0 (void); 38 | uint32 GetA0 (void); 39 | 40 | protected: 41 | 42 | void DoCall (uint16 trapWord); 43 | 44 | char* GetStackBase (void); 45 | 46 | private: 47 | regstruct fOldRegisters; 48 | regstruct fNewRegisters; 49 | 50 | // static const int kStackSize = 4096; // VC++ is a bit medieval here... 51 | enum { kStackSize = 4096 }; 52 | char fStack[kStackSize + 3]; 53 | 54 | StMemoryMapper fEmulatedStackMapper; 55 | }; 56 | 57 | #endif /* _ATRAPS_H_ */ 58 | 59 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/CGremlins.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/CGremlins.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/CGremlinsStubs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/CGremlinsStubs.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/CGremlinsStubs.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1998-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef __GREMLINSSTUBS_H__ 15 | #define __GREMLINSSTUBS_H__ 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | 22 | extern void StubAppEnqueuePt(const PointType* pen); 23 | 24 | extern void StubAppEnqueueKey (UInt16 ascii, UInt16 keycode, UInt16 modifiers); 25 | 26 | extern void StubAppGremlinsOn (void); 27 | 28 | extern void StubAppGremlinsOff (void); 29 | 30 | extern void StubViewDrawLine (int xStart, int yStart, int xEnd, int yEnd); 31 | 32 | extern void StubViewDrawPixel (int xPos, int yPos); 33 | 34 | 35 | #ifdef __cplusplus 36 | } 37 | #endif 38 | 39 | #endif // __GREMLINSSTUBS_H__ 40 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/ChunkFile.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/ChunkFile.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/DebugMgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/DebugMgr.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmAction.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmAction.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmAction.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1998-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmAction_h 15 | #define EmAction_h 16 | 17 | #include "omnithread.h" // omni_mutex 18 | 19 | #include 20 | 21 | class EmAction; 22 | typedef vector EmActionList; 23 | 24 | class EmAction 25 | { 26 | public: 27 | EmAction (StrCode strCode) : fStrCode (strCode) {} 28 | virtual ~EmAction (void) {} 29 | 30 | virtual void Do (void) = 0; 31 | 32 | StrCode GetDescription (void) const { return fStrCode; }; 33 | 34 | private: 35 | StrCode fStrCode; 36 | }; 37 | 38 | 39 | class EmActionComposite : public EmAction 40 | { 41 | public: 42 | EmActionComposite (void); 43 | virtual ~EmActionComposite (void); 44 | 45 | virtual void Do (void); 46 | 47 | void AddAction (EmAction*); 48 | 49 | private: 50 | EmActionList fActions; 51 | }; 52 | 53 | 54 | class EmActionHandler 55 | { 56 | public: 57 | EmActionHandler (void); 58 | virtual ~EmActionHandler (void); 59 | 60 | public: 61 | void PostAction (EmAction*); 62 | EmAction* GetNextAction (void); 63 | void DoAll (void); 64 | 65 | private: 66 | void DeleteAll (void); 67 | 68 | private: 69 | omni_mutex fMutex; 70 | EmActionList fActions; 71 | }; 72 | 73 | #endif // EmAction 74 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmApplication.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmApplication.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmAssert.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmAssert_h 15 | #define EmAssert_h 16 | 17 | #ifdef __cplusplus 18 | extern "C" 19 | #endif 20 | void MyAssertFailed ( 21 | const char* assertion, 22 | const char* file, 23 | unsigned int line); 24 | 25 | // Use EmAssert to assert only in debug mode. 26 | // Use EmASSERT to assert even in release mode. 27 | // The latter should be used only temporarily to 28 | // find bugs that occur only in release mode. 29 | 30 | #define EmASSERT(expr) \ 31 | ((void) ((expr) ? 0 : \ 32 | (MyAssertFailed (#expr, \ 33 | __FILE__, __LINE__), 0))) 34 | 35 | #ifdef NDEBUG 36 | 37 | #define EmAssert(expr) ((void) 0) 38 | 39 | #else 40 | 41 | #define EmAssert(expr) EmASSERT (expr) 42 | 43 | #endif 44 | 45 | #endif // EmAssert.h 46 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmCommon.cpp: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1999-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #include "EmCommon.h" 15 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmDirRef.cpp: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #include "EmCommon.h" 15 | #include "EmDirRef.h" 16 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmDocument.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmDocument.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmEventPlayback.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmEventPlayback.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmException.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmException.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmExgMgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmExgMgr.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmFileRef.cpp: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #include "EmCommon.h" 15 | #include "EmFileRef.h" 16 | 17 | static EmFileRef gEmulatorRef; 18 | 19 | /*********************************************************************** 20 | * 21 | * FUNCTION: EmFileRef::SetEmulatorRef 22 | * 23 | * DESCRIPTION: Set the ref corresponding to the emulator application. 24 | * 25 | * PARAMETERS: ref -. 26 | * 27 | * RETURNED: nothing. 28 | * 29 | ***********************************************************************/ 30 | 31 | void EmFileRef::SetEmulatorRef (const EmFileRef& ref) 32 | { 33 | EmAssert (ref.IsSpecified ()); 34 | EmAssert (!gEmulatorRef.IsSpecified ()); 35 | 36 | gEmulatorRef = ref; 37 | } 38 | 39 | 40 | /*********************************************************************** 41 | * 42 | * FUNCTION: EmFileRef::GetEmulatorRef 43 | * 44 | * DESCRIPTION: Return the ref corresponding to the emulator application. 45 | * 46 | * PARAMETERS: none. 47 | * 48 | * RETURNED: ref - . 49 | * 50 | ***********************************************************************/ 51 | 52 | EmFileRef EmFileRef::GetEmulatorRef (void) 53 | { 54 | EmAssert (gEmulatorRef.IsSpecified ()); 55 | 56 | return gEmulatorRef; 57 | } 58 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmLowMem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmLowMem.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmLowMem.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmLowMem_h 15 | #define EmLowMem_h 16 | 17 | #include "EmPalmStructs.h" 18 | 19 | class SessionFile; 20 | 21 | class EmLowMem 22 | { 23 | public: 24 | static void Initialize (void); 25 | static void Reset (void); 26 | static void Save (SessionFile&); 27 | static void Load (SessionFile&); 28 | static void Dispose (void); 29 | 30 | static uint8 GetEvtMgrIdle (void); 31 | static Bool TrapExists (uint16 iATrap); 32 | static emuptr GetTrapAddress (uint16 iATrap); 33 | 34 | #define EmLowMem_GetGlobal(x) EmLowMem::fgLowMem.globals.x 35 | #define EmLowMem_SetGlobal(x, v) EmLowMem::fgLowMem.globals.x = v 36 | #define EmLowMem_AddressOf(x) EmLowMem::fgLowMem.globals.x.GetPtr () 37 | 38 | static EmAliasLowMemHdrType fgLowMem; 39 | }; 40 | 41 | #endif // EmLowMem_h 42 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmMapFile.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1999-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmMapFile_h 15 | #define EmMapFile_h 16 | 17 | #include "EmStructs.h" // StringStringMap 18 | 19 | class EmFileRef; 20 | class EmStream; 21 | 22 | class EmMapFile 23 | { 24 | public: 25 | 26 | static Bool Read ( const EmFileRef& f, 27 | StringStringMap& mapData ); 28 | static Bool Read ( EmStream& stream, 29 | StringStringMap& mapData ); 30 | 31 | static Bool Write ( const EmFileRef& f, 32 | const StringStringMap& mapData ); 33 | static Bool Write ( EmStream& stream, 34 | const StringStringMap& mapData ); 35 | }; 36 | 37 | #endif /* EmMapFile_h */ 38 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmMenus.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmMenus.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmMinimize.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmMinimize.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmPalmHeap.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmPalmHeap.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmPalmOS.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmPalmOS.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmPalmStructs.i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmPalmStructs.i -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmQuantizer.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1999-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmQuantizer_h 15 | #define EmQuantizer_h 16 | 17 | #include "EmStructs.h" // RGBList 18 | 19 | class EmPixMap; 20 | 21 | struct NODE; 22 | 23 | class EmQuantizer 24 | { 25 | public: 26 | EmQuantizer (uint32 nMaxColors, uint32 nColorBits); 27 | virtual ~EmQuantizer (void); 28 | 29 | Bool ProcessImage (const EmPixMap&); 30 | Bool ProcessColorTable (const RGBList&); 31 | void GetColorTable (RGBList&); 32 | 33 | protected: 34 | void AddColor (NODE** ppNode, uint8 r, uint8 g, uint8 b, 35 | uint32 nColorBits, uint32 nLevel, 36 | uint32* pLeafCount, NODE** pReducibleNodes); 37 | NODE* CreateNode (uint32 nLevel, uint32 nColorBits, 38 | uint32* pLeafCount, NODE** pReducibleNodes); 39 | void ReduceTree (uint32 nColorBits, 40 | uint32* pLeafCount, NODE** pReducibleNodes); 41 | void DeleteTree (NODE** ppNode); 42 | void GetPaletteColors (NODE* pTree, RGBType* prgb, uint32* pIndex); 43 | 44 | protected: 45 | NODE* m_pTree; 46 | uint32 m_nLeafCount; 47 | NODE* m_pReducibleNodes[9]; 48 | uint32 m_nMaxColors; 49 | uint32 m_nColorBits; 50 | }; 51 | 52 | #endif // EmQuantizer_h 53 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmROMReader.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmROMReader.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmRPC.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1999-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRPC_h 15 | #define EmRPC_h 16 | 17 | #include "EmTypes.h" // ErrCode 18 | #include "HostControl.h" // HostSignal 19 | 20 | class SLP; 21 | class CSocket; 22 | 23 | #define slkSocketRPC (slkSocketFirstDynamic + 10) 24 | #define sysPktRPC2Cmd 0x70 25 | #define sysPktRPC2Rsp 0xF0 26 | 27 | class RPC 28 | { 29 | public: 30 | static void Startup (void); 31 | static void Shutdown (void); 32 | 33 | static void Idle (void); 34 | static void SignalWaiters (HostSignalType); 35 | 36 | static ErrCode HandleNewPacket (SLP&); 37 | 38 | static Bool HandlingPacket (void); 39 | static void DeferCurrentPacket (long timeout); 40 | 41 | private: 42 | static void EventCallback (CSocket* s, int event); 43 | static void CreateNewListener (void); 44 | }; 45 | 46 | #endif /* EmRPC_h */ 47 | 48 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmRefCounted.cpp: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #include "EmCommon.h" 15 | #include "EmRefCounted.h" 16 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmRegion.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmRegion.h -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmScreen.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmScreen_h 15 | #define EmScreen_h 16 | 17 | #include "EmPixMap.h" // EmPixMap 18 | 19 | class SessionFile; 20 | 21 | class EmScreenUpdateInfo 22 | { 23 | public: 24 | // Output parameters. Passed back to caller of 25 | // Screen::GetBits. fLCDOn is always valid. The 26 | // other fields are valid only if Screen::GetBits 27 | // returns true. 28 | 29 | EmPixMap fImage; // LCD image 30 | long fFirstLine; // First changed scanline 31 | long fLastLine; // Last changed scanline + 1 32 | long fLeftMargin; // If LCD is scrlled by some sub-byte amount, 33 | // this contains that amount. 34 | Bool fLCDOn; // True if LCD is on at all 35 | 36 | // Input parameters. Set by Screen::GetBits and 37 | // passed to EmHAL::GetLCDScanlines. 38 | 39 | emuptr fScreenLow; // First dirty byte 40 | emuptr fScreenHigh; // Last dirty byte 41 | }; 42 | 43 | class EmScreen 44 | { 45 | public: 46 | static void Initialize (void); 47 | static void Reset (void); 48 | static void Save (SessionFile&); 49 | static void Load (SessionFile&); 50 | static void Dispose (void); 51 | 52 | static void MarkDirty (emuptr address, uint32 size); 53 | static void InvalidateAll (void); 54 | 55 | static Bool GetBits (EmScreenUpdateInfo&); 56 | }; 57 | 58 | #endif // EmScreen_h 59 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmSession.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmSession.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmStream.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmStream.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmStream.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmStream.h -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmStreamFile.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmStreamFile.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmSubroutine.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmSubroutine.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmThreadSafeQueue.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmThreadSafeQueue.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmThreadSafeQueue.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmThreadSafeQueue_h 15 | #define EmThreadSafeQueue_h 16 | 17 | #include "omnithread.h" 18 | 19 | #include 20 | 21 | template 22 | class EmThreadSafeQueue 23 | { 24 | public: 25 | EmThreadSafeQueue (int maxSize = 0); 26 | ~EmThreadSafeQueue (void); 27 | 28 | void Put (const T&); 29 | T Get (void); 30 | T Peek (void); 31 | int GetUsed (void); 32 | int GetFree (void); 33 | Bool WaitForDataAvailable (long timeoutms); 34 | 35 | void Clear (void); 36 | int GetMaxSize (void); 37 | 38 | private: 39 | omni_mutex fMutex; 40 | #if HAS_OMNI_THREAD 41 | omni_condition fAvailable; 42 | #endif 43 | deque fContainer; 44 | int fMaxSize; 45 | }; 46 | 47 | typedef EmThreadSafeQueue EmByteQueue; 48 | 49 | #endif // EmThreadSafeQueue_h 50 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmTransport.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmTransport.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/EmWindow.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/EmWindow.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/ErrorHandling.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/ErrorHandling.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Gzip/crypt.h: -------------------------------------------------------------------------------- 1 | /* crypt.h (dummy version) -- do not perform encryption 2 | * Hardly worth copyrighting :-) 3 | */ 4 | 5 | #ifdef CRYPT 6 | # undef CRYPT /* dummy version */ 7 | #endif 8 | 9 | #define RAND_HEAD_LEN 12 /* length of encryption random header */ 10 | 11 | #define zencode 12 | #define zdecode 13 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Gzip/lzw.h: -------------------------------------------------------------------------------- 1 | /* lzw.h -- define the lzw functions. 2 | * Copyright (C) 1992-1993 Jean-loup Gailly. 3 | * This is free software; you can redistribute it and/or modify it under the 4 | * terms of the GNU General Public License, see the file COPYING. 5 | */ 6 | 7 | #if !defined(OF) && defined(lint) 8 | # include "gzip.h" 9 | #endif 10 | 11 | #ifndef BITS 12 | # define BITS 16 13 | #endif 14 | #define INIT_BITS 9 /* Initial number of bits per code */ 15 | 16 | #define LZW_MAGIC "\037\235" /* Magic header for lzw files, 1F 9D */ 17 | 18 | #define BIT_MASK 0x1f /* Mask for 'number of compression bits' */ 19 | /* Mask 0x20 is reserved to mean a fourth header byte, and 0x40 is free. 20 | * It's a pity that old uncompress does not check bit 0x20. That makes 21 | * extension of the format actually undesirable because old compress 22 | * would just crash on the new format instead of giving a meaningful 23 | * error message. It does check the number of bits, but it's more 24 | * helpful to say "unsupported format, get a new version" than 25 | * "can only handle 16 bits". 26 | */ 27 | 28 | #define BLOCK_MODE 0x80 29 | /* Block compression: if table is full and compression rate is dropping, 30 | * clear the dictionary. 31 | */ 32 | 33 | #define LZW_RESERVED 0x60 /* reserved bits */ 34 | 35 | #define CLEAR 256 /* flush the dictionary */ 36 | #define FIRST (CLEAR+1) /* first free entry */ 37 | 38 | extern int maxbits; /* max bits per code for LZW */ 39 | extern int block_mode; /* block compress mode -C compatible with 2.0 */ 40 | 41 | extern int lzw OF((int in, int out)); 42 | extern int unlzw OF((int in, int out)); 43 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Gzip/revision.h: -------------------------------------------------------------------------------- 1 | /* revision.h -- define the version number 2 | * Copyright (C) 1992-1993 Jean-loup Gailly. 3 | * This is free software; you can redistribute it and/or modify it under the 4 | * terms of the GNU General Public License, see the file COPYING. 5 | */ 6 | 7 | #define VERSION "1.2.4" 8 | #define PATCHLEVEL 0 9 | #define REVDATE "18 Aug 93" 10 | 11 | /* This version does not support compression into old compress format: */ 12 | #ifdef LZW 13 | # undef LZW 14 | #endif 15 | 16 | /* $Id: revision.h,v 0.25 1993/06/24 08:29:52 jloup Exp $ */ 17 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmBankDRAM.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmBankDRAM.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmBankDRAM.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1998-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmBankDRAM_h 15 | #define EmBankDRAM_h 16 | 17 | 18 | class SessionFile; 19 | 20 | class EmBankDRAM 21 | { 22 | public: 23 | static void Initialize (void); 24 | static void Reset (Bool hardwareReset); 25 | static void Save (SessionFile&); 26 | static void Load (SessionFile&); 27 | static void Dispose (void); 28 | 29 | static void SetBankHandlers (void); 30 | 31 | static uint32 GetLong (emuptr address); 32 | static uint32 GetWord (emuptr address); 33 | static uint32 GetByte (emuptr address); 34 | static void SetLong (emuptr address, uint32 value); 35 | static void SetWord (emuptr address, uint32 value); 36 | static void SetByte (emuptr address, uint32 value); 37 | static int ValidAddress (emuptr address, uint32 size); 38 | static uint8* GetRealAddress (emuptr address); 39 | static uint8* GetMetaAddress (emuptr address); 40 | static void AddOpcodeCycles (void); 41 | 42 | private: 43 | static void AddressError (emuptr address, long size, Bool forRead); 44 | static void InvalidAccess (emuptr address, long size, Bool forRead); 45 | static void ProbableCause (emuptr address, long size, Bool forRead); 46 | }; 47 | 48 | 49 | #endif /* EmBankDRAM_h */ 50 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmBankDummy.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmBankDummy.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmBankDummy.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1998-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmBankDummy_h 15 | #define EmBankDummy_h 16 | 17 | 18 | class SessionFile; 19 | 20 | class EmBankDummy 21 | { 22 | public: 23 | static void Initialize (void); 24 | static void Reset (Bool hardwareReset); 25 | static void Save (SessionFile&); 26 | static void Load (SessionFile&); 27 | static void Dispose (void); 28 | 29 | static void SetBankHandlers (void); 30 | 31 | static uint32 GetLong (emuptr address); 32 | static uint32 GetWord (emuptr address); 33 | static uint32 GetByte (emuptr address); 34 | static void SetLong (emuptr address, uint32 value); 35 | static void SetWord (emuptr address, uint32 value); 36 | static void SetByte (emuptr address, uint32 value); 37 | static int ValidAddress (emuptr address, uint32 size); 38 | static uint8* GetRealAddress (emuptr address); 39 | static uint8* GetMetaAddress (emuptr address); 40 | static void AddOpcodeCycles (void); 41 | 42 | private: 43 | static void InvalidAccess (emuptr address, long size, Bool forRead); 44 | }; 45 | 46 | 47 | #endif /* EmBankDummy_h */ 48 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmBankMapped.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmBankMapped.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmBankROM.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmBankROM.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmBankRegs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmBankRegs.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmBankSRAM.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmBankSRAM.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmCPU.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmCPU.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmCPU68K.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmCPU68K.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmCPUARM.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmCPUARM.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmHAL.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmHAL.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmMemory.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmMemory.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmMemory.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmMemory.h -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegs.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegs328.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegs328.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegs328PalmIII.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegs328PalmIII_h 15 | #define EmRegs328PalmIII_h 16 | 17 | #include "EmRegs328PalmPilot.h" // EmRegs328PalmPilot 18 | 19 | typedef EmRegs328PalmPilot EmRegs328PalmIII; 20 | 21 | #endif /* EmRegs328PalmIII_h */ 22 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegs328PalmPilot.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegs328PalmPilot.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegs328PalmPilot.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegs328PalmPilot_h 15 | #define EmRegs328PalmPilot_h 16 | 17 | #include "EmRegs328.h" // EmRegs328 18 | 19 | 20 | class EmRegs328PalmPilot : public EmRegs328 21 | { 22 | public: 23 | virtual Bool GetLCDScreenOn (void); 24 | virtual Bool GetLCDBacklightOn (void); 25 | virtual Bool GetLineDriverState (EmUARTDeviceType); 26 | 27 | virtual uint8 GetPortInputValue (int); 28 | }; 29 | 30 | #endif /* EmRegs328PalmPilot_h */ 31 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegs328PalmVII.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegs328PalmVII_h 15 | #define EmRegs328PalmVII_h 16 | 17 | #include "EmRegs328PalmPilot.h" // EmRegs328PalmPilot 18 | 19 | typedef EmRegs328PalmPilot EmRegs328PalmVII; 20 | 21 | #endif /* EmRegs328PalmVII_h */ 22 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegs328Pilot.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegs328Pilot_h 15 | #define EmRegs328Pilot_h 16 | 17 | #include "EmRegs328PalmPilot.h" // EmRegs328PalmPilot 18 | 19 | typedef EmRegs328PalmPilot EmRegs328Pilot; 20 | 21 | #endif /* EmRegs328Pilot_h */ 22 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegs328Prv.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegs328Prv_h 15 | #define EmRegs328Prv_h 16 | 17 | #include "EmRegsPrv.h" 18 | 19 | // Location and range of registers 20 | 21 | const uint32 kMemoryStart = 0xFFFFF000; 22 | const uint32 kMemorySize = sizeof (HwrM68328Type); 23 | 24 | 25 | // Macro to return the Dragonball address of the specified register 26 | 27 | #define addressof(x) (kMemoryStart + offsetof(HwrM68328Type, x)) 28 | 29 | 30 | // Macros for reading/writing Dragonball registers. 31 | 32 | #define READ_REGISTER(reg) \ 33 | _get_reg (&f68328Regs.reg) 34 | 35 | #define WRITE_REGISTER(reg, value) \ 36 | _put_reg (&f68328Regs.reg, value) 37 | 38 | 39 | // Macro for installing Dragonball register handlers 40 | 41 | #define INSTALL_HANDLER(read, write, reg) \ 42 | this->SetHandler ((ReadFunction) &EmRegs328::read, (WriteFunction) &EmRegs328::write, addressof (reg), sizeof (f68328Regs.reg)) 43 | 44 | 45 | #endif /* EmRegs328Prv_h */ 46 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegs328Symbol1700.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegs328Symbol1700.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegs328Symbol1700.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegs328Symbol1700_h 15 | #define EmRegs328Symbol1700_h 16 | 17 | #include "EmRegs328PalmPilot.h" // EmRegs328PalmPilot 18 | 19 | class EmRegs328Symbol1700 : public EmRegs328PalmPilot 20 | { 21 | public: 22 | virtual uint8 GetKeyBits (void); 23 | virtual uint16 ButtonToBits (SkinElementType); 24 | }; 25 | 26 | #endif /* EmRegs328Symbol1700_h */ 27 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsASICSymbol1700.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsASICSymbol1700.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsASICSymbol1700.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsASICSymbol1700_h 15 | #define EmRegsASICSymbol1700_h 16 | 17 | #include "EmPalmStructs.h" 18 | #include "EmRegs.h" 19 | 20 | class SessionFile; 21 | 22 | 23 | class EmRegsASICSymbol1700 : public EmRegs 24 | { 25 | public: 26 | EmRegsASICSymbol1700 (void); 27 | virtual ~EmRegsASICSymbol1700 (void); 28 | 29 | virtual void Initialize (void); 30 | virtual void Reset (Bool hardwareReset); 31 | virtual void Save (SessionFile&); 32 | virtual void Load (SessionFile&); 33 | virtual void Dispose (void); 34 | 35 | virtual void SetSubBankHandlers (void); 36 | virtual uint8* GetRealAddress (emuptr address); 37 | virtual emuptr GetAddressStart (void); 38 | virtual uint32 GetAddressRange (void); 39 | 40 | private: 41 | EmProxyHwrSymbolASICType fRegs; 42 | }; 43 | 44 | #endif /* EmRegsASICSymbol1700_h */ 45 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZ.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsEZ.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZPalmIIIc.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsEZPalmIIIc.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZPalmIIIc.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsEZPalmIIIc_h 15 | #define EmRegsEZPalmIIIc_h 16 | 17 | #include "EmRegsEZ.h" 18 | 19 | class EmScreenUpdateInfo; 20 | 21 | 22 | class EmRegsEZPalmIIIc : public EmRegsEZ 23 | { 24 | public: 25 | EmRegsEZPalmIIIc (void); 26 | virtual ~EmRegsEZPalmIIIc (void); 27 | 28 | virtual Bool GetLCDScreenOn (void); 29 | virtual Bool GetLCDBacklightOn (void); 30 | virtual Bool GetLCDHasFrame (void); 31 | virtual void GetLCDBeginEnd (emuptr&, emuptr&); 32 | virtual void GetLCDScanlines (EmScreenUpdateInfo& info); 33 | 34 | virtual Bool GetLineDriverState (EmUARTDeviceType type); 35 | 36 | virtual uint8 GetPortInputValue (int); 37 | virtual uint8 GetPortInternalValue (int); 38 | virtual void GetKeyInfo (int* numRows, int* numCols, 39 | uint16* keyMap, Bool* rows); 40 | 41 | protected: 42 | virtual EmSPISlave* GetSPISlave (void); 43 | 44 | private: 45 | EmSPISlave* fSPISlaveADC; 46 | }; 47 | 48 | #endif /* EmRegsEZPalmIIIc_h */ 49 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZPalmIIIe.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsEZPalmIIIe_h 15 | #define EmRegsEZPalmIIIe_h 16 | 17 | #include "EmRegsEZPalmV.h" 18 | 19 | typedef EmRegsEZPalmV EmRegsEZPalmIIIe; 20 | 21 | #endif /* EmRegsEZPalmIIIe_h */ 22 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZPalmIIIx.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsEZPalmIIIx_h 15 | #define EmRegsEZPalmIIIx_h 16 | 17 | #include "EmRegsEZPalmV.h" 18 | 19 | typedef EmRegsEZPalmV EmRegsEZPalmIIIx; 20 | 21 | #endif /* EmRegsEZPalmIIIx_h */ 22 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZPalmM100.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsEZPalmM100.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZPalmM100.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsEZm100_h 15 | #define EmRegsEZm100_h 16 | 17 | #include "EmRegsEZ.h" 18 | 19 | class EmRegsEZPalmM100 : public EmRegsEZ 20 | { 21 | public: 22 | EmRegsEZPalmM100 (void); 23 | virtual ~EmRegsEZPalmM100 (void); 24 | 25 | virtual Bool GetLCDScreenOn (void); 26 | virtual Bool GetLCDBacklightOn (void); 27 | virtual Bool GetLineDriverState (EmUARTDeviceType type); 28 | 29 | virtual uint8 GetPortInputValue (int); 30 | virtual uint8 GetPortInternalValue (int); 31 | virtual void GetKeyInfo (int* numRows, int* numCols, 32 | uint16* keyMap, Bool* rows); 33 | 34 | protected: 35 | virtual EmSPISlave* GetSPISlave (void); 36 | 37 | private: 38 | EmSPISlave* fSPISlaveADC; 39 | }; 40 | 41 | #endif /* EmRegsEZm100_h */ 42 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZPalmV.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsEZPalmV.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZPalmV.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsEZPalmV_h 15 | #define EmRegsEZPalmV_h 16 | 17 | #include "EmRegsEZ.h" 18 | 19 | 20 | class EmRegsEZPalmV : public EmRegsEZ 21 | { 22 | public: 23 | EmRegsEZPalmV (void); 24 | virtual ~EmRegsEZPalmV (void); 25 | 26 | virtual Bool GetLCDScreenOn (void); 27 | virtual Bool GetLCDBacklightOn (void); 28 | virtual Bool GetLineDriverState (EmUARTDeviceType type); 29 | 30 | virtual uint8 GetPortInputValue (int); 31 | virtual uint8 GetPortInternalValue (int); 32 | virtual void GetKeyInfo (int* numRows, int* numCols, 33 | uint16* keyMap, Bool* rows); 34 | 35 | protected: 36 | virtual EmSPISlave* GetSPISlave (void); 37 | 38 | private: 39 | EmSPISlave* fSPISlaveADC; 40 | }; 41 | 42 | #endif /* EmRegsEZPalmV_h */ 43 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZPalmVII.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsEZPalmVII.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZPalmVII.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsEZPalmVII_h 15 | #define EmRegsEZPalmVII_h 16 | 17 | #include "EmRegsEZPalmV.h" 18 | 19 | 20 | class EmRegsEZPalmVII : public EmRegsEZPalmV 21 | { 22 | public: 23 | virtual Bool GetLineDriverState (EmUARTDeviceType type); 24 | }; 25 | 26 | #endif /* EmRegsEZPalmVII_h */ 27 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZPalmVIIx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsEZPalmVIIx.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZPalmVIIx.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsEZPalmVIIx_h 15 | #define EmRegsEZPalmVIIx_h 16 | 17 | #include "EmRegsEZ.h" 18 | 19 | class EmRegsEZPalmVIIx : public EmRegsEZ 20 | { 21 | public: 22 | EmRegsEZPalmVIIx (void); 23 | virtual ~EmRegsEZPalmVIIx (void); 24 | 25 | virtual Bool GetLCDScreenOn (void); 26 | virtual Bool GetLCDBacklightOn (void); 27 | virtual Bool GetLineDriverState (EmUARTDeviceType type); 28 | 29 | virtual uint8 GetPortInputValue (int); 30 | virtual uint8 GetPortInternalValue (int); 31 | virtual void GetKeyInfo (int* numRows, int* numCols, 32 | uint16* keyMap, Bool* rows); 33 | 34 | protected: 35 | virtual EmSPISlave* GetSPISlave (void); 36 | 37 | private: 38 | EmSPISlave* fSPISlaveADC; 39 | }; 40 | 41 | #endif /* EmRegsEZPalmVIIx_h */ 42 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZPalmVx.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsEZPalmVx_h 15 | #define EmRegsEZPalmVx_h 16 | 17 | #include "EmRegsEZPalmV.h" 18 | 19 | typedef EmRegsEZPalmV EmRegsEZPalmVx; 20 | 21 | #endif /* EmRegsEZPalmVx_h */ 22 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZPrv.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsEZPrv_h 15 | #define EmRegsEZPrv_h 16 | 17 | #include "EmRegsPrv.h" 18 | 19 | // Location and range of registers 20 | 21 | const uint32 kMemoryStart = 0xFFFFF000; 22 | const uint32 kMemorySize = sizeof (HwrM68EZ328Type); 23 | 24 | 25 | // Macro to return the DragonballEZ address of the specified register 26 | 27 | #define addressof(x) (kMemoryStart + offsetof(HwrM68EZ328Type, x)) 28 | 29 | 30 | // Macros for reading/writing DragonballEZ registers. 31 | 32 | #define READ_REGISTER(reg) \ 33 | _get_reg (&f68EZ328Regs.reg) 34 | 35 | #define WRITE_REGISTER(reg, value) \ 36 | _put_reg (&f68EZ328Regs.reg, value) 37 | 38 | 39 | // Macro for installing DragonballEZ register handlers 40 | 41 | #define INSTALL_HANDLER(read, write, reg) \ 42 | this->SetHandler ((ReadFunction) &EmRegsEZ::read, (WriteFunction) &EmRegsEZ::write, addressof (reg), sizeof (f68EZ328Regs.reg)) 43 | 44 | 45 | #endif /* EmRegsEZPrv_h */ 46 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZTRGpro.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsEZTRGpro.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZTemp.cpp: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #include "EmCommon.h" 15 | #include "EmRegsEZTemp.h" 16 | #include "EmRegsEZPrv.h" 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZTemp.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsEZTemp_h 15 | #define EmRegsEZTemp_h 16 | 17 | 18 | #endif /* EmRegsEZTemp_h */ 19 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsEZVisor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsEZVisor.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsFrameBuffer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsFrameBuffer.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsFrameBuffer.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsFrameBuffer_h 15 | #define EmRegsFrameBuffer_h 16 | 17 | #include "EmRegs.h" 18 | 19 | class SessionFile; 20 | 21 | 22 | class EmRegsFrameBuffer : public EmRegs 23 | { 24 | public: 25 | EmRegsFrameBuffer (emuptr baseAddr, int32 size); 26 | virtual ~EmRegsFrameBuffer (void); 27 | 28 | virtual void Initialize (void); 29 | virtual void Reset (Bool hardwareReset); 30 | virtual void Save (SessionFile&); 31 | virtual void Load (SessionFile&); 32 | virtual void Dispose (void); 33 | 34 | virtual uint32 GetLong (emuptr address); 35 | virtual uint32 GetWord (emuptr address); 36 | virtual uint32 GetByte (emuptr address); 37 | virtual void SetLong (emuptr address, uint32 value); 38 | virtual void SetWord (emuptr address, uint32 value); 39 | virtual void SetByte (emuptr address, uint32 value); 40 | virtual int ValidAddress (emuptr address, uint32 size); 41 | virtual void SetSubBankHandlers (void); 42 | virtual uint8* GetRealAddress (emuptr address); 43 | virtual emuptr GetAddressStart (void); 44 | virtual uint32 GetAddressRange (void); 45 | 46 | private: 47 | emuptr fBaseAddr; 48 | int32 fSize; 49 | void* fVideoMem; 50 | }; 51 | 52 | #endif /* EmRegsFrameBuffer_h */ 53 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsMediaQ11xx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsMediaQ11xx.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsPLDPalmVIIEZ.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsPLDPalmVIIEZ.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsPLDPalmVIIEZ.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsPLDPalmVIIEZ_h 15 | #define EmRegsPLDPalmVIIEZ_h 16 | 17 | #include "EmHAL.h" // EmHALHandler 18 | #include "EmPalmStructs.h" // EmProxyHwrJerryPLDType 19 | #include "EmRegs.h" // EmRegs 20 | 21 | class SessionFile; 22 | 23 | 24 | class EmRegsPLDPalmVIIEZ : public EmRegs, public EmHALHandler 25 | { 26 | public: 27 | EmRegsPLDPalmVIIEZ (void); 28 | virtual ~EmRegsPLDPalmVIIEZ (void); 29 | 30 | virtual void Initialize (void); 31 | virtual void Reset (Bool hardwareReset); 32 | virtual void Save (SessionFile&); 33 | virtual void Load (SessionFile&); 34 | virtual void Dispose (void); 35 | 36 | virtual Bool GetSerialPortOn (int uartNum); 37 | 38 | virtual void SetSubBankHandlers (void); 39 | virtual uint8* GetRealAddress (emuptr address); 40 | virtual emuptr GetAddressStart (void); 41 | virtual uint32 GetAddressRange (void); 42 | 43 | protected: 44 | void rs232ShdnWrite (emuptr address, int size, uint32 value); 45 | uint32 iXtrnl2Read (emuptr address, int size); 46 | 47 | private: 48 | EmProxyHwrJerryPLDType fRegs; 49 | }; 50 | 51 | #endif /* EmRegsPLDPalmVIIEZ_h */ 52 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsPrv.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsPrv_h 15 | #define EmRegsPrv_h 16 | 17 | #include "EmMemory.h" // EmMemDoGet8, EmMemDoPut8, etc. 18 | 19 | // Inline functions for reading/writing registers. 20 | 21 | inline int8 _get_reg (int8* a) { return EmMemDoGet8 (a); } 22 | inline int16 _get_reg (int16* a) { return EmMemDoGet16 (a); } 23 | inline int32 _get_reg (int32* a) { return EmMemDoGet32 (a); } 24 | 25 | inline uint8 _get_reg (uint8* a) { return EmMemDoGet8 (a); } 26 | inline uint16 _get_reg (uint16* a) { return EmMemDoGet16 (a); } 27 | inline uint32 _get_reg (uint32* a) { return EmMemDoGet32 (a); } 28 | 29 | inline void _put_reg (int8* a, int8 v) { EmMemDoPut8 (a, v); } 30 | inline void _put_reg (int16* a, int16 v) { EmMemDoPut16 (a, v); } 31 | inline void _put_reg (int32* a, int32 v) { EmMemDoPut32 (a, v); } 32 | 33 | inline void _put_reg (uint8* a, uint8 v) { EmMemDoPut8 (a, v); } 34 | inline void _put_reg (uint16* a, uint16 v) { EmMemDoPut16 (a, v); } 35 | inline void _put_reg (uint32* a, uint32 v) { EmMemDoPut32 (a, v); } 36 | 37 | #endif // EmRegsPrv_h 38 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsSED1375.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsSED1375.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsSED1376.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsSED1376.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsSZ.cpp: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #include "EmCommon.h" 15 | #include "EmRegsSZ.h" 16 | #include "EmRegsSZPrv.h" 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsSZ.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsSZ_h 15 | #define EmRegsSZ_h 16 | 17 | 18 | #endif /* EmRegsSZ_h */ 19 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsSZPrv.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsSZPrv_h 15 | #define EmRegsSZPrv_h 16 | 17 | 18 | 19 | #endif /* EmRegsSZPrv_h */ 20 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsSZTemp.cpp: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #include "EmCommon.h" 15 | #include "EmRegsSZTemp.h" 16 | #include "EmRegsSZPrv.h" 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsSZTemp.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsSZTemp_h 15 | #define EmRegsSZTemp_h 16 | 17 | #include "EmRegsSZ.h" 18 | 19 | 20 | #endif /* EmRegsSZTemp_h */ 21 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsUSBPhilipsPDIUSBD12.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsUSBPhilipsPDIUSBD12.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsUSBPhilipsPDIUSBD12.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsUSBPhilipsPDIUSBD12_h 15 | #define EmRegsUSBPhilipsPDIUSBD12_h 16 | 17 | #include "EmRegs.h" 18 | #include "EmPalmStructs.h" // EmProxyUsbHwrType 19 | 20 | class EmRegsUSBPhilipsPDIUSBD12 : public EmRegs 21 | { 22 | public: 23 | EmRegsUSBPhilipsPDIUSBD12 (emuptr); 24 | virtual ~EmRegsUSBPhilipsPDIUSBD12 (void); 25 | 26 | virtual void Initialize (void); 27 | virtual void Reset (Bool hardwareReset); 28 | virtual void Save (SessionFile&); 29 | virtual void Load (SessionFile&); 30 | virtual void Dispose (void); 31 | 32 | virtual void SetSubBankHandlers (void); 33 | virtual uint8* GetRealAddress (emuptr address); 34 | virtual emuptr GetAddressStart (void); 35 | virtual uint32 GetAddressRange (void); 36 | 37 | private: 38 | emuptr fBaseAddr; 39 | EmProxyUsbHwrType fRegs; 40 | }; 41 | 42 | #endif /* EmRegsUSBPhilipsPDIUSBD12_h */ 43 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsUSBVisor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsUSBVisor.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsUSBVisor.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsUSBVisor_h 15 | #define EmRegsUSBVisor_h 16 | 17 | #include "EmPalmStructs.h" 18 | #include "EmRegs.h" 19 | 20 | class SessionFile; 21 | 22 | 23 | class EmRegsUSBVisor : public EmRegs 24 | { 25 | public: 26 | EmRegsUSBVisor (void); 27 | virtual ~EmRegsUSBVisor (void); 28 | 29 | virtual void Initialize (void); 30 | virtual void Reset (Bool hardwareReset); 31 | virtual void Save (SessionFile&); 32 | virtual void Load (SessionFile&); 33 | virtual void Dispose (void); 34 | 35 | virtual void SetSubBankHandlers (void); 36 | virtual uint8* GetRealAddress (emuptr address); 37 | virtual emuptr GetAddressStart (void); 38 | virtual uint32 GetAddressRange (void); 39 | 40 | private: 41 | EmProxyUsbHwrType fRegs; 42 | }; 43 | 44 | #endif /* EmRegsUSBVisor_h */ 45 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsVZ.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsVZ.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsVZHandEra330.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsVZHandEra330.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsVZPalmM500.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsVZPalmM500.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsVZPalmM500.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsVZPalmM500_h 15 | #define EmRegsVZPalmM500_h 16 | 17 | #include "EmRegsVZ.h" 18 | 19 | class EmRegsVZPalmM500 : public EmRegsVZ 20 | { 21 | public: 22 | EmRegsVZPalmM500 (void); 23 | virtual ~EmRegsVZPalmM500 (void); 24 | 25 | virtual Bool GetLCDScreenOn (void); 26 | virtual Bool GetLCDBacklightOn (void); 27 | virtual Bool GetLineDriverState (EmUARTDeviceType type); 28 | virtual EmUARTDeviceType GetUARTDevice (int uartNum); 29 | virtual Bool GetVibrateOn (void); 30 | virtual uint16 GetLEDState (void); 31 | 32 | virtual uint8 GetPortInputValue (int); 33 | virtual uint8 GetPortInternalValue (int); 34 | virtual void GetKeyInfo (int* numRows, int* numCols, 35 | uint16* keyMap, Bool* rows); 36 | 37 | protected: 38 | virtual EmSPISlave* GetSPISlave (void); 39 | 40 | private: 41 | EmSPISlave* fSPISlaveADC; 42 | }; 43 | 44 | #endif /* EmRegsVZPalmM500_h */ 45 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsVZPalmM505.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsVZPalmM505.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsVZPalmM505.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsVZPalmM505_h 15 | #define EmRegsVZPalmM505_h 16 | 17 | #include "EmRegsVZPalmM500.h" 18 | 19 | class EmRegsVZPalmM505 : public EmRegsVZPalmM500 20 | { 21 | public: 22 | EmRegsVZPalmM505 (void); 23 | virtual ~EmRegsVZPalmM505 (void); 24 | 25 | virtual void SetSubBankHandlers (void); 26 | 27 | virtual Bool GetLCDScreenOn (void); 28 | virtual Bool GetLCDBacklightOn (void); 29 | virtual Bool GetLCDHasFrame (void); 30 | virtual void GetLCDBeginEnd (emuptr& begin, emuptr& end); 31 | virtual void GetLCDScanlines (EmScreenUpdateInfo& info); 32 | 33 | void portFSelectWrite (emuptr address, int size, uint32 value); 34 | }; 35 | 36 | #endif /* EmRegsVZPalmM505_h */ 37 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsVZPrv.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsVZPrv_h 15 | #define EmRegsVZPrv_h 16 | 17 | #include "EmRegsPrv.h" 18 | 19 | // Location and range of registers 20 | 21 | const uint32 kMemoryStart = 0xFFFFF000; 22 | const uint32 kMemorySize = sizeof (HwrM68VZ328Type); 23 | 24 | 25 | // Macro to return the DragonballVZ address of the specified register 26 | 27 | #define addressof(x) (kMemoryStart + offsetof(HwrM68VZ328Type, x)) 28 | 29 | 30 | // Macros for reading/writing DragonballVZ registers. 31 | 32 | #define READ_REGISTER(reg) \ 33 | _get_reg (&f68VZ328Regs.reg) 34 | 35 | #define WRITE_REGISTER(reg, value) \ 36 | _put_reg (&f68VZ328Regs.reg, value) 37 | 38 | 39 | // Macro for installing DragonballVZ register handlers 40 | 41 | #define INSTALL_HANDLER(read, write, reg) \ 42 | this->SetHandler ((ReadFunction) &EmRegsVZ::read, (WriteFunction) &EmRegsVZ::write, addressof (reg), sizeof (f68VZ328Regs.reg)) 43 | 44 | 45 | #endif /* EmRegsVZPrv_h */ 46 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsVZTemp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsVZTemp.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsVZVisorEdge.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsVZVisorEdge.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsVZVisorEdge.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsVZVisorVisorEdge_h 15 | #define EmRegsVZVisorVisorEdge_h 16 | 17 | #include "EmRegsVZ.h" 18 | #include "EmRegsVZVisorPlatinum.h" 19 | 20 | class EmRegsVZVisorEdge: public EmRegsVZVisorPlatinum 21 | { 22 | public: 23 | virtual Bool GetLCDScreenOn (void); 24 | virtual Bool GetLCDBacklightOn (void); 25 | virtual void GetKeyInfo (int* numRows, int* numCols, 26 | uint16* keyMap, Bool* rows); 27 | 28 | }; 29 | 30 | #endif /* EmRegsVZVisorVisorEdge_h */ 31 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsVZVisorPlatinum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsVZVisorPlatinum.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsVZVisorPlatinum.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsVZVisorPlatinum_h 15 | #define EmRegsVZVisorPlatinum_h 16 | 17 | #include "EmRegsVZ.h" 18 | 19 | 20 | class EmRegsVZVisorPlatinum : public EmRegsVZ 21 | { 22 | public: 23 | EmRegsVZVisorPlatinum (); 24 | ~EmRegsVZVisorPlatinum (); 25 | 26 | virtual Bool GetLCDScreenOn (void); 27 | virtual Bool GetLCDBacklightOn (void); 28 | virtual Bool GetLineDriverState (EmUARTDeviceType type); 29 | virtual EmUARTDeviceType GetUARTDevice (int uartNum); 30 | 31 | virtual uint8 GetPortInputValue (int); 32 | virtual uint8 GetPortInternalValue (int); 33 | virtual void GetKeyInfo (int* numRows, int* numCols, 34 | uint16* keyMap, Bool* rows); 35 | 36 | protected: 37 | virtual EmSPISlave* GetSPISlave (void); 38 | 39 | private: 40 | EmSPISlave* fSPISlaveADC; 41 | }; 42 | 43 | #endif /* EmRegsVZVisorPlatinum_h */ 44 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsVZVisorPrism.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmRegsVZVisorPrism.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmRegsVZVisorPrism.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmRegsVZVisorPrism_h 15 | #define EmRegsVZVisorPrism_h 16 | 17 | #include "EmRegsVZ.h" 18 | 19 | 20 | class EmRegsVZVisorPrism : public EmRegsVZ 21 | { 22 | public: 23 | virtual Bool GetLCDScreenOn (void); 24 | virtual Bool GetLCDBacklightOn (void); 25 | virtual Bool GetLCDHasFrame (void); 26 | virtual void GetLCDBeginEnd (emuptr& begin, emuptr& end); 27 | virtual void GetLCDScanlines (EmScreenUpdateInfo& info); 28 | virtual Bool GetLineDriverState (EmUARTDeviceType type); 29 | virtual EmUARTDeviceType GetUARTDevice (int uartNum); 30 | 31 | virtual uint8 GetPortInputValue (int); 32 | virtual uint8 GetPortInternalValue (int); 33 | virtual void GetKeyInfo (int* numRows, int* numCols, 34 | uint16* keyMap, Bool* rows); 35 | }; 36 | 37 | #endif /* EmRegsVZVisorPrism_h */ 38 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmSPISlave.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmSPISlave.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmSPISlave.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmSPISlave_h 15 | #define EmSPISlave_h 16 | 17 | class EmSPISlave 18 | { 19 | public: 20 | EmSPISlave (void); 21 | virtual ~EmSPISlave (void); 22 | 23 | virtual uint16 DoExchange (uint16 control, uint16 data) = 0; 24 | virtual void Enable (void); 25 | virtual void Disable (void); 26 | }; 27 | 28 | #endif // EmSPISlave_h 29 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmSPISlaveADS784x.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/EmSPISlaveADS784x.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/EmUAEGlue.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1999-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmUAEGlue_h 15 | #define EmUAEGlue_h 16 | 17 | #endif /* EmUAEGlue_h */ 18 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/TRG/EmHandEra330Defs.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | #ifndef EmHandEra330Defs_h 14 | #define EmHandEra330Defs_h 15 | 16 | #include "EmHandEraCFBus.h" 17 | #include "EmHandEraSDBus.h" 18 | 19 | #define HE330_NUM_KEY_ROWS 4 20 | 21 | typedef struct { 22 | uint16 Row[HE330_NUM_KEY_ROWS]; 23 | } HandEra330Keys; 24 | 25 | typedef struct { 26 | HandEra330Keys Keys; 27 | CFBusManager CFBus; 28 | SDBusManager SDBus; 29 | Bool LCDOn; 30 | Bool BacklightOn; 31 | Bool IRPortOn; 32 | Bool SenseCurrent; 33 | Bool pendingIRQ2; 34 | Bool CFInserted; 35 | Bool SDInserted; 36 | Bool PowerConnected; 37 | Bool SDChipSelect; 38 | } HandEra330PortManager; 39 | 40 | #endif // EmHandEra330Defs_h 41 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/TRG/EmHandEraCFBus.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmHandEraCFBus_h 15 | #define EmHandEraCFBus_h 16 | 17 | enum CFBusWidth { 18 | kCFBusWidth8, 19 | kCFBusWidth16 20 | }; 21 | 22 | typedef struct { 23 | int bEnabled; 24 | enum CFBusWidth Width; 25 | int bSwapped; 26 | } CFBusManager; 27 | 28 | #endif // EmHandEraBusDefs_h 29 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/TRG/EmHandEraSDBus.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmHandEraSDBus_h 15 | #define EmHandEraSDBus_h 16 | 17 | typedef struct { 18 | int bEnabled; 19 | int bSwapped; 20 | } SDBusManager; 21 | 22 | #endif // EmHandEraBusDefs_h 23 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/TRG/EmRegs330CPLD.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/TRG/EmRegs330CPLD.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/TRG/EmSPISlave330Current.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/TRG/EmSPISlave330Current.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/TRG/EmSPISlave330Current.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmSPISlave330Current_h 15 | #define EmSPISlave330Current_h 16 | 17 | #include "EmSPISlave.h" // EmSPISlave 18 | 19 | #define kChannelBits 0x70 20 | 21 | /*-------------------------------------------------------------------- 22 | * HandEra 330 has an analog switch which switches between voltage and 23 | * current sense on channel 2. Need to cobble together something so 24 | * it can sense some battery current and not think we are always on 25 | * external power. 26 | *-------------------------------------------------------------------*/ 27 | class EmSPISlave330Current : public EmSPISlave 28 | { 29 | public: 30 | EmSPISlave330Current (); 31 | virtual ~EmSPISlave330Current (void); 32 | 33 | virtual uint16 DoExchange (uint16 control, uint16 data); 34 | void SetMode (Bool powerConnected) { fPowerConnected = powerConnected; } 35 | 36 | protected: 37 | void ProcessCommand (uint8); 38 | void LoadPendingConversion (void); 39 | 40 | private: 41 | uint32 fBitBufferIn; 42 | uint16 fBitBufferOut; 43 | int fNumBitsIn; 44 | uint16 fPendingResult; 45 | Bool fHavePending; 46 | int fCommandBitsSeen; 47 | 48 | Bool fPowerConnected; 49 | }; 50 | 51 | #endif -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/TRG/EmTRG.cpp: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #include "EmCommon.h" 15 | #include "EmTRG.h" 16 | 17 | #include "EmBankRegs.h" 18 | #include "EmRegsEZTRGpro.h" 19 | #include "EmRegs330CPLD.h" 20 | #include "EmRegsVZHandEra330.h" 21 | #include "EmHandEraCFBus.h" 22 | #include "EmHandEraSDBus.h" 23 | #include "EmTRGCF.h" 24 | #include "EmTRGSD.h" 25 | 26 | 27 | /*********************************************************************** 28 | * 29 | * FUNCTION: OEMCreateTRGRegObjs 30 | * 31 | * DESCRIPTION: This function is called by EmDevice::CreateRegs for TRG 32 | * devices 33 | * 34 | * PARAMETERS: 'fHardwareSubID' specifies the device 35 | * 36 | * RETURNED: None 37 | * 38 | ***********************************************************************/ 39 | void OEMCreateTRGRegObjs(long hardwareSubID) 40 | { 41 | CFBusManager * fCFBus; 42 | HandEra330PortManager * fPortMgr; 43 | 44 | switch (hardwareSubID) 45 | { 46 | case hwrTRGproID : 47 | default : 48 | EmBankRegs::AddSubBank (new EmRegsEZTRGpro(&fCFBus)); 49 | EmBankRegs::AddSubBank (new EmRegsCFMemCard(fCFBus)); 50 | break; 51 | case hwrTRGproID + 1 : 52 | EmBankRegs::AddSubBank (new EmRegsVZHandEra330(&fPortMgr)); 53 | EmBankRegs::AddSubBank (new EmRegs330CPLD(fPortMgr)); 54 | EmBankRegs::AddSubBank (new EmRegsCFMemCard(&fPortMgr->CFBus)); 55 | break; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/TRG/EmTRG.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmTRG_h 15 | #define EmTRG_h 16 | 17 | #define TRGPRO_MANUF "TRG Products" 18 | #define hwrOEMDeviceIDTRGpro 1 19 | #define hwrTRGproID 0 20 | 21 | void OEMCreateTRGRegObjs(long hardwareSubID); 22 | 23 | #endif // EmTRG_h 24 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/TRG/EmTRGATA.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/TRG/EmTRGATA.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/TRG/EmTRGCF.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/TRG/EmTRGCF.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/TRG/EmTRGCF.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmTRGCF_h 15 | #define EmTRGCF_h 16 | 17 | #include "EmRegs.h" 18 | #include "EmTRGCFDefs.h" 19 | #include "EmTRGATA.h" 20 | #include "EmTRGCFMem.h" 21 | 22 | class EmRegsCFMemCard : public EmRegs 23 | { 24 | public: 25 | EmRegsCFMemCard (CFBusManager * fCFBusManager); 26 | virtual ~EmRegsCFMemCard (void); 27 | 28 | // EmRegs overrides 29 | virtual void Initialize (void); 30 | virtual void Reset (Bool hardwareReset); 31 | virtual void Save (SessionFile&); 32 | virtual void Load (SessionFile&); 33 | virtual void Dispose (void); 34 | 35 | uint8* GetRealAddress (emuptr address); 36 | void SetSubBankHandlers (void); 37 | emuptr GetAddressStart (void); 38 | uint32 GetAddressRange (void); 39 | 40 | uint32 GetLong (emuptr iAddress); 41 | uint32 GetWord (emuptr iAddress); 42 | uint32 GetByte (emuptr iAddress); 43 | void SetLong (emuptr iAddress, uint32 iLongValue); 44 | void SetWord (emuptr iAddress, uint32 iWordValue); 45 | void SetByte (emuptr iAddress, uint32 iByteValue); 46 | private: 47 | uint8 Buffer[kMemorySizeCF]; 48 | uint32 Read (emuptr address, int size); 49 | void Write (emuptr address, int size, uint32 value); 50 | EmDiskTypeID DiskTypeID; 51 | EmRegsCFAta Ata; 52 | EmRegsCFTuple Tuple; 53 | EmRegsCFConfig Config; 54 | EmRegsCFReset CFReset; 55 | CFBusManager * fBusMgr; 56 | }; 57 | 58 | #endif /* EmTRGCF_h */ 59 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/TRG/EmTRGCFIO.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/TRG/EmTRGCFIO.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/TRG/EmTRGCFMem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/TRG/EmTRGCFMem.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/TRG/EmTRGDiskIO.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmTRGDiskIO_h 15 | #define EmTRGDiskIO_h 16 | 17 | /************************************************************************ 18 | * This class handles the generic low level disk access. 19 | ************************************************************************/ 20 | #include "EmTRGCFDefs.h" 21 | #include "EmTRGDiskType.h" 22 | 23 | #define UNKNOWN_DRIVE 0 24 | #define CF_DRIVE 1 25 | #define SD_DRIVE 2 26 | 27 | #define SECTOR_SIZE 512 28 | 29 | class EmTRGDiskIO 30 | { 31 | private: 32 | int m_driveNo; 33 | EmDiskTypeID m_diskTypeID; 34 | EmCurrDiskType m_currDisk; 35 | 36 | int Format(void); 37 | char *GetFilePath(int driveNo); 38 | 39 | int Read(uint32 sectorNum, void *buffer); 40 | int Write(uint32 sectorNum, void *buffer); 41 | 42 | public: 43 | EmTRGDiskIO(void); 44 | ~EmTRGDiskIO(); 45 | 46 | void Initialize(EmDiskTypeID DiskTypeID, int driveNo); 47 | void Dispose(void); 48 | 49 | int ReadSector(uint32 sectorNum, void *buffer); 50 | int WriteSector(uint32 sectorNum, void *buffer); 51 | }; 52 | 53 | #endif /* EmTRGDiskIO_h */ 54 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/TRG/EmTRGDiskType.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/TRG/EmTRGDiskType.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/TRG/EmTRGDiskType.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef EmTRGDiskType_h 15 | #define EmTRGDiskType_h 16 | 17 | #include "EmTRGCFDefs.h" 18 | 19 | class EmDiskType 20 | { 21 | public: 22 | EmDiskType (void); 23 | virtual ~EmDiskType (void); 24 | 25 | EmSector * GetTuple(void); 26 | uint8 * GetSD_CSD(void); 27 | uint8 * GetSD_CID(void); 28 | EmSector * GetDriveID(void); 29 | EmSector * GetEmptySector(void); 30 | 31 | }; 32 | 33 | class EmGeneric8MB : public EmDiskType 34 | { 35 | public: 36 | EmGeneric8MB(void); 37 | virtual ~EmGeneric8MB(void); 38 | 39 | EmSector * GetTuple(void); 40 | uint8 * GetSD_CSD(void); 41 | uint8 * GetSD_CID(void); 42 | EmSector * GetDriveID(void); 43 | uint32 GetNumSectors(void); 44 | EmSector * GetSector(LogicalBlockAddr lba); 45 | }; 46 | 47 | class EmCurrDiskType 48 | { 49 | private: 50 | EmDiskType UnknownDisk; 51 | EmGeneric8MB Generic8MB; 52 | 53 | public: 54 | EmCurrDiskType (void); 55 | virtual ~EmCurrDiskType (void); 56 | 57 | void GetTuple(EmDiskTypeID ID, EmSector * s); 58 | uint8 * GetSD_CSD(EmDiskTypeID ID); 59 | uint8 * GetSD_CID(EmDiskTypeID ID); 60 | void GetDriveID(EmDiskTypeID ID, EmSector * s); 61 | uint32 GetNumSectors(EmDiskTypeID ID); 62 | void GetSector(EmDiskTypeID ID, LogicalBlockAddr lba, EmSector * s); 63 | }; 64 | 65 | #endif /* EmTRGDiskType_h */ 66 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/TRG/EmTRGSD.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hardware/TRG/EmTRGSD.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hardware/TRG/EmTRGSD.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | #ifndef _EmTRGSD_h_ 14 | #define _EmTRGSD_h_ 15 | 16 | #include "EmTRGDiskIO.h" 17 | 18 | /************************************************************************ 19 | * This class handles the SPI SD controller interface used in the 20 | * HandEra 330. 21 | ************************************************************************/ 22 | 23 | 24 | typedef enum 25 | { 26 | sdBusGetCmdState, 27 | sdBusSendResponseState, 28 | sdBusGetDataState, 29 | sdBusSendDataState 30 | } sdBusStateType; 31 | 32 | 33 | class EmTRGSD 34 | { 35 | private: 36 | uint8 cmdBuffer[6]; 37 | int cmdIndex; 38 | uint8 responseBuffer[2]; 39 | int responseIndex; 40 | int responseSize; 41 | uint8 dataBuffer[520]; 42 | int dataIndex; 43 | int dataSize; 44 | uint32 sectorNum; 45 | sdBusStateType sdBusState; 46 | sdBusStateType sdBusNextState; // next state after sending response 47 | 48 | EmTRGDiskIO DiskIO; 49 | EmCurrDiskType m_currDisk; 50 | 51 | void ProcessCommand(void); 52 | void CompleteCommand(void); 53 | 54 | public : 55 | EmTRGSD(); 56 | ~EmTRGSD(); 57 | 58 | void Initialize(void); 59 | void Dispose(void); 60 | 61 | void ExchangeBits(uint16 txData, uint16 *rxData, uint16 Bits); 62 | }; 63 | 64 | #endif -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Hordes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Hordes.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/HostControl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/HostControl.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/HostControlPrv.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1998-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef _HOSTCONTROLPRV_H_ 15 | #define _HOSTCONTROLPRV_H_ 16 | 17 | #include "EmPatchIf.h" // CallROMType 18 | 19 | class SessionFile; 20 | 21 | CallROMType HandleHostControlCall (void); 22 | 23 | class Host 24 | { 25 | public: 26 | 27 | static void Initialize (void); 28 | static void Reset (void); 29 | static void Save (SessionFile&); 30 | static void Load (SessionFile&); 31 | static void Dispose (void); 32 | }; 33 | 34 | #endif /* _HOSTCONTROLPRV_H_ */ 35 | 36 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/LoadApplication.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/LoadApplication.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/LoadApplication.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1998-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef _LOADAPPLICATION_H_ 15 | #define _LOADAPPLICATION_H_ 16 | 17 | class EmStreamFile; 18 | 19 | void SavePalmFile (EmStreamFile& applicationFile, UInt16 cardNo, const char* databaseName); 20 | 21 | #endif /* _LOADAPPLICATION_H_ */ 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Logging.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Logging.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/MetaMemory.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/MetaMemory.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/MetaMemory.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/MetaMemory.h -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Miscellaneous.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Miscellaneous.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Palm/Platform/Core/System/IncsPrv/DebugPrv.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Palm/Platform/Core/System/IncsPrv/DebugPrv.h -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Palm/Platform/Incs/Core/Hardware/HAL.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Palm/Platform/Incs/Core/Hardware/HAL.h -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Palm/Platform/Incs/Core/System/Bitmap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Palm/Platform/Incs/Core/System/Bitmap.h -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Palm/Platform/Incs/Core/System/Crc.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright (c) 1995-1999 Palm Computing, Inc. or its subsidiaries. 4 | * All rights reserved. 5 | * 6 | * File: Crc.h 7 | * 8 | * Description: 9 | * This is the header file for the CRC calculation routines for Pilot. 10 | * 11 | * History: 12 | * May 10, 1995 Created by Vitaly Kruglikov 13 | * 05/10/95 vmk Created by Vitaly Kruglikov. 14 | * 09/10/99 kwk Crc16CalcBlock takes a const void *. 15 | * 16 | *****************************************************************************/ 17 | 18 | #ifndef __CRC_H__ 19 | #define __CRC_H__ 20 | 21 | 22 | // Include elementary types 23 | #include 24 | #include 25 | 26 | 27 | 28 | 29 | /******************************************************************** 30 | * CRC Calculation Routines 31 | * These are define as external calls only under emulation mode or 32 | * under native mode from the module that actually installs the trap 33 | * vectors 34 | ********************************************************************/ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | 40 | 41 | 42 | //------------------------------------------------------------------- 43 | // API 44 | //------------------------------------------------------------------- 45 | 46 | 47 | // Crc16CalcBlock() 48 | // 49 | // Calculate the 16-bit CRC of a data block using the table lookup method. 50 | // 51 | UInt16 Crc16CalcBlock(const void *bufP, UInt16 count, UInt16 crc) 52 | SYS_TRAP(sysTrapCrc16CalcBlock); 53 | 54 | UInt16 Crc16CalcBigBlock(void *bufP, UInt32 count, UInt16 crc); 55 | 56 | 57 | #ifdef __cplusplus 58 | } 59 | #endif 60 | 61 | 62 | 63 | #endif // __CRC_H__ 64 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Palm/Platform/Incs/Core/System/Localize.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright (c) 1996-1999 Palm Computing, Inc. or its subsidiaries. 4 | * All rights reserved. 5 | * 6 | * File: Localize.h 7 | * 8 | * Description: 9 | * Functions to localize data. 10 | * 11 | * History: 12 | * 8/28/96 Roger - Initial version 13 | * 14 | *****************************************************************************/ 15 | 16 | #ifndef __LOCALIZE_H__ 17 | #define __LOCALIZE_H__ 18 | 19 | 20 | // Include elementary types 21 | #include // Basic types 22 | #include // Trap Numbers. 23 | 24 | // The number format (thousands separator and decimal point). This defines 25 | // how numbers are formatted and not neccessarily currency numbers (i.e. Switzerland). 26 | typedef enum { 27 | nfCommaPeriod, 28 | nfPeriodComma, 29 | nfSpaceComma, 30 | nfApostrophePeriod, 31 | nfApostropheComma 32 | } NumberFormatType; 33 | 34 | 35 | 36 | #ifdef REMOVE_FOR_EMULATOR 37 | #ifdef __cplusplus 38 | extern "C" { 39 | #endif 40 | 41 | 42 | void LocGetNumberSeparators(NumberFormatType numberFormat, 43 | Char *thousandSeparator, Char *decimalSeparator) 44 | SYS_TRAP(sysTrapLocGetNumberSeparators); 45 | 46 | 47 | 48 | #ifdef __cplusplus 49 | } 50 | #endif 51 | #endif 52 | 53 | 54 | #endif // __LOCALIZE_H__ 55 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Palm/Platform/Incs/Core/System/OverlayMgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Palm/Platform/Incs/Core/System/OverlayMgr.h -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Palm/Platform/Incs/Core/System/PalmLocale.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Palm/Platform/Incs/Core/System/PalmLocale.h -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Palm/Platform/Incs/Core/System/SysEvent.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Palm/Platform/Incs/Core/System/SysEvent.h -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Palm/Platform/Incs/Core/System/SystemResources.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Palm/Platform/Incs/Core/System/SystemResources.h -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Palm/Platform/Incs/Core/System/Window.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Palm/Platform/Incs/Core/System/Window.h -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Palm/Platform/Incs/Core/UI/FatalAlert.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright (c) 1994-1999 Palm Computing, Inc. or its subsidiaries. 4 | * All rights reserved. 5 | * 6 | * File: FatalAlert.h 7 | * 8 | * Description: 9 | * This file defines the system Fatal Alert support. 10 | * 11 | * History: 12 | * September 12, 1994 Created by Art Lamb 13 | * 14 | *****************************************************************************/ 15 | 16 | #ifndef __FATALALERT_H__ 17 | #define __FATALALERT_H__ 18 | 19 | #include 20 | #include 21 | 22 | // Value returned by SysFatalAlert 23 | #define fatalReset 0 24 | #define fatalEnterDebugger 1 25 | #define fatalDoNothing 0xFFFFU 26 | 27 | #ifdef REMOVE_FOR_EMULATOR 28 | #ifdef __cplusplus 29 | extern "C" { 30 | #endif 31 | 32 | UInt16 SysFatalAlert (const Char *msg) 33 | SYS_TRAP(sysTrapSysFatalAlert); 34 | 35 | void SysFatalAlertInit (void) 36 | SYS_TRAP(sysTrapSysFatalAlertInit); 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif 41 | #endif 42 | 43 | #endif // __FATALALERT_H__ 44 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Palm/Platform/Incs/Core/UI/InsPoint.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright (c) 1995-1999 Palm Computing, Inc. or its subsidiaries. 4 | * All rights reserved. 5 | * 6 | * File: InsPoint.h 7 | * 8 | * Description: 9 | * This file defines insertion point routines. 10 | * 11 | * History: 12 | * Jan 25, 1995 Created by Art Lamb 13 | * 14 | *****************************************************************************/ 15 | 16 | #ifndef __INSPOINT_H__ 17 | #define __INSPOINT_H__ 18 | 19 | #include 20 | #include 21 | 22 | // Blink interval is half of a second 23 | #define insPtBlinkInterval (sysTicksPerSecond / 2) 24 | #define insPtWidth 2 25 | 26 | #ifdef REMOVE_FOR_EMULATOR 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | extern void InsPtInitialize (void) 32 | SYS_TRAP(sysTrapInsPtInitialize); 33 | 34 | extern void InsPtSetLocation (const Int16 x, const Int16 y) 35 | SYS_TRAP(sysTrapInsPtSetLocation); 36 | 37 | extern void InsPtGetLocation (Int16 *x, Int16 *y) 38 | SYS_TRAP(sysTrapInsPtGetLocation); 39 | 40 | extern void InsPtEnable (Boolean enableIt) 41 | SYS_TRAP(sysTrapInsPtEnable); 42 | 43 | extern Boolean InsPtEnabled (void) 44 | SYS_TRAP(sysTrapInsPtEnabled); 45 | 46 | extern void InsPtSetHeight (const Int16 height) 47 | SYS_TRAP(sysTrapInsPtSetHeight); 48 | 49 | extern Int16 InsPtGetHeight (void) 50 | SYS_TRAP(sysTrapInsPtGetHeight); 51 | 52 | extern void InsPtCheckBlink (void) 53 | SYS_TRAP(sysTrapInsPtCheckBlink); 54 | 55 | #ifdef __cplusplus 56 | } 57 | #endif 58 | #endif 59 | 60 | #endif //__INSPOINT_H__ 61 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Palm/Platform/Incs/Libraries/LibTraps.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright (c) 1999 Palm Computing, Inc. or its subsidiaries. 4 | * All rights reserved. 5 | * 6 | * File: LibTraps.h 7 | * 8 | * Description: 9 | * Palm OS Shared Library 'default' traps. 10 | * 11 | * History: 12 | * 7/15/99 Created by Bob Ebert 13 | * mm/dd/yy initials - brief revision comment 14 | * 15 | *****************************************************************************/ 16 | 17 | #ifndef __LIBTRAPS_H_ 18 | #define __LIBTRAPS_H_ 19 | 20 | // Include elementary types 21 | #include 22 | 23 | #if CPU_TYPE == CPU_68K 24 | #include 25 | #endif 26 | 27 | //-------------------------------------------------------------------- 28 | // Define Library Trap Numbers 29 | //-------------------------------------------------------------------- 30 | // Library traps start here and go up by 1's 31 | #define sysLibTrapBase 0xA800 32 | typedef enum { 33 | sysLibTrapName = sysLibTrapBase, 34 | sysLibTrapOpen, 35 | sysLibTrapClose, 36 | sysLibTrapSleep, 37 | sysLibTrapWake, 38 | sysLibTrapCustom 39 | } SysLibTrapNumber; 40 | 41 | 42 | 43 | #endif //__LIBTRAPS_H_ 44 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/PalmOptErrorCheckLevel.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1999-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef __PALMOPTERRORCHECKLEVEL_H__ 15 | #define __PALMOPTERRORCHECKLEVEL_H__ 16 | 17 | #include 18 | 19 | #ifdef ERROR_CHECK_LEVEL_OK_TO_REDEFINE 20 | #undef ERROR_CHECK_LEVEL_OK_TO_REDEFINE 21 | #undef ERROR_CHECK_LEVEL 22 | #endif 23 | 24 | #ifndef ERROR_CHECK_LEVEL 25 | #define ERROR_CHECK_LEVEL ERROR_CHECK_FULL 26 | #endif 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/PalmPack.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1998-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #if PRAGMA_STRUCT_ALIGN 15 | #pragma options align=mac68k 16 | #endif 17 | 18 | #if defined (_MSC_VER) 19 | #pragma warning (disable: 4103) // used #pragma pack to change alignment 20 | #pragma pack (push, 2) 21 | #endif 22 | 23 | #if defined(__GNUC__) 24 | #pragma pack(2) 25 | #endif 26 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/PalmPackPop.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1998-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #if defined(__GNUC__) 15 | #pragma pack() 16 | #endif 17 | 18 | #if defined (_MSC_VER) 19 | #pragma pack (pop) 20 | #endif 21 | 22 | #if PRAGMA_STRUCT_ALIGN 23 | #pragma options align=reset 24 | #endif 25 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Patches/EmPatchMgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Patches/EmPatchMgr.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Patches/EmPatchModuleHtal.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1998-2001 Palm, Inc. or its subsidiaries. 4 | Copyright (c) 2001 PocketPyro, Inc. 5 | All rights reserved. 6 | 7 | This file is part of the Palm OS Emulator. 8 | 9 | This program is free software; you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation; either version 2 of the License, or 12 | (at your option) any later version. 13 | \* ===================================================================== */ 14 | 15 | #ifndef EmPatchModuleHtal_h 16 | #define EmPatchModuleHtal_h 17 | 18 | #include "EmPatchModule.h" 19 | 20 | class EmPatchModuleHtal : public EmPatchModule 21 | { 22 | public: 23 | EmPatchModuleHtal (void); 24 | virtual ~EmPatchModuleHtal (void) {} 25 | 26 | virtual Err GetHeadpatch (uint16 index, HeadpatchProc& proc); 27 | }; 28 | 29 | 30 | #endif // EmPatchModuleHtal_h 31 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Patches/EmPatchModuleNetLib.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Patches/EmPatchModuleNetLib.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Patches/EmPatchModuleNetLib.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1998-2001 Palm, Inc. or its subsidiaries. 4 | Copyright (c) 2001 PocketPyro, Inc. 5 | All rights reserved. 6 | 7 | This file is part of the Palm OS Emulator. 8 | 9 | This program is free software; you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation; either version 2 of the License, or 12 | (at your option) any later version. 13 | \* ===================================================================== */ 14 | 15 | #ifndef EmPatchModuleNetLib_h 16 | #define EmPatchModuleNetLib_h 17 | 18 | #include "EmPatchModule.h" 19 | 20 | class EmPatchModuleNetLib : public EmPatchModule 21 | { 22 | public: 23 | EmPatchModuleNetLib (void); 24 | virtual ~EmPatchModuleNetLib (void) {} 25 | }; 26 | 27 | #endif // EmPatchModuleNetLib_h 28 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Patches/EmPatchModuleSys.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Patches/EmPatchModuleSys.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Patches/EmPatchModuleTypes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Patches/EmPatchModuleTypes.h -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Patches/EmPatchState.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Patches/EmPatchState.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/PreferenceMgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/PreferenceMgr.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Profiling.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Profiling.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Profiling.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Profiling.h -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/ROMStubs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/ROMStubs.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/ResStrings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/ResStrings.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/SocketMessaging.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/SocketMessaging.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/StringData.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/StringData.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/StringData.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1998-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef _STRINGDATA_H_ 15 | #define _STRINGDATA_H_ 16 | 17 | extern const char* kExceptionNames[]; 18 | extern const char* kPacketNames[]; 19 | extern const char* kVirtualKeyDescriptions[]; 20 | extern const char* kHardKeyDescriptions[]; 21 | 22 | extern const size_t gVirtualKeyDescriptionsCount; 23 | extern const size_t gHardKeyDescriptionsCount; 24 | 25 | #endif /* _STRINGDATA_H_ */ 26 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/Strings.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/Strings.txt -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/SystemPacket.h: -------------------------------------------------------------------------------- 1 | /* -*- mode: C++; tab-width: 4 -*- */ 2 | /* ===================================================================== *\ 3 | Copyright (c) 1999-2001 Palm, Inc. or its subsidiaries. 4 | All rights reserved. 5 | 6 | This file is part of the Palm OS Emulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | \* ===================================================================== */ 13 | 14 | #ifndef SYSTEMPACKET_H_ 15 | #define SYSTEMPACKET_H_ 16 | 17 | #include "EmTypes.h" // ErrCode 18 | 19 | class SLP; 20 | 21 | class SystemPacket 22 | { 23 | public: 24 | static ErrCode SendState (SLP&); 25 | static ErrCode ReadMem (SLP&); 26 | static ErrCode WriteMem (SLP&); 27 | static ErrCode SendRoutineName (SLP&); 28 | static ErrCode ReadRegs (SLP&); 29 | static ErrCode WriteRegs (SLP&); 30 | static ErrCode Continue (SLP&); 31 | static ErrCode RPC (SLP&); 32 | static ErrCode RPC2 (SLP&); 33 | static ErrCode GetBreakpoints (SLP&); 34 | static ErrCode SetBreakpoints (SLP&); 35 | static ErrCode ToggleBreak (SLP&); 36 | static ErrCode GetTrapBreaks (SLP&); 37 | static ErrCode SetTrapBreaks (SLP&); 38 | static ErrCode Find (SLP&); 39 | static ErrCode GetTrapConditions (SLP&); 40 | static ErrCode SetTrapConditions (SLP&); 41 | 42 | static ErrCode SendMessage (SLP&, const char*); 43 | 44 | private: 45 | static ErrCode SendResponse (SLP&, UInt8 code); 46 | static ErrCode SendPacket (SLP&, const void* body, long bodySize); 47 | 48 | static void GetRegs (M68KRegsType&); 49 | static void SetRegs (const M68KRegsType&); 50 | }; 51 | 52 | #endif // SYSTEMPACKET_H_ 53 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/TracerCommon.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/TracerCommon.cpp -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/UAE/UAE.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_h 2 | #define UAE_h 3 | 4 | #include "sysconfig.h" // (should really be included by sysdeps.h ...) 5 | #include "sysdeps.h" // uae_u8, uae_u16, uae_u32, etc. 6 | #include "config.h" 7 | #include "options.h" 8 | #include "machdep_m68k.h" 9 | #include "memory_cpu.h" 10 | #include "custom.h" 11 | #include "readcpu.h" 12 | #include "newcpu.h" 13 | #include "compiler.h" 14 | #include "cputbl.h" 15 | 16 | // sysdeps.h brings in assert.h. However, 17 | // we don't want to use assert in our application 18 | // so undef it. Use EmAssert instead. 19 | #undef assert 20 | 21 | #endif /* UAE_h */ 22 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/UAE/custom.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * custom chip support 5 | * 6 | * (c) 1995 Bernd Schmidt 7 | */ 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | extern void customreset (void); 14 | 15 | #define SPCFLAG_STOP 2 16 | #define SPCFLAG_DISK 4 17 | #define SPCFLAG_INT 8 18 | #define SPCFLAG_BRK 16 19 | #define SPCFLAG_EXTRA_CYCLES 32 20 | #define SPCFLAG_TRACE 64 21 | #define SPCFLAG_DOTRACE 128 22 | #define SPCFLAG_DOINT 256 23 | #define SPCFLAG_BLTNASTY 512 24 | #define SPCFLAG_EXEC 1024 25 | #define SPCFLAG_MODE_CHANGE 8192 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/UAE/gencpu.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/SrcShared/UAE/gencpu.c -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/UAE/machdep_m68k.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * MC68000 emulation - machine dependent bits 5 | * 6 | * Copyright 1996 Bernd Schmidt 7 | */ 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | struct flag_struct { 14 | unsigned int c; 15 | unsigned int z; 16 | unsigned int n; 17 | unsigned int v; 18 | unsigned int x; 19 | }; 20 | 21 | extern struct flag_struct regflags; 22 | 23 | #define ZFLG (regflags.z) 24 | #define NFLG (regflags.n) 25 | #define CFLG (regflags.c) 26 | #define VFLG (regflags.v) 27 | #define XFLG (regflags.x) 28 | 29 | STATIC_INLINE int cctrue(const int cc) 30 | { 31 | switch(cc){ 32 | case 0: return 1; /* T */ 33 | case 1: return 0; /* F */ 34 | case 2: return !CFLG && !ZFLG; /* HI */ 35 | case 3: return CFLG || ZFLG; /* LS */ 36 | case 4: return !CFLG; /* CC */ 37 | case 5: return CFLG; /* CS */ 38 | case 6: return !ZFLG; /* NE */ 39 | case 7: return ZFLG; /* EQ */ 40 | case 8: return !VFLG; /* VC */ 41 | case 9: return VFLG; /* VS */ 42 | case 10:return !NFLG; /* PL */ 43 | case 11:return NFLG; /* MI */ 44 | case 12:return NFLG == VFLG; /* GE */ 45 | case 13:return NFLG != VFLG; /* LT */ 46 | case 14:return !ZFLG && (NFLG == VFLG); /* GT */ 47 | case 15:return ZFLG || (NFLG != VFLG); /* LE */ 48 | } 49 | abort(); 50 | return 0; 51 | } 52 | 53 | 54 | #ifdef __cplusplus 55 | } 56 | #endif 57 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/UAE/machdep_maccess.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * Memory access functions 5 | * 6 | * Copyright 1996 Bernd Schmidt 7 | */ 8 | 9 | #include "EmMemory.h" 10 | 11 | #define do_get_mem_long EmMemDoGet32 12 | #define do_get_mem_word EmMemDoGet16 13 | #define do_get_mem_byte EmMemDoGet8 14 | 15 | #define do_put_mem_long EmMemDoPut32 16 | #define do_put_mem_word EmMemDoPut16 17 | #define do_put_mem_byte EmMemDoPut8 18 | 19 | #define get_long EmMemGet32 20 | #define get_word EmMemGet16 21 | #define get_byte EmMemGet8 22 | 23 | #define put_long EmMemPut32 24 | #define put_word EmMemPut16 25 | #define put_byte EmMemPut8 26 | 27 | #define get_real_address EmMemGetRealAddress 28 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/UAE/memory_cpu.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * memory management 5 | * 6 | * Copyright 1995 Bernd Schmidt 7 | */ 8 | 9 | #include "machdep_maccess.h" 10 | 11 | typedef EmAddressBank addrbank; 12 | 13 | #define get_mem_bank EmMemGetBank 14 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/UAE/missing.c: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * Various stuff missing in some OSes. 5 | * 6 | * Copyright 1997 Bernd Schmidt 7 | */ 8 | 9 | #include "sysconfig.h" 10 | #include "sysdeps.h" 11 | 12 | #include "config.h" 13 | #include "options.h" 14 | //#include "uae.h" 15 | 16 | #ifndef HAVE_STRDUP 17 | 18 | char *my_strdup (const char *s) 19 | { 20 | /* The casts to char * are there to shut up the compiler on HPUX */ 21 | char *x = (char*)xmalloc(strlen((char *)s) + 1); 22 | strcpy(x, (char *)s); 23 | return x; 24 | } 25 | 26 | #endif 27 | 28 | void *xmalloc(size_t n) 29 | { 30 | void *a = malloc (n); 31 | if (a == NULL) { 32 | fprintf (stderr, "virtual memory exhausted\n"); 33 | abort (); 34 | } 35 | return a; 36 | } 37 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/UAE/options.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * Stuff 5 | * 6 | * Copyright 1995, 1996 Ed Hanway 7 | * Copyright 1995-98 Bernd Schmidt 8 | */ 9 | 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #define UAEMAJOR 0 15 | #define UAEMINOR 8 16 | #define UAESUBREV 10 17 | 18 | 19 | /* 20 | * You can specify numbers from 0 to 5 here. It is possible that higher 21 | * numbers will make the CPU emulation slightly faster, but if the setting 22 | * is too high, you will run out of memory while compiling. 23 | * Best to leave this as it is. 24 | */ 25 | #define CPU_EMU_SIZE 0 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/UAE/sysconfig.h: -------------------------------------------------------------------------------- 1 | #define SIZEOF_CHAR 1 2 | #define SIZEOF_SHORT 2 3 | #define SIZEOF_INT 0 // Goofy, but it gets us what we want: shorts 4 | // for 2-byte types and longs for 4-byte types 5 | #define SIZEOF_LONG 4 6 | 7 | #ifdef _MSC_VER 8 | #define SIZEOF___INT64 8 9 | #else 10 | #define SIZEOF_LONG_LONG 8 11 | #endif 12 | 13 | #define REGPARAM 14 | #define DONT_HAVE_REAL_POSIX 15 | #define EXEC_TYPES_H 16 | 17 | #include 18 | 19 | #ifdef _MSC_VER 20 | #pragma warning( disable : 4244 ) // warning C4244: initializing : conversion from unsigned long to unsigned short, possible loss of data 21 | #pragma warning( disable : 4786 ) // warning C4786: '' : identifier was truncated to '255' characters in the browser information 22 | #endif 23 | 24 | 25 | #ifdef _MSC_VER 26 | #define __inline__ __inline 27 | #else 28 | #define __inline__ inline 29 | #endif 30 | 31 | #ifndef STATIC_INLINE 32 | #define STATIC_INLINE static __inline__ 33 | #endif 34 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/UAE/target.h: -------------------------------------------------------------------------------- 1 | #define OPTIONSFILENAME .uaerc 2 | #define UNSUPPORTED_OPTION_p 3 | #define UNSUPPORTED_OPTION_I 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/jpeg/jchuff.h: -------------------------------------------------------------------------------- 1 | /* 2 | * jchuff.h 3 | * 4 | * Copyright (C) 1991-1997, Thomas G. Lane. 5 | * This file is part of the Independent JPEG Group's software. 6 | * For conditions of distribution and use, see the accompanying README file. 7 | * 8 | * This file contains declarations for Huffman entropy encoding routines 9 | * that are shared between the sequential encoder (jchuff.c) and the 10 | * progressive encoder (jcphuff.c). No other modules need to see these. 11 | */ 12 | 13 | /* The legal range of a DCT coefficient is 14 | * -1024 .. +1023 for 8-bit data; 15 | * -16384 .. +16383 for 12-bit data. 16 | * Hence the magnitude should always fit in 10 or 14 bits respectively. 17 | */ 18 | 19 | #if BITS_IN_JSAMPLE == 8 20 | #define MAX_COEF_BITS 10 21 | #else 22 | #define MAX_COEF_BITS 14 23 | #endif 24 | 25 | /* Derived data constructed for each Huffman table */ 26 | 27 | typedef struct { 28 | unsigned int ehufco[256]; /* code for each symbol */ 29 | char ehufsi[256]; /* length of code for each symbol */ 30 | /* If no code has been allocated for a symbol S, ehufsi[S] contains 0 */ 31 | } c_derived_tbl; 32 | 33 | /* Short forms of external names for systems with brain-damaged linkers. */ 34 | 35 | #ifdef NEED_SHORT_EXTERNAL_NAMES 36 | #define jpeg_make_c_derived_tbl jMkCDerived 37 | #define jpeg_gen_optimal_table jGenOptTbl 38 | #endif /* NEED_SHORT_EXTERNAL_NAMES */ 39 | 40 | /* Expand a Huffman table definition into the derived format */ 41 | EXTERN(void) jpeg_make_c_derived_tbl 42 | JPP((j_compress_ptr cinfo, boolean isDC, int tblno, 43 | c_derived_tbl ** pdtbl)); 44 | 45 | /* Generate an optimal table definition given the specified counts */ 46 | EXTERN(void) jpeg_gen_optimal_table 47 | JPP((j_compress_ptr cinfo, JHUFF_TBL * htbl, long freq[])); 48 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/jpeg/jversion.h: -------------------------------------------------------------------------------- 1 | /* 2 | * jversion.h 3 | * 4 | * Copyright (C) 1991-1998, Thomas G. Lane. 5 | * This file is part of the Independent JPEG Group's software. 6 | * For conditions of distribution and use, see the accompanying README file. 7 | * 8 | * This file contains software version identification. 9 | */ 10 | 11 | 12 | #define JVERSION "6b 27-Mar-1998" 13 | 14 | #define JCOPYRIGHT "Copyright (C) 1998, Thomas G. Lane" 15 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/omnithread/mach.h: -------------------------------------------------------------------------------- 1 | // Package : omnithread 2 | // omnithread/posix.h Created : 7/97 lars immisch lars@ibp.de 3 | // 4 | // Copyright (C) 1994,1995,1996, 1997 Immisch, becker & Partner 5 | // 6 | // This file is part of the omnithread library 7 | // 8 | // The omnithread library is free software; you can redistribute it and/or 9 | // modify it under the terms of the GNU Library General Public 10 | // License as published by the Free Software Foundation; either 11 | // version 2 of the License, or (at your option) any later version. 12 | // 13 | // This library is distributed in the hope that it will be useful, 14 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | // Library General Public License for more details. 17 | // 18 | // You should have received a copy of the GNU Library General Public 19 | // License along with this library; if not, write to the Free 20 | // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 21 | // 02111-1307, USA 22 | // 23 | // 24 | // OMNI thread implementation classes for posix threads 25 | // 26 | 27 | #ifndef __omnithread_mach_h_ 28 | #define __omnithread_mach_h_ 29 | 30 | #include 31 | 32 | extern "C" void* omni_thread_wrapper(void* ptr); 33 | 34 | #define OMNI_MUTEX_IMPLEMENTATION \ 35 | struct mutex mach_mutex; 36 | 37 | #define OMNI_CONDITION_IMPLEMENTATION \ 38 | struct condition mach_cond; 39 | 40 | #define OMNI_SEMAPHORE_IMPLEMENTATION \ 41 | omni_mutex m; \ 42 | omni_condition c; \ 43 | int value; 44 | 45 | 46 | #define OMNI_THREAD_IMPLEMENTATION \ 47 | cthread_t mach_thread; \ 48 | static int mach_priority(priority_t); \ 49 | friend void* omni_thread_wrapper(void* ptr); 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/omnithread/null_thread.h: -------------------------------------------------------------------------------- 1 | // Package : omnithread 2 | // omnithread/nt.h Created : 6/95 tjr 3 | // 4 | // Copyright (C) 1995, 1996, 1997 Olivetti & Oracle Research Laboratory 5 | // 6 | // This file is part of the omnithread library 7 | // 8 | // The omnithread library is free software; you can redistribute it and/or 9 | // modify it under the terms of the GNU Library General Public 10 | // License as published by the Free Software Foundation; either 11 | // version 2 of the License, or (at your option) any later version. 12 | // 13 | // This library is distributed in the hope that it will be useful, 14 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | // Library General Public License for more details. 17 | // 18 | // You should have received a copy of the GNU Library General Public 19 | // License along with this library; if not, write to the Free 20 | // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 21 | // 02111-1307, USA 22 | // 23 | // 24 | // OMNI thread implementation classes for NT threads. 25 | // 26 | 27 | #ifndef null_thread_h 28 | #define null_thread_h 29 | 30 | extern "C" void omni_thread_wrapper(void *ptr); 31 | 32 | #define OMNI_MUTEX_IMPLEMENTATION 33 | 34 | #define OMNI_CONDITION_IMPLEMENTATION 35 | 36 | #define OMNI_SEMAPHORE_IMPLEMENTATION 37 | 38 | #define OMNI_THREAD_IMPLEMENTATION 39 | 40 | #endif /* null_thread_h */ 41 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/omnithread/posix.h: -------------------------------------------------------------------------------- 1 | // Package : omnithread 2 | // omnithread/posix.h Created : 7/94 tjr 3 | // 4 | // Copyright (C) 1994,1995,1996, 1997 Olivetti & Oracle Research Laboratory 5 | // 6 | // This file is part of the omnithread library 7 | // 8 | // The omnithread library is free software; you can redistribute it and/or 9 | // modify it under the terms of the GNU Library General Public 10 | // License as published by the Free Software Foundation; either 11 | // version 2 of the License, or (at your option) any later version. 12 | // 13 | // This library is distributed in the hope that it will be useful, 14 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | // Library General Public License for more details. 17 | // 18 | // You should have received a copy of the GNU Library General Public 19 | // License along with this library; if not, write to the Free 20 | // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 21 | // 02111-1307, USA 22 | // 23 | // 24 | // OMNI thread implementation classes for posix threads 25 | // 26 | 27 | #ifndef __omnithread_posix_h_ 28 | #define __omnithread_posix_h_ 29 | 30 | #if defined(__alpha__) && defined(__osf1__) || defined(__hpux__) 31 | // stop unnecessary definitions of TRY, etc on OSF 32 | #ifndef EXC_HANDLING 33 | #define EXC_HANDLING 34 | #endif 35 | #endif 36 | 37 | #include 38 | 39 | extern "C" void* omni_thread_wrapper(void* ptr); 40 | 41 | #define OMNI_MUTEX_IMPLEMENTATION \ 42 | pthread_mutex_t posix_mutex; 43 | 44 | #define OMNI_CONDITION_IMPLEMENTATION \ 45 | pthread_cond_t posix_cond; 46 | 47 | #define OMNI_SEMAPHORE_IMPLEMENTATION \ 48 | omni_mutex m; \ 49 | omni_condition c; \ 50 | int value; 51 | 52 | #define OMNI_THREAD_IMPLEMENTATION \ 53 | pthread_t posix_thread; \ 54 | static int posix_priority(priority_t); \ 55 | friend void* omni_thread_wrapper(void* ptr); 56 | 57 | #endif 58 | -------------------------------------------------------------------------------- /app/src/main/jni/SrcShared/omnithread/solaris.h: -------------------------------------------------------------------------------- 1 | // Package : omnithread 2 | // omnithread/solaris.h Created : 7/94 tjr 3 | // 4 | // Copyright (C) 1994,1995,1996, 1997 Olivetti & Oracle Research Laboratory 5 | // 6 | // This file is part of the omnithread library 7 | // 8 | // The omnithread library is free software; you can redistribute it and/or 9 | // modify it under the terms of the GNU Library General Public 10 | // License as published by the Free Software Foundation; either 11 | // version 2 of the License, or (at your option) any later version. 12 | // 13 | // This library is distributed in the hope that it will be useful, 14 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | // Library General Public License for more details. 17 | // 18 | // You should have received a copy of the GNU Library General Public 19 | // License along with this library; if not, write to the Free 20 | // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 21 | // 02111-1307, USA 22 | // 23 | // OMNI thread implementation classes for solaris threads. 24 | // 25 | 26 | #ifndef __omnithread_solaris_h_ 27 | #define __omnithread_solaris_h_ 28 | 29 | #include 30 | 31 | extern "C" void* omni_thread_wrapper(void* ptr); 32 | 33 | #define OMNI_MUTEX_IMPLEMENTATION \ 34 | mutex_t sol_mutex; 35 | 36 | #define OMNI_CONDITION_IMPLEMENTATION \ 37 | cond_t sol_cond; 38 | 39 | #define OMNI_SEMAPHORE_IMPLEMENTATION \ 40 | sema_t sol_sem; 41 | 42 | #define OMNI_THREAD_IMPLEMENTATION \ 43 | thread_t sol_thread; \ 44 | static int sol_priority(priority_t); \ 45 | friend void* omni_thread_wrapper(void* ptr); 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /app/src/main/jni/Tools/Strings2Resource.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/jni/Tools/Strings2Resource.pl -------------------------------------------------------------------------------- /app/src/main/jni/Tools/s2r.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | perl ../Tools/Strings2Resource.pl ../SrcShared/Strings.txt 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ab_contact.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-hdpi/ab_contact.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ab_dateb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-hdpi/ab_dateb.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ab_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-hdpi/ab_down.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ab_memo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-hdpi/ab_memo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ab_todo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-hdpi/ab_todo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ab_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-hdpi/ab_up.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/about_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-hdpi/about_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/card_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-hdpi/card_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/extract_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-hdpi/extract_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/input_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-hdpi/input_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/install_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-hdpi/install_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/power_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-hdpi/power_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/reset_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-hdpi/reset_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/session_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-hdpi/session_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/settings_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-hdpi/settings_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ab_contact.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-mdpi/ab_contact.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ab_dateb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-mdpi/ab_dateb.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ab_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-mdpi/ab_down.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ab_memo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-mdpi/ab_memo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ab_todo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-mdpi/ab_todo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ab_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-mdpi/ab_up.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/about_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-mdpi/about_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/card_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-mdpi/card_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/extract_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-mdpi/extract_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/input_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-mdpi/input_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/install_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-mdpi/install_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/power_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-mdpi/power_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/reset_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-mdpi/reset_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/session_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-mdpi/session_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/settings_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-mdpi/settings_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ab_contact.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-xhdpi/ab_contact.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ab_dateb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-xhdpi/ab_dateb.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ab_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-xhdpi/ab_down.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ab_memo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-xhdpi/ab_memo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ab_todo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-xhdpi/ab_todo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ab_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-xhdpi/ab_up.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/about_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-xhdpi/about_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/card_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-xhdpi/card_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/extract_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-xhdpi/extract_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/input_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-xhdpi/input_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/install_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-xhdpi/install_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/power_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-xhdpi/power_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/reset_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-xhdpi/reset_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/session_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-xhdpi/session_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/settings_menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-xhdpi/settings_menu_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/dir_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable/dir_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/dir_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable/dir_up.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/file_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable/file_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/pbutton_pressed.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 7 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/pbutton_released.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 7 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/pbutton_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/perpendox_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable/perpendox_logo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/phem_loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable/phem_loading.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/phem_no_session.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Florin9doi/PHEM/7f2268390e1e60bd2e51c7dff617a05ca84c51f5/app/src/main/res/drawable/phem_no_session.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/tv_border.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/layout/file_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 10 | 11 | 12 | 22 | 23 | 31 | 32 | 33 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_crash_handler.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 15 | 16 | 25 | 26 | 31 | 32 |