Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skipping a 8-byte instruction should take 1 extra-cycle #56

Closed
catageek opened this issue Feb 12, 2015 · 1 comment
Closed

Skipping a 8-byte instruction should take 1 extra-cycle #56

catageek opened this issue Feb 12, 2015 · 1 comment
Labels

Comments

@catageek
Copy link
Contributor

IFEQ %r1,0 ; condition is false
IFEQ %r1,0xBEBACAFE ; skip this, should take 2 cycles to skip

The current implementation takes only 1 cycle for the second instruction.
The specification is not clear, but the extra cycle sounds logic.

@Zardoz89
Copy link
Member

I agree, that we need to make more clear these point. But the CPU could check if the instruction have a long literral reading the first 4 byte (bits M and L are 1) and then do a pc=pc+8 instead of a pc=pc+4

Zardoz89 added a commit to trillek-team/trillek-computer that referenced this issue Feb 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants