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

@ -31,7 +31,7 @@ void decode()
db aaacc = (aaa << 2) | cc;
db bbbcc = (bbb << 2) | cc;
opcode_in_list = ir;
opcode_in_list = ir;
opcode_in_table = aaacc;
address_mode = bbb;

View File

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

View File

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