Commit Graph

663 Commits

Author SHA1 Message Date
meepingsnesroms
afb43ff3eb Change how ARM stack is set, add memalign functions
Need to patch the Palm OS malloc function to always allocate 32 bit aligned too.
2019-01-23 14:28:11 -08:00
meepingsnesroms
7c585bd242 Add simple accessors for SED1376 timing registers 2019-01-21 20:54:21 -08:00
meepingsnesroms
d305fe4dfc Update muExpDriver add a GUI(its still nonfunctional though) 2019-01-21 19:25:09 -08:00
meepingsnesroms
f9229590f5 Add CPU speed to muExpDriver 2019-01-20 14:26:51 -08:00
meepingsnesroms
64ec6f6e91 Allow the emulator to set its own speed, prep for Chuzzle
This is far cleaner than a normal overclock, its always 100% on boot to allow normal init and custom speeds can be set per app, this was not doable with just FEATURE_FAST_CPU doubling the clock speed.
2019-01-20 10:08:00 -08:00
meepingsnesroms
133484b0dc Put memory saving back to normal
First OS 5 game is running, its not ARM though.
2019-01-19 09:41:06 -08:00
meepingsnesroms
7b39db4782 Update memory comments, add value to ARMv5 save state 2019-01-17 19:33:01 -08:00
meepingsnesroms
8a990b2839 Increase ADS7846 accuracy, implement PLLFSR 8 bit reads, enable logging on all unemulated regiser accesses 2019-01-17 13:45:11 -08:00
meepingsnesroms
4f96b53bb1 Make return/break syntax match for all memory accessors 2019-01-16 19:40:09 -08:00
meepingsnesroms
6ba1e42926 Match switch/return style, THE LAST COMMIT AND THIS HAVE BROKEN RAM ACCESS
Running experiments on larger RAM sizes, normal RAM access is broken right now.
2019-01-16 14:37:18 -08:00
meepingsnesroms
424a0cb5a5 Too much stuff to list 2019-01-16 14:21:38 -08:00
meepingsnesroms
8304eb33f9 More driver work 2019-01-11 15:54:34 -08:00
meepingsnesroms
0b645f8d7e Fix invalid SDK patch, try to add basic GUI 2019-01-10 10:16:19 -08:00
meepingsnesroms
f02bba3755 Start work on GUI 2019-01-10 09:05:45 -08:00
meepingsnesroms
1282d1b2b7 Put all the *.func blobs back, everything compiles
Presumably ARM should run now as is if there isnt any more unforseen circumstances.
2019-01-10 08:53:56 -08:00
meepingsnesroms
23b5fc6456 In emulation there is no right or wrong, only success or failure
The ARM blobs are back, they were checked with online dissasembler, no more low level ARM C compiling, its too much work.
2019-01-09 20:59:02 -08:00
meepingsnesroms
60b14cf79b This was a horrible experince, prc-tools is shit
There is no way to reliably write to a register in C, volatile is broken, optimizations cant be disabled, and the standalone code resource macros only work in C, so getting the correct register state for hypercall is impossible without making binary blobs at least for ARM, the 68k blob function seems OK to optimize since it isnt interrupted.
2019-01-09 19:47:14 -08:00
meepingsnesroms
def07b53d0 Ok, ARM blobs seem to be compiling 2019-01-09 11:47:17 -08:00
meepingsnesroms
e885942603 Remembered the register keyword, can just do the stack stuff in C with no vars on stack 2019-01-09 10:49:18 -08:00
meepingsnesroms
bf2163b21d This function seems to be done, now comes ARM asm 2019-01-09 09:29:28 -08:00
meepingsnesroms
02033457de Try to match Palm OS call format exactly
Not tested yet
2019-01-09 08:19:35 -08:00
meepingsnesroms
7e17a5a3e8 Add asm stuff 2019-01-08 21:34:33 -08:00
meepingsnesroms
5d4df87b7c Implement the ASM functions in psudocode
Have to manually compile it bit by bit then endian swap the ARM opcodes
2019-01-08 19:12:53 -08:00
meepingsnesroms
d16f495f1c Write C part of PceNativeCall handler 2019-01-08 16:16:54 -08:00
meepingsnesroms
7581114be6 Allow setting device IDs to match the screen and CPU type 2019-01-08 12:19:16 -08:00
meepingsnesroms
84d96c29d7 Early commit, unfinished
I am going to be pushing unfinished commits more now becuse my dev laptop is on the decline and I dont want to lose progress.
2019-01-08 11:19:11 -08:00
meepingsnesroms
fa7194f1f5 Commit finished, custom IO is working 2019-01-07 20:03:11 -08:00
meepingsnesroms
fad58ee6f3 Unfinished, computer is acting physically broken
May not work anymore after reboot so Ill just commit now.
2019-01-07 16:53:55 -08:00
meepingsnesroms
32f440a26d Correct code style a bit 2019-01-04 15:02:22 -08:00
meepingsnesroms
6d2466cf3b muExpansionDriver now compiles!!! 2019-01-04 13:29:36 -08:00
meepingsnesroms
e4625f1233 Try to get muExpansionDriver compiling, still not compiling though 2019-01-04 12:56:16 -08:00
meepingsnesroms
512dd785f6 Work on OS side driver, use (void) instead of () in Palm tools 2019-01-04 12:02:38 -08:00
meepingsnesroms
e1ef2fe5a1 ARM now seems to be fully attached, also hooked up more emu commands(Ill need them later anyway)
Just need to write the driver and get save states working for ARM.
2019-01-04 11:06:50 -08:00
meepingsnesroms
7238544735 Add more ARM stuff 2019-01-03 14:00:34 -08:00
meepingsnesroms
b3c2d4c09b Start emu side driver, ...
Label 64 bit constants to prevent them form being truncated, remove EMU_CMD_KEY, nothing is going to make arbitrary writes to the space I am using.
2019-01-02 17:13:01 -08:00
meepingsnesroms
2d1fcbdfb9 Attach more hardware registers 2019-01-01 14:01:00 -08:00
meepingsnesroms
bf65ad9b38 ARM stuff step 1
Dont know how many steps this will take, its very complicated :)
2019-01-01 12:13:59 -08:00
meepingsnesroms
8b008aa575 Clean up flx68000PcLongJump remove more safety checks from release builds 2018-12-31 11:19:13 -08:00
meepingsnesroms
20f1e8b2ed Remove old function 2018-12-31 09:46:40 -08:00
meepingsnesroms
9761b9baca Update code for fast local memory access 2018-12-31 09:03:36 -08:00
meepingsnesroms
4144f7c8b6 Prevent unaligned 32 bit accesses 2018-12-29 17:46:11 -08:00
meepingsnesroms
a9fbe45d52 Try to move cyclone speedups to musashi since cyclone is gone 2018-12-29 14:05:20 -08:00
meepingsnesroms
6829ed6f81 Finish removing cyclone 2018-12-29 12:05:48 -08:00
meepingsnesroms
f34256ba69 No more cyclone 2018-12-29 11:40:04 -08:00
meepingsnesroms
abb2e6526b Disable cyclone again
As of now its not stable and there isnt plans to reenable it unless someone else can figure out what is wrong since I dont know ARM ASM.
2018-12-28 16:57:58 -08:00
meepingsnesroms
d96c0ec8c4 Fix typo 2018-12-27 20:19:03 -08:00
meepingsnesroms
6c37868055 Add extra bits to savestate
Need too move the SD card varibles into sdCard.c and add *prepareLoadState() and *finishedLoadState() for modules that need memory buffers like the SD card.
2018-12-27 19:59:43 -08:00
meepingsnesroms
b02fa8ba52 More SD card fixes 2018-12-27 17:50:02 -08:00
meepingsnesroms
94b0baaf7f Update .txt files, fix writes to IMR blocking vaild interrupts instead of invalid ones
Figure out SD card chip select.
Port D now seems to be fully datasheet compliant, interrupt quirks and all.
Add new bits to SD card.
2018-12-27 17:25:02 -08:00
meepingsnesroms
f8baa0eb85 See description below
Fix FIFO incaauracys.
Remove extra left shift on SPI1 data after the final bit is in.
Remove old image when last state is deleted.
Set active state to the newest one on save state and update image accordingly.
Set spi1RxOverflowed to false on boot.
Move variables to top of function in mainwindow constructor.
2018-12-27 14:56:01 -08:00