mirror of
https://github.com/thiagoauler/apple1.git
synced 2024-06-13 01:29:27 +00:00
little adjustments... woz monitor tentative run
This commit is contained in:
parent
5392839714
commit
3cfe0390b8
|
@ -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
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user