changeset 185:b204fbed4efe

Add ability to print out current 68K cycle in debugger
author Mike Pavone <pavone@retrodev.com>
date Sun, 13 Jan 2013 15:55:43 -0800
parents ebcbdd1c4cc8
children 02e25abe2dcd
files blastem.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/blastem.c	Sun Jan 13 13:01:13 2013 -0800
+++ b/blastem.c	Sun Jan 13 15:55:43 2013 -0800
@@ -775,6 +775,8 @@
 					for (int flag = 0; flag < 5; flag++) {
 						value |= context->flags[flag] << (4-flag);
 					}
+				} else if(param[0] == 'c') {
+					value = context->current_cycle;
 				} else if (param[0] == '0' && param[1] == 'x') {
 					uint32_t p_addr = strtol(param+2, NULL, 16);
 					value = read_dma_value(p_addr/2);