little adjustments... woz monitor tentative run

This commit is contained in:
Thiago Auler dos Santos 2017-11-16 23:21:21 -02:00
parent 5392839714
commit 3cfe0390b8
3 changed files with 35 additions and 3 deletions

View File

@ -78,10 +78,10 @@ void write_mem(dw address, db data)
// 4KB memory RAM // 4KB memory RAM
ram_memory[address] = data; ram_memory[address] = data;
} }
else if (address == 0xD010) else if (address == 0xD012)
{ {
// output character to video // output character to video
printf("%c", data); printf("%c", data & 0x7F);
} }
// any other addressed memory will be ignored on write // any other addressed memory will be ignored on write

View File

@ -197,6 +197,10 @@ void bcc()
fetch_operand(); fetch_operand();
pc = address; pc = address;
} }
else
{
pc = pc + 1;
}
} }
void bcs() void bcs()
@ -207,6 +211,10 @@ void bcs()
fetch_operand(); fetch_operand();
pc = address; pc = address;
} }
else
{
pc = pc + 1;
}
} }
void beq() void beq()
@ -217,6 +225,10 @@ void beq()
fetch_operand(); fetch_operand();
pc = address; pc = address;
} }
else
{
pc = pc + 1;
}
} }
void bit() void bit()
@ -236,6 +248,10 @@ void bmi()
fetch_operand(); fetch_operand();
pc = address; pc = address;
} }
else
{
pc = pc + 1;
}
} }
void bne() void bne()
@ -246,6 +262,10 @@ void bne()
fetch_operand(); fetch_operand();
pc = address; pc = address;
} }
else
{
pc = pc + 1;
}
} }
void bpl() void bpl()
@ -256,6 +276,10 @@ void bpl()
fetch_operand(); fetch_operand();
pc = address; pc = address;
} }
else
{
pc = pc + 1;
}
} }
void brk() void brk()
@ -274,6 +298,10 @@ void bvc()
fetch_operand(); fetch_operand();
pc = address; pc = address;
} }
else
{
pc = pc + 1;
}
} }
void bvs() void bvs()
@ -284,6 +312,10 @@ void bvs()
fetch_operand(); fetch_operand();
pc = address; pc = address;
} }
else
{
pc = pc + 1;
}
} }
void clc() void clc()