We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
Half-Carry Flag: Difference between revisions
From SnesLab
(added bit position) |
(bit 3 to bit 4 carry) |
||
Line 1: | Line 1: | ||
The '''Half-carry flag''' (H) exists on the [[SPC700]], as bit 3 of the [[Program Status Word]]. It applies to the bottom 4 bits of the accumulator. | The '''Half-carry flag''' (H) exists on the [[SPC700]], as bit 3 of the [[Program Status Word]]. It applies to the bottom 4 bits of the accumulator, meaning it is set whenever bit 3 of an [[ALU]] operation carries over into bit 4. | ||
It is cleared by [[CLRV]], but there is no [[SETV]] command to set it. | |||
[[Category:ASM]] | [[Category:ASM]] |
Revision as of 00:46, 12 May 2023
The Half-carry flag (H) exists on the SPC700, as bit 3 of the Program Status Word. It applies to the bottom 4 bits of the accumulator, meaning it is set whenever bit 3 of an ALU operation carries over into bit 4.
It is cleared by CLRV, but there is no SETV command to set it.