Lior Halphon
c3d9141b7c
Replace the term sprite with object for consistency
2021-12-17 21:16:23 +02:00
Lior Halphon
bdbe02b043
Add a safe memory read API
2021-11-26 13:54:28 +02:00
Lior Halphon
c6f39bc60b
Initial MBC7 support
2021-11-12 17:44:51 +02:00
Lior Halphon
fbf1bb7f98
Save state compatibility breaking cleanup
2021-11-07 12:56:46 +02:00
Lior Halphon
e04dcd90d6
Fix APU command
2021-10-19 01:56:10 +03:00
Lior Halphon
7ef198ec50
More accurate channel 3 restarts
2021-10-17 02:06:33 +03:00
Lior Halphon
f1761340fc
Fix ATTR_SET command
2021-10-09 18:45:08 +03:00
Lior Halphon
164a870189
Cleanup uses of gb->registers
2021-10-09 14:09:51 +03:00
Talkashie
2dc0e14d0a
Update debugger.c
...
Fixed a typo
2021-09-13 21:20:19 -05:00
Lior Halphon
a5325d3374
Improved ticks command, more accurate speed switch timings, better odd-mode warnings
2021-07-11 21:49:58 +03:00
Lior Halphon
976f5e4d02
Merge branch 'master' into bess
2021-04-13 20:50:29 +03:00
Lior Halphon
fada772cb1
Don't use BESS for internal in-memory saves
2021-04-13 20:35:07 +03:00
Lior Halphon
80f422d0ca
Respect TPP1 feature flags for rumble and RTC
2021-04-11 23:16:31 +03:00
Lior Halphon
57080c48bc
No need for -1
2021-02-28 16:50:46 +02:00
Lior Halphon
81bfea9ba2
Coding style, ensuring string termination.
2021-02-28 15:23:14 +02:00
Jakub Kądziołka
c9665d0449
value_to_string: use snprintf
...
Currently, value_to_string and debugger_value_to_string use an
error-prone calculation to avoid overflow. This was once adjusted
already, and one of the codepaths is still vulnerable. Put this in a
symfile:
01:5678 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
and execute `p 1:$5679`. On Linux, the canary terminates the process.
2021-02-27 19:33:31 +01:00
Lior Halphon
770885440f
Minor changes to debugger output
2020-12-12 19:09:53 +02:00
Lior Halphon
7de6194e28
Redo channel 4's timing accurately, emulate NR43 write quirks
2020-12-12 16:02:25 +02:00
Lior Halphon
74cf452a48
Further accuracy improvements to sweep; passes Blargg's APU tests again, this time for real
2020-12-01 14:17:35 +02:00
Lior Halphon
0485124076
Redo channel 1 sweep based on DMG schematics; emulates two newly discovered behaviors and also fixes #309
2020-11-28 19:31:25 +02:00
Lior Halphon
027cecde24
Added debugger "undo" command. Closes #156
2020-11-21 16:19:58 +02:00
Lior Halphon
88198e64f4
Minor bug fixes
2020-11-13 23:02:17 +02:00
Lior Halphon
e35c22d405
Fix a potential single byte overflow
2020-09-17 23:47:35 +03:00
Renato Oliveira
ac3b09966c
Fix "Cartrdige" to "Cartridge"
2020-08-01 12:55:53 -03:00
Lior Halphon
c07588e3bd
Console auto complete
2020-06-05 02:10:05 +03:00
Lior Halphon
5f4aee8ca1
Merge pull request #261 from JL2210/ld-b-b
...
Add ld b, b breakpoint
2020-05-31 00:55:17 +03:00
Lior Halphon
f1ea39f1c6
Spacing
2020-05-31 00:54:49 +03:00
James Larrowe
6fcf77c7f6
Make no argument for softbreak be equivalent to "on"
2020-05-30 16:46:17 -04:00
James Larrowe
abdece7737
add debugger command to enable and disable
2020-05-30 16:35:07 -04:00
Lior Halphon
a9023d08c6
Emulate HuC-3’s IR and RTC
2020-05-16 23:27:17 +03:00
Lior Halphon
2cc980755e
HuC1 IR support
2020-05-13 22:21:31 +03:00
Lior Halphon
5a14eb93c6
Merge branch 'master' into JoyKit
...
# Conflicts:
# Cocoa/Document.m
# Cocoa/GBView.h
# Cocoa/GBView.m
# Cocoa/joypad.m
# Cocoa/main.m
# Core/display.c
# Core/gb.h
# Core/save_state.c
2020-04-29 15:52:03 +03:00
Lior Halphon
152924e13f
Add support to the ISX format, including symbols
2020-04-25 22:48:48 +03:00
Lior Halphon
0cf168f32b
Fixing inconsistent style
2020-04-24 20:37:57 +03:00
Lior Halphon
5df45417fa
Console quirks
2020-04-11 18:27:31 +03:00
Lior Halphon
a6567d9ee1
Update old coding style
2020-04-09 14:32:52 +03:00
Lior Halphon
a9cd3f2c11
Fix operator priorities, fix parsing debugger bug
2020-04-09 14:21:07 +03:00
Lior Halphon
d8e89f5114
Fix banked 16-bit assignments; fixes #245
2020-04-08 19:17:45 +03:00
Lior Halphon
0ed5cf6b38
Proper MBC30 support, more accurate MBC3 emulation. Fixes #244
2020-04-08 19:07:29 +03:00
Lior Halphon
2f1b8e5b57
IME is now available under the registers command
2020-03-27 18:56:47 +03:00
Lior Halphon
1a3572316f
next now skips over halt, closes #233
2020-03-27 17:49:14 +03:00
Lior Halphon
0737655753
Merge branch 'master' into JoyKit
2020-01-03 23:42:25 +02:00
Lior Halphon
95af00a752
speling is veri difikult
2020-01-03 21:11:45 +02:00
Lior Halphon
0ece21bca7
Replace the SDL-derived controller support with my own JoyKit framework. Adds rumble support, LED support, better manual and automatic configurations, analog speed controls.
2019-10-19 19:26:04 +03:00
Lior Halphon
8c8d5afe62
Make the debugger compatible with more sym formats
2019-07-13 17:17:55 +03:00
Lior Halphon
24b58da8c6
Minor text change
2019-06-21 14:18:48 +03:00
Lior Halphon
72b1fe0500
Minor Fixes™
2019-06-21 01:03:52 +03:00
Lior Halphon
e268efefef
Redesign and reimplement the audio API, let the frontends handle more stuff. Probably affects #161
2019-06-15 23:22:27 +03:00
Lior Halphon
49d8a5cb44
Fixed the parsing of comparison operators as well as their priorities. Fixes #155
2019-06-08 16:08:07 +03:00
Lior Halphon
0da2930109
Fix #175
2019-06-08 14:35:52 +03:00
Lior Halphon
6888047102
Show flags in the registers command
2019-06-01 16:42:17 +03:00
ISSOtm
ec5d1b7b88
Fix sample lengths for CH1, 2 and 4
2019-05-18 03:01:20 +02:00
Lior Halphon
3ee2c64899
Make the apu command a bit safer
2019-05-17 22:03:23 +03:00
Lior Halphon
6648a0a84d
Minor adjustments and style fixes to the new APU debug functions
2019-05-17 20:48:49 +03:00
ISSOtm
40f83c8f25
Add APU-related debugger commands
...
This change includes making one of the APU functions public
2019-05-15 12:45:51 +02:00
Lior Halphon
82ce597573
Line breaks
2019-04-12 20:30:02 +03:00
Lior Halphon
05cd81b77c
Implemented jump-to breakpoints
2019-04-12 20:29:43 +03:00
Lior Halphon
0b03b61564
Render the first line 0, as required for SGB emulation
2019-02-16 04:19:16 +02:00
Lior Halphon
73a54049d2
Accurate PPU access timings
2019-01-19 19:32:26 +02:00
Rob Loach
2da7a3f7fb
Fix the return value of read_lvalue to be 0
2018-10-12 10:09:30 -04:00
Rob Loach
e834d32b8e
Update switch to just return at the end instead
2018-10-12 09:41:25 -04:00
Rob Loach
f4ee044347
Fix control reaches end of non-void function
...
This change makes it so that there is a return value when a kind doens't match. Allows -Werror=return-type to pass.
```
Core/debugger.c: In function ‘read_lvalue’:
Core/debugger.c:239:1: error: control reaches end of non-void function [-Werror=return-type]
}
```
2018-10-11 22:17:16 -04:00
Lior Halphon
2791775c5d
Improvements to the `lcd` debugger command
2018-06-22 18:38:54 +03:00
Lior Halphon
45c73e0175
Replaced the is_cgb bool with a more future compatible model enum. Removed the GB_init_cgb API and replaced it with an extended GB_init and GB_switch_model_and_reset APIs that now receive a model parameter. Increased the struct version.
2018-06-16 13:59:33 +03:00
Lior Halphon
7df571d42f
Less strict matching for `delete` and `unwatch`. Fixes #71
2018-05-13 23:17:23 +03:00
Lior Halphon
ba07e7ba85
Fixed a bug where 0:$dxxx reads/writes from the wrong bank in CGB mode. Made sure symbols are reset after reloading a sym file.
2018-04-02 19:57:39 +03:00
Lior Halphon
f8c6b9e7a0
Fixed the lcd command
2018-03-23 21:26:49 +03:00
Lior Halphon
b702d56547
Merge branch 'master' into timing
...
# Conflicts:
# Core/display.c
# Core/z80_cpu.c
2018-03-01 21:22:33 +02:00
Lior Halphon
fb03479a1f
Added 16-bit dereferencing operator (`{address}`) to the debugger. Closes #38
2018-02-28 19:39:22 +02:00
Lior Halphon
9802ca41dd
Components not affected by CGB’s double speed mode now operate in 8MHz mode to theoretically make advance_cycles(gb, 1) safe.
2018-02-20 21:17:12 +02:00
Lior Halphon
48acc09e91
Fixed the first item in the backtrace command
2017-06-03 16:19:39 +03:00
Lior Halphon
a01ea29cf1
The first entry in the backtrace command is now in the same format as the rest
2017-05-26 20:21:39 +03:00
Lior Halphon
7d88ee00cc
Added side view to Cocoa debugger
2017-05-26 20:16:19 +03:00
Lior Halphon
22d3510dde
Added LCD command to the debugger
2017-04-22 14:55:17 +03:00
Lior Halphon
fb55c35f87
New APIs, Document.m no longer requires GB_INTERNAL, fixed a bug where the sprite viewer showed incorrect sprites for some CGB exclusive games.
2017-04-19 23:26:39 +03:00
Lior Halphon
a925ef130d
Stabilizing API: New joypad, debugger and reset APIs; internal APIs and direct struct access are no longer available without defining GB_INTERNAL. The SDL port uses the new “public” APIs, as well as most of the non-debug Cocoa code.
2017-04-17 20:16:17 +03:00
Lior Halphon
421d3b27f5
Correct emulation of HUC1 banks higher than 0x1F
2017-02-16 21:07:35 +02:00
Lior Halphon
eed8a06fc0
Several fixes to the help command
2017-02-04 19:00:31 +02:00
Lior Halphon
57c73c8a51
Fixed the help command for the disassemble command
2017-02-04 17:49:22 +02:00
Lior Halphon
cd382ef236
Fixed: Conditional read watchpoints crashed if the expression referred to the 'new' variable. Breakpoint and watchpoint conditions no longer trigger watchpoints.
2017-01-12 23:11:26 +02:00
Lior Halphon
2d51d13479
Various optimizations
2016-10-22 02:18:29 +03:00
Lior Halphon
1b8832a7ff
Added disassemble command
2016-10-19 23:55:23 +03:00
Lior Halphon
ee51dec20e
Added modifier syntax to debugger: Changed watch's syntax, added format modifier to print/eval, added count option to examine command.
2016-10-19 23:48:46 +03:00
Lior Halphon
11f8c41305
Basic HUC3 support
2016-10-17 18:51:43 +03:00
Lior Halphon
9ca7540c69
Fixed dereferencing a non-banked address in the debugger
2016-10-14 01:19:39 +03:00
Lior Halphon
80a1b12ae7
Added palette command to the debugger
2016-10-01 22:08:34 +03:00
Lior Halphon
5565c096c7
Misc optimizations, especially for the tester
2016-09-30 01:09:44 +03:00
Lior Halphon
3ac3eccebb
Bugfix: Multiple watchpoints did not work correctly and conflicted with breakpoints
2016-09-30 01:09:17 +03:00
Lior Halphon
71d4ba21f2
Added a tick-counting debugger command
2016-09-16 11:58:31 +03:00
Lior Halphon
62ecadeb57
Fixed another reset-while-debugging deadlock in Cocoa
2016-09-07 00:37:11 +03:00
Lior Halphon
0734e990b3
Memory viewer now has a Goto command, different memory space modes, and allows viewing/editing specific banks
2016-08-19 14:54:54 +03:00
Lior Halphon
f9236d12bf
Improvements to the help command and general debugger usability.
2016-08-13 22:52:41 +03:00
Lior Halphon
806d0775a4
Added backtrace command to debugger
2016-08-09 22:48:53 +03:00
Lior Halphon
55cbe5d4d0
Accuracy improvements to timers
2016-08-06 00:24:12 +03:00
Lior Halphon
e6d4cac00e
Fix logical bug when changing watchpoint flags
2016-07-21 15:20:25 +03:00
Lior Halphon
da0911d69b
Fixed SDL crash
2016-07-18 14:30:21 +03:00
Lior Halphon
aa6438fa06
Async debugger commands
2016-07-18 00:46:45 +03:00
Lior Halphon
eaca0634aa
Reading and writing absolute addresses in the expression evaluator.
2016-07-15 17:06:46 +03:00
Lior Halphon
e20e81befd
Symbol support in the expression evaluator
2016-07-15 14:31:27 +03:00
Lior Halphon
c3a831db7d
Debugger's pc "variable" now returns a full address
2016-07-14 23:27:48 +03:00