momiji
m68k emulator infrastructure
About Source codeTable of contents
momiji::StatusRegister
Defined in header <momiji/System.h>
struct StatusRegister
A class representing the status register.
The status register is set accordingly when executing a cmp
, add
, sub
,
mul
or div
.
Member fields
Field | Type | Notes | Default value |
---|---|---|---|
extend | Implementation-defined |
Also called ‘E’ or ‘X’, it signals if a sign extension happened. Unimplemented. |
0 |
negative | Implementation-defined |
Also called ‘N’, it signals if the resulting number is negative. |
0 |
zero | Implementation-defined |
Also called ‘Z’, it signals if the resulting number is zero. |
0 |
overflow | Implementation-defined |
Also called ‘V’, it signals if an overflow happened. |
0 |
carry | Implementation-defined |
Also called ‘C’, it signals if a carry happened. Unimplemented. |
0 |
Status of implementation
When a status is “unimplemented” it means that no instruction changes that value.
This is not by design! This just means that sooner or later it will be set by an instruction.