mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Make instruction descriptions more proper English
Use articles where appropriate Use adjectives where it makes sense
This commit is contained in:
58
src/gbz80.7
58
src/gbz80.7
@@ -809,7 +809,7 @@ Flags: None affected.
|
|||||||
.Ss LD [HL],r8
|
.Ss LD [HL],r8
|
||||||
Store value in register
|
Store value in register
|
||||||
.Ar r8
|
.Ar r8
|
||||||
into byte pointed to by register
|
into the byte pointed to by register
|
||||||
.Sy HL .
|
.Sy HL .
|
||||||
.Pp
|
.Pp
|
||||||
Cycles: 2
|
Cycles: 2
|
||||||
@@ -820,7 +820,7 @@ Flags: None affected.
|
|||||||
.Ss LD [HL],n8
|
.Ss LD [HL],n8
|
||||||
Store value
|
Store value
|
||||||
.Ar n8
|
.Ar n8
|
||||||
into byte pointed to by register
|
into the byte pointed to by register
|
||||||
.Sy HL .
|
.Sy HL .
|
||||||
.Pp
|
.Pp
|
||||||
Cycles: 3
|
Cycles: 3
|
||||||
@@ -831,7 +831,7 @@ Flags: None affected.
|
|||||||
.Ss LD r8,[HL]
|
.Ss LD r8,[HL]
|
||||||
Load value into register
|
Load value into register
|
||||||
.Ar r8
|
.Ar r8
|
||||||
from byte pointed to by register
|
from the byte pointed to by register
|
||||||
.Sy HL .
|
.Sy HL .
|
||||||
.Pp
|
.Pp
|
||||||
Cycles: 2
|
Cycles: 2
|
||||||
@@ -842,7 +842,7 @@ Flags: None affected.
|
|||||||
.Ss LD [r16],A
|
.Ss LD [r16],A
|
||||||
Store value in register
|
Store value in register
|
||||||
.Sy A
|
.Sy A
|
||||||
into byte pointed to by register
|
into the byte pointed to by register
|
||||||
.Ar r16 .
|
.Ar r16 .
|
||||||
.Pp
|
.Pp
|
||||||
Cycles: 2
|
Cycles: 2
|
||||||
@@ -853,7 +853,7 @@ Flags: None affected.
|
|||||||
.Ss LD [n16],A
|
.Ss LD [n16],A
|
||||||
Store value in register
|
Store value in register
|
||||||
.Sy A
|
.Sy A
|
||||||
into byte at address
|
into the byte at address
|
||||||
.Ar n16 .
|
.Ar n16 .
|
||||||
.Pp
|
.Pp
|
||||||
Cycles: 4
|
Cycles: 4
|
||||||
@@ -864,9 +864,9 @@ Flags: None affected.
|
|||||||
.Ss LDH [n16],A
|
.Ss LDH [n16],A
|
||||||
Store value in register
|
Store value in register
|
||||||
.Sy A
|
.Sy A
|
||||||
into byte at address
|
into the byte at address
|
||||||
.Ar n16 ,
|
.Ar n16 ,
|
||||||
provided it is between
|
provided the address is between
|
||||||
.Ad $FF00
|
.Ad $FF00
|
||||||
and
|
and
|
||||||
.Ad $FFFF .
|
.Ad $FFFF .
|
||||||
@@ -884,7 +884,7 @@ or
|
|||||||
.Ss LDH [C],A
|
.Ss LDH [C],A
|
||||||
Store value in register
|
Store value in register
|
||||||
.Sy A
|
.Sy A
|
||||||
into byte at address
|
into the byte at address
|
||||||
.Ad $FF00+C .
|
.Ad $FF00+C .
|
||||||
.Pp
|
.Pp
|
||||||
Cycles: 2
|
Cycles: 2
|
||||||
@@ -900,7 +900,7 @@ or
|
|||||||
.Ss LD A,[r16]
|
.Ss LD A,[r16]
|
||||||
Load value in register
|
Load value in register
|
||||||
.Sy A
|
.Sy A
|
||||||
from byte pointed to by register
|
from the byte pointed to by register
|
||||||
.Ar r16 .
|
.Ar r16 .
|
||||||
.Pp
|
.Pp
|
||||||
Cycles: 2
|
Cycles: 2
|
||||||
@@ -911,7 +911,7 @@ Flags: None affected.
|
|||||||
.Ss LD A,[n16]
|
.Ss LD A,[n16]
|
||||||
Load value in register
|
Load value in register
|
||||||
.Sy A
|
.Sy A
|
||||||
from byte at address
|
from the byte at address
|
||||||
.Ar n16 .
|
.Ar n16 .
|
||||||
.Pp
|
.Pp
|
||||||
Cycles: 4
|
Cycles: 4
|
||||||
@@ -922,9 +922,9 @@ Flags: None affected.
|
|||||||
.Ss LDH A,[n16]
|
.Ss LDH A,[n16]
|
||||||
Load value in register
|
Load value in register
|
||||||
.Sy A
|
.Sy A
|
||||||
from byte at address
|
from the byte at address
|
||||||
.Ar n16 ,
|
.Ar n16 ,
|
||||||
provided it is between
|
provided the address is between
|
||||||
.Ad $FF00
|
.Ad $FF00
|
||||||
and
|
and
|
||||||
.Ad $FFFF .
|
.Ad $FFFF .
|
||||||
@@ -942,7 +942,7 @@ or
|
|||||||
.Ss LDH A,[C]
|
.Ss LDH A,[C]
|
||||||
Load value in register
|
Load value in register
|
||||||
.Sy A
|
.Sy A
|
||||||
from byte at address
|
from the byte at address
|
||||||
.Ad $FF00+c .
|
.Ad $FF00+c .
|
||||||
.Pp
|
.Pp
|
||||||
Cycles: 2
|
Cycles: 2
|
||||||
@@ -958,7 +958,7 @@ or
|
|||||||
.Ss LD [HLI],A
|
.Ss LD [HLI],A
|
||||||
Store value in register
|
Store value in register
|
||||||
.Sy A
|
.Sy A
|
||||||
into byte pointed by
|
into the byte pointed by
|
||||||
.Sy HL
|
.Sy HL
|
||||||
and increment
|
and increment
|
||||||
.Sy HL
|
.Sy HL
|
||||||
@@ -977,7 +977,7 @@ or
|
|||||||
.Ss LD [HLD],A
|
.Ss LD [HLD],A
|
||||||
Store value in register
|
Store value in register
|
||||||
.Sy A
|
.Sy A
|
||||||
into byte pointed by
|
into the byte pointed by
|
||||||
.Sy HL
|
.Sy HL
|
||||||
and decrement
|
and decrement
|
||||||
.Sy HL
|
.Sy HL
|
||||||
@@ -996,7 +996,7 @@ or
|
|||||||
.Ss LD A,[HLD]
|
.Ss LD A,[HLD]
|
||||||
Load value into register
|
Load value into register
|
||||||
.Sy A
|
.Sy A
|
||||||
from byte pointed by
|
from the byte pointed by
|
||||||
.Sy HL
|
.Sy HL
|
||||||
and decrement
|
and decrement
|
||||||
.Sy HL
|
.Sy HL
|
||||||
@@ -1015,7 +1015,7 @@ or
|
|||||||
.Ss LD A,[HLI]
|
.Ss LD A,[HLI]
|
||||||
Load value into register
|
Load value into register
|
||||||
.Sy A
|
.Sy A
|
||||||
from byte pointed by
|
from the byte pointed by
|
||||||
.Sy HL
|
.Sy HL
|
||||||
and increment
|
and increment
|
||||||
.Sy HL
|
.Sy HL
|
||||||
@@ -1327,7 +1327,7 @@ Set if result is 0.
|
|||||||
Set according to result.
|
Set according to result.
|
||||||
.El
|
.El
|
||||||
.Ss RL [HL]
|
.Ss RL [HL]
|
||||||
Rotate byte pointed to by
|
Rotate the byte pointed to by
|
||||||
.Sy HL
|
.Sy HL
|
||||||
left through carry.
|
left through carry.
|
||||||
.Pp
|
.Pp
|
||||||
@@ -1384,7 +1384,7 @@ Set if result is 0.
|
|||||||
Set according to result.
|
Set according to result.
|
||||||
.El
|
.El
|
||||||
.Ss RLC [HL]
|
.Ss RLC [HL]
|
||||||
Rotate byte pointed to by
|
Rotate the byte pointed to by
|
||||||
.Sy HL
|
.Sy HL
|
||||||
left.
|
left.
|
||||||
.Pp
|
.Pp
|
||||||
@@ -1441,7 +1441,7 @@ Set if result is 0.
|
|||||||
Set according to result.
|
Set according to result.
|
||||||
.El
|
.El
|
||||||
.Ss RR [HL]
|
.Ss RR [HL]
|
||||||
Rotate byte pointed to by
|
Rotate the byte pointed to by
|
||||||
.Sy HL
|
.Sy HL
|
||||||
right through carry.
|
right through carry.
|
||||||
.Pp
|
.Pp
|
||||||
@@ -1498,7 +1498,7 @@ Set if result is 0.
|
|||||||
Set according to result.
|
Set according to result.
|
||||||
.El
|
.El
|
||||||
.Ss RRC [HL]
|
.Ss RRC [HL]
|
||||||
Rotate byte pointed to by
|
Rotate the byte pointed to by
|
||||||
.Sy HL
|
.Sy HL
|
||||||
right.
|
right.
|
||||||
.Pp
|
.Pp
|
||||||
@@ -1637,7 +1637,7 @@ Bytes: 2
|
|||||||
.Pp
|
.Pp
|
||||||
Flags: None affected.
|
Flags: None affected.
|
||||||
.Ss SLA r8
|
.Ss SLA r8
|
||||||
Shift Left Arithmetic register
|
Shift Left Arithmetically register
|
||||||
.Ar r8 .
|
.Ar r8 .
|
||||||
.Pp
|
.Pp
|
||||||
.D1 C <- [7 <- 0] <- 0
|
.D1 C <- [7 <- 0] <- 0
|
||||||
@@ -1658,7 +1658,7 @@ Set if result is 0.
|
|||||||
Set according to result.
|
Set according to result.
|
||||||
.El
|
.El
|
||||||
.Ss SLA [HL]
|
.Ss SLA [HL]
|
||||||
Shift Left Arithmetic byte pointed to by
|
Shift Left Arithmetically the byte pointed to by
|
||||||
.Sy HL .
|
.Sy HL .
|
||||||
.Pp
|
.Pp
|
||||||
.D1 C <- [7 <- 0] <- 0
|
.D1 C <- [7 <- 0] <- 0
|
||||||
@@ -1670,7 +1670,7 @@ Bytes: 2
|
|||||||
Flags: See
|
Flags: See
|
||||||
.Sx SLA r8
|
.Sx SLA r8
|
||||||
.Ss SRA r8
|
.Ss SRA r8
|
||||||
Shift Right Arithmetic register
|
Shift Right Arithmetically register
|
||||||
.Ar r8 .
|
.Ar r8 .
|
||||||
.Pp
|
.Pp
|
||||||
.D1 [7] -> [7 -> 0] -> C
|
.D1 [7] -> [7 -> 0] -> C
|
||||||
@@ -1691,7 +1691,7 @@ Set if result is 0.
|
|||||||
Set according to result.
|
Set according to result.
|
||||||
.El
|
.El
|
||||||
.Ss SRA [HL]
|
.Ss SRA [HL]
|
||||||
Shift Right Arithmetic byte pointed to by
|
Shift Right Arithmetically the byte pointed to by
|
||||||
.Sy HL .
|
.Sy HL .
|
||||||
.Pp
|
.Pp
|
||||||
.D1 [7] -> [7 -> 0] -> C
|
.D1 [7] -> [7 -> 0] -> C
|
||||||
@@ -1703,7 +1703,7 @@ Bytes: 2
|
|||||||
Flags: See
|
Flags: See
|
||||||
.Sx SRA r8
|
.Sx SRA r8
|
||||||
.Ss SRL r8
|
.Ss SRL r8
|
||||||
Shift Right Logic register
|
Shift Right Logically register
|
||||||
.Ar r8 .
|
.Ar r8 .
|
||||||
.Pp
|
.Pp
|
||||||
.D1 0 -> [7 -> 0] -> C
|
.D1 0 -> [7 -> 0] -> C
|
||||||
@@ -1724,7 +1724,7 @@ Set if result is 0.
|
|||||||
Set according to result.
|
Set according to result.
|
||||||
.El
|
.El
|
||||||
.Ss SRL [HL]
|
.Ss SRL [HL]
|
||||||
Shift Right Logic byte pointed to by
|
Shift Right Logically the byte pointed to by
|
||||||
.Sy HL .
|
.Sy HL .
|
||||||
.Pp
|
.Pp
|
||||||
.D1 0 -> [7 -> 0] -> C
|
.D1 0 -> [7 -> 0] -> C
|
||||||
@@ -1793,7 +1793,7 @@ Bytes: 2
|
|||||||
Flags: See
|
Flags: See
|
||||||
.Sx SUB A,r8
|
.Sx SUB A,r8
|
||||||
.Ss SWAP r8
|
.Ss SWAP r8
|
||||||
Swap upper 4 bits in register
|
Swap the upper 4 bits in register
|
||||||
.Ar r8
|
.Ar r8
|
||||||
and the lower 4 ones.
|
and the lower 4 ones.
|
||||||
.Pp
|
.Pp
|
||||||
@@ -1813,7 +1813,7 @@ Set if result is 0.
|
|||||||
0
|
0
|
||||||
.El
|
.El
|
||||||
.Ss SWAP [HL]
|
.Ss SWAP [HL]
|
||||||
Swap upper 4 bits in the byte pointed by
|
Swap the upper 4 bits in the byte pointed by
|
||||||
.Sy HL
|
.Sy HL
|
||||||
and the lower 4 ones.
|
and the lower 4 ones.
|
||||||
.Pp
|
.Pp
|
||||||
|
|||||||
Reference in New Issue
Block a user