shithub: rgbds

Download patch

ref: fac724748320185960bbdf6865f80326d736b515
parent: 11c47570ce03991c5e883f61244c01abda6e55b4
author: Eldred Habert <eldredhabert0@gmail.com>
date: Tue Jun 5 12:08:56 EDT 2018

Update descriptions of how flags are pushed/popped

Signed-off-by: ISSOtm <eldredhabert0@gmail.com>

--- a/src/gbz80.7
+++ b/src/gbz80.7
@@ -1105,7 +1105,21 @@
 .Pp
 Bytes: 1
 .Pp
-Flags: None affected.
+Flags:
+.Bl -bullet -compact
+.It
+.Sy Z :
+Set from bit 7 of the popped low byte.
+.It
+.Sy N :
+Set from bit 6 of the popped low byte.
+.It
+.Sy H :
+Set from bit 5 of the popped low byte.
+.It
+.Sy C :
+Set from bit 4 of the popped low byte.
+.El
 .Ss POP r16
 Pop register
 .Ar r16
@@ -1119,7 +1133,15 @@
 .Ss PUSH AF
 Push register
 .Sy AF
-into the stack.
+into the stack. The low byte's bit 7 corresponds to the
+.Sy Z
+flag, its bit 6 to the
+.Sy N
+flag, bit 5 to the
+.Sy H
+flag, and bit 4 to the
+.Sy C
+flag. Bits 3 to 0 are reset.
 .Pp
 Cycles: 4
 .Pp