AltairZ80: Documentation update and small formatting cleanup
This commit is contained in:
parent
4099330616
commit
494e68fcbf
2 changed files with 24 additions and 24 deletions
|
@ -454,7 +454,7 @@ REG cpu_reg[] = {
|
|||
}, /* 75 */
|
||||
{ DRDATAD (TSTATES, executedTStates, 32, "Executed t-states for 8080 / Z80 pseudo register"),
|
||||
REG_RO }, /* 76 */
|
||||
{ HRDATAD (CAPACITY, cpu_unit.capac, 32, "Size of RAM pseudo register"),
|
||||
{ HRDATAD (CAPACITY,cpu_unit.capac, 32, "Size of RAM pseudo register"),
|
||||
REG_RO }, /* 77 */
|
||||
{ HRDATAD (PREVCAP, previousCapacity, 32, "Previous size of RAM pseudo register"),
|
||||
REG_RO }, /* 78 */
|
||||
|
@ -2078,7 +2078,7 @@ static t_stat sim_instr_mmu (void) {
|
|||
extern int32 keyboardInterrupt;
|
||||
extern uint32 keyboardInterruptHandler;
|
||||
int32 reason = SCPE_OK;
|
||||
int i;
|
||||
uint32 i;
|
||||
register uint32 specialProcessing;
|
||||
register uint32 AF;
|
||||
register uint32 BC;
|
||||
|
@ -6178,8 +6178,8 @@ static t_stat sim_instr_mmu (void) {
|
|||
hst[hst_p].ix = IX;
|
||||
hst[hst_p].iy = IY;
|
||||
|
||||
for (i=0; i < INST_MAX_BYTES; i++) {
|
||||
hst[hst_p].op[i] = GetBYTE(PCX+i);
|
||||
for (i = 0; i < INST_MAX_BYTES; i++) {
|
||||
hst[hst_p].op[i] = GetBYTE(PCX + i);
|
||||
}
|
||||
|
||||
if (++hst_p == hst_lnt) {
|
||||
|
@ -6373,7 +6373,7 @@ typedef struct {
|
|||
const static CPUFLAG cpuflags8080[] = {
|
||||
{1 << 7, "S"},
|
||||
{1 << 6, "Z"},
|
||||
{1 << 4, "A"},
|
||||
{1 << 4, "H"},
|
||||
{1 << 3, "P"},
|
||||
{1 << 1, "N"},
|
||||
{1 << 0, "C"},
|
||||
|
@ -6383,7 +6383,7 @@ const static CPUFLAG cpuflags8080[] = {
|
|||
const static CPUFLAG cpuflagsZ80[] = {
|
||||
{1 << 7, "S"},
|
||||
{1 << 6, "Z"},
|
||||
{1 << 4, "A"},
|
||||
{1 << 4, "H"},
|
||||
{1 << 3, "V"},
|
||||
{1 << 1, "N"},
|
||||
{1 << 0, "C"},
|
||||
|
@ -6866,7 +6866,7 @@ static t_stat cpu_set_hist(UNIT *uptr, int32 val, CONST char *cptr, void *desc)
|
|||
** If cptr is NULL, reset ring buffer ("SET HISTORY")
|
||||
*/
|
||||
if (cptr == NULL) {
|
||||
if (hst==NULL) {
|
||||
if (hst == NULL) {
|
||||
sim_printf("History buffer not enabled.\n");
|
||||
return SCPE_NOFNC;
|
||||
}
|
||||
|
@ -6970,7 +6970,7 @@ t_stat cpu_show_hist (FILE *st, UNIT *uptr, int32 val, CONST void *desc)
|
|||
/*
|
||||
** Use DDT/Z output:
|
||||
*/
|
||||
fprintf(st, "CPU: C%dZ%dS%dP%dH%dN%d A =%02X BC =%04X DE =%04X HL =%04X S =%04X P =%04X ",
|
||||
fprintf(st, "CPU: C%dZ%dS%dV%dH%dN%d A =%02X BC =%04X DE =%04X HL =%04X S =%04X P =%04X ",
|
||||
TSTFLAG2(h->af, C),
|
||||
TSTFLAG2(h->af, Z),
|
||||
TSTFLAG2(h->af, S),
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue