Aaron Culliney
8f2ab2f072
Compress cpu65_vmem_* function tables to save space
2019-10-27 16:26:35 -07:00
Aaron Culliney
db8fb67944
Help Xcode/lldb cpu thread debugging on Intel by zeroing out the clobbered base pointer
2018-07-29 13:51:36 -07:00
Aaron Culliney
51d2efba03
Streamline CPU tracing codepaths and remove some deadc0de
2018-03-31 12:48:14 -07:00
Aaron Culliney
e898a85f50
Remove unneeded i86 assembly and fix iOS simulator build
2018-01-21 12:41:07 -08:00
Aaron Culliney
e4e0c941d3
Refactor CPU assembly for simplicity and efficiency
...
- Variables needed in assembly now accessible in a struct pointer that avoids __PIC__ nastiness
- Reduces code size and execution time for CPU thread
2018-01-15 16:19:21 -08:00
Aaron Culliney
ddcef734c7
Disable excessive IRQ checking for now
2016-10-23 17:39:00 -07:00
Aaron Culliney
97d538c4d2
Hackishly fix issue on x86 Android __PIC__ builds
2016-10-15 19:07:43 -07:00
Aaron Culliney
1294485a02
Beginnings of a pluggable peripheral card API and fix a CPU boot tracing divergence against AppleWin
...
- In particular, return floating_bus() for non-plugged in cards when accessing the $C100-$C700 range
2016-10-09 12:19:32 -07:00
Aaron Culliney
ccd05e52fe
Improve timing conformance in Mockingboard
...
- Correctly calculate 7 cycles for handling IRQs
- More frequent calls to MB_UpdateCycles()
- Correctly calculate timing for MB_EndOfVideoFrame() when testing/tracing/debugging
2016-10-09 12:19:21 -07:00
Aaron Culliney
4fd6a87340
Pinpoint IRQ requests in CPU tracing
2016-10-02 14:24:04 -07:00
Aaron Culliney
3edb24ea3b
Change cycle counts to conform with AppleWin
2016-10-02 14:23:59 -07:00
Aaron Culliney
2f156d4262
Improve genglue.sh script for generating trampoline functions
2016-07-23 17:24:10 -07:00
Aaron Culliney
fd5b97189a
HACK : get iOS building again
...
- TODO FIXME : actually get proper __PIC__ code written for Mac/i386
2016-05-15 18:13:20 -07:00
Aaron Culliney
8ce1fffe89
Fix x86 __PIC__ bug when indirecting in GLUE_BANK_MAYBEREAD()
2016-05-10 22:17:37 -07:00
Aaron Culliney
7b3eabb12f
Fix x86 and x86_64 __PIC__ code for Linux and Mac
2016-05-01 18:49:18 -07:00
Aaron Culliney
14108fb97b
Fix Mac assembly
2016-04-23 11:52:20 -07:00
Aaron Culliney
90b52702d6
Refactor __PIC__ codepaths on x86_64
2016-04-21 22:09:04 -07:00
Aaron Culliney
5737e89150
Initial iOS target compiles, links, and appears to run in simulator and on device =)
2016-01-04 20:34:27 -08:00
Aaron Culliney
f872e0c05c
fix i386 variant of op_SBC_dec (now re-passes tests on x86 Android)
2015-12-16 21:12:45 -08:00
Aaron Culliney
e4c669f016
x86 builds and basically works on Android x86 devices
2015-11-09 22:45:52 -08:00
Aaron Culliney
2cc23cf35d
Upgrade to GPLv3 "or later" and update copyrights
2015-10-22 21:09:13 -07:00
Aaron Culliney
ed60b2ea73
Refactor VM initialization and shutdown
2015-09-11 23:03:17 -07:00
Aaron Culliney
792c0a0b08
DAA & DAS algorithms in ARM assembly
2015-02-22 13:46:58 -08:00
Aaron Culliney
d517339842
All 65c02 CPU tests for ARM pass, except for decimal mode
2015-02-21 21:06:01 -08:00
Aaron Culliney
28aea0bf14
Remove redundant code
2015-02-17 11:06:50 -08:00
Aaron Culliney
15dd90902c
REFACTOR : more common code into macros
2015-02-16 10:28:57 -08:00
Aaron Culliney
5aa4c20249
REFACTOR : style+clarity changes
2015-02-16 09:42:13 -08:00
Aaron Culliney
0801050455
REFACTOR : move special case initialization codepath to C
2015-02-16 08:47:26 -08:00
Aaron Culliney
30c09da259
REFACTOR : simplified/streamlined some assembly
2015-02-16 08:47:26 -08:00
Aaron Culliney
12ba31f1af
REFACTOR : whitespace, style, remove deadcode, extract code into macro
2015-02-16 08:47:26 -08:00
Aaron Culliney
9a87aa8a3d
REFACTOR : migrate stack page offset into altzp configuration
2015-02-16 08:47:26 -08:00
Aaron Culliney
7bd7899325
REFACTOR : brace x86-specific defines, prep for __arm__
2015-02-16 08:47:26 -08:00
Aaron Culliney
b246baa90d
REFACTOR : macro renaming for clarity/readability
2015-02-16 08:47:26 -08:00
Aaron Culliney
cf79056b28
Merge x86-specific apple2.h stuff into cpu-regs.h
2015-02-16 08:47:26 -08:00
Aaron Culliney
851d22568b
Use 32bit counters to avoid overflow
...
- Previously there were cases where we could overflow cpu65_cycles_to_execute when adding the cycles_speaker_feedback
2015-02-03 22:10:47 -08:00
Aaron Culliney
1cbd426548
removed unused macros
2015-02-01 15:26:50 -08:00
Aaron Culliney
e6ca42be64
CPU fixes from tracing against AppleWin
...
- All regs are 0xFF on reboot
- Stack pointer is 0xFC on reboot
- Flags are set accordingly
- Fix op_JMP_ind tracing display
2014-11-18 22:27:25 -08:00
Aaron Culliney
9bbe906f43
CPU_TRACING bugfix and more readable
...
- GetImm mode was not reporting correct arg
- Converts it to a format easier to compare against similar CPU trace output from AppleWin
- Sanity-check arg counts
2014-11-18 22:16:44 -08:00
Aaron Culliney
c1db658589
Balance EffectiveAddr_X ... CPU_TRACING test passes
2014-11-02 12:10:09 -08:00
Aaron Culliney
9144b48885
Enable abusive CPU_TRACING test
2014-11-02 12:09:30 -08:00
Aaron Culliney
4ff57ab7dd
Slightly improve CPU trace files
2014-10-31 16:32:34 -07:00
Aaron Culliney
6fdeee3896
Cleanup and fixes for compiler warnings
2014-10-31 16:27:39 -07:00
Aaron Culliney
f11b6948bb
Work around broken assembly for PLP instruction on Mac
2014-10-11 19:36:49 -07:00
Aaron Culliney
a37ed6cd98
tests run again on Mac
2014-10-11 19:34:12 -07:00
Aaron Culliney
4c9c1fb62a
First cut at a facility to do CPU tracing
...
* Also includes a test that traces booting the test disk
2014-10-11 18:28:48 -07:00
Aaron Culliney
a99b5a1d68
HACKs around bizarre bytecode generation on Darwin
...
* CPU tests pass now, w00t!
2014-06-25 23:01:22 -07:00
Aaron Culliney
10e03e9bc5
Get tests working again
...
* Refactor naming of saved CPU state variables
* Allows convenient addressing from assembly
2014-06-22 11:17:44 -07:00
Aaron Culliney
ed8b41c9a0
New CPP macros to accommodate Darwin
2014-06-21 14:21:33 -07:00
Aaron Culliney
d650982e51
Slightly less hackishly, use "private" pointers to set struct vals
2014-06-21 14:21:05 -07:00
Aaron Culliney
a4670b1eda
Use CPP macro for duplicate assembly
2014-06-21 14:20:28 -07:00