[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[f-cpu] new cjump instruction
- To: f-cpu@seul.org
- Subject: [f-cpu] new cjump instruction
- From: nico <nico@seul.org>
- Date: Fri, 11 Apr 2003 19:51:22 +0000
- Delivered-to: archiver@seul.org
- Delivered-to: f-cpu-outgoing@seul.org
- Delivered-to: f-cpu@seul.org
- Delivery-date: Fri, 11 Apr 2003 13:52:32 -0400
- Reply-to: f-cpu@seul.org
- Sender: owner-f-cpu@seul.org
I propose a new cjump to enable 0 cost jump.
cjump (R1,#imm12, cond)
{
if (cond(R1))
{
PC = (PC & 0x0FFF) | #imm12;
}
else
{
PC++;
}
}
PC lsb is just replaced by the 12 bit constant, that's lightning fast.
No cycle could be lost by reading register bank.
What do you think of it ?
nicO
*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu in the body. http://f-cpu.seul.org/