Mercurial > repos > blastem
comparison debug.c @ 1311:26bdbf1f7e33
Allow printing current frame number in 68K debugger
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 31 Mar 2017 19:07:04 -0700 |
parents | de742a7bd9f7 |
children | 9ab3f6781202 |
comparison
equal
deleted
inserted
replaced
1310:de742a7bd9f7 | 1311:26bdbf1f7e33 |
---|---|
115 for (int flag = 0; flag < 5; flag++) { | 115 for (int flag = 0; flag < 5; flag++) { |
116 value |= context->flags[flag] << (4-flag); | 116 value |= context->flags[flag] << (4-flag); |
117 } | 117 } |
118 } else if(param[0] == 'c') { | 118 } else if(param[0] == 'c') { |
119 value = context->current_cycle; | 119 value = context->current_cycle; |
120 } else if(param[0] == 'f') { | |
121 genesis_context *gen = context->system; | |
122 value = gen->vdp->frame; | |
120 } else if ((param[0] == '0' && param[1] == 'x') || param[0] == '$') { | 123 } else if ((param[0] == '0' && param[1] == 'x') || param[0] == '$') { |
121 uint32_t p_addr = strtol(param+(param[0] == '0' ? 2 : 1), NULL, 16); | 124 uint32_t p_addr = strtol(param+(param[0] == '0' ? 2 : 1), NULL, 16); |
122 if ((p_addr & 0xFFFFFF) == 0xC00004) { | 125 if ((p_addr & 0xFFFFFF) == 0xC00004) { |
123 genesis_context * gen = context->system; | 126 genesis_context * gen = context->system; |
124 value = vdp_hv_counter_read(gen->vdp); | 127 value = vdp_hv_counter_read(gen->vdp); |