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

F flag ¿what is it? #34

Open
xmontero opened this issue Aug 8, 2019 · 1 comment
Open

F flag ¿what is it? #34

xmontero opened this issue Aug 8, 2019 · 1 comment

Comments

@xmontero
Copy link

xmontero commented Aug 8, 2019

Hey, I found your superb simulator today. I used to code in assembler about 20 or 30 years ago and I found it very didactic for teammates that now only know high-level coding.

I see the Z is the Zero flag and the C is the Carry flag.

But, what is the F flag to the right? When does it get true?

In the instruction set document instruction-set.html I search for "f" whole words and I don't see any reference to it.

@xmontero
Copy link
Author

xmontero commented Aug 8, 2019

Humm,... I see... the "Fault" flag when an opcode is wrong...

Test sample:

mov b, 0
add b, 0x94
sub b, 0x94
DB 88
hlt

when you execute the sub, the program counter points to a memory address filled with an 88. This does not correspond to any opcode so the F is set to true.

I'd suggest adding it to the documentation ;)

@xmontero xmontero changed the title F flag ¿what is? F flag ¿what is it? Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant