Merge pull request #153 from AntonioND/an/opcode-ref

Add GBZ80 opcode reference man page

Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
Antonio Niño Díaz
2017-04-08 18:43:21 +01:00
3 changed files with 1633 additions and 74 deletions

View File

@@ -79,6 +79,7 @@ install: all
$Qinstall ${STRIP} -m ${BINMODE} rgbgfx ${DESTDIR}${bindir}/rgbgfx $Qinstall ${STRIP} -m ${BINMODE} rgbgfx ${DESTDIR}${bindir}/rgbgfx
$Qmkdir -p ${DESTDIR}${mandir}/man1 ${DESTDIR}${mandir}/man5 ${DESTDIR}${mandir}/man7 $Qmkdir -p ${DESTDIR}${mandir}/man1 ${DESTDIR}${mandir}/man5 ${DESTDIR}${mandir}/man7
$Qinstall -m ${MANMODE} src/rgbds.7 ${DESTDIR}${mandir}/man7/rgbds.7 $Qinstall -m ${MANMODE} src/rgbds.7 ${DESTDIR}${mandir}/man7/rgbds.7
$Qinstall -m ${MANMODE} src/gbz80.7 ${DESTDIR}${mandir}/man7/gbz80.7
$Qinstall -m ${MANMODE} src/asm/rgbasm.1 ${DESTDIR}${mandir}/man1/rgbasm.1 $Qinstall -m ${MANMODE} src/asm/rgbasm.1 ${DESTDIR}${mandir}/man1/rgbasm.1
$Qinstall -m ${MANMODE} src/fix/rgbfix.1 ${DESTDIR}${mandir}/man1/rgbfix.1 $Qinstall -m ${MANMODE} src/fix/rgbfix.1 ${DESTDIR}${mandir}/man1/rgbfix.1
$Qinstall -m ${MANMODE} src/link/rgblink.1 ${DESTDIR}${mandir}/man1/rgblink.1 $Qinstall -m ${MANMODE} src/link/rgblink.1 ${DESTDIR}${mandir}/man1/rgblink.1
@@ -135,6 +136,7 @@ MANDOC = -Thtml -Ios=General -Oman=/rgbds/manual/%N/ \
wwwman: wwwman:
$Qmandoc ${MANDOC} src/rgbds.7 | sed s/OpenBSD/General/ > rgbds.html $Qmandoc ${MANDOC} src/rgbds.7 | sed s/OpenBSD/General/ > rgbds.html
$Qmandoc ${MANDOC} src/gbz80.7 | sed s/OpenBSD/General/ > gbz80.html
$Qmandoc ${MANDOC} src/asm/rgbasm.1 | sed s/OpenBSD/General/ > \ $Qmandoc ${MANDOC} src/asm/rgbasm.1 | sed s/OpenBSD/General/ > \
rgbasm.html rgbasm.html
$Qmandoc ${MANDOC} src/fix/rgbfix.1 | sed s/OpenBSD/General/ > \ $Qmandoc ${MANDOC} src/fix/rgbfix.1 | sed s/OpenBSD/General/ > \

View File

@@ -24,11 +24,10 @@
* DEC ss : 0x0B|(ss<<4) * DEC ss : 0x0B|(ss<<4)
* DI : 0xF3 * DI : 0xF3
* EI : 0xFB * EI : 0xFB
*EX HL,(SP) : 0xE3
* HALT : 0x76 * HALT : 0x76
* INC r : 0x04|(r<<3) * INC r : 0x04|(r<<3)
* INC ss : 0x03|(ss<<4) * INC ss : 0x03|(ss<<4)
*JP (HL) : 0xE9 * JP HL : 0xE9
* JP cc,nn : 0xC2|(cc<<3) * JP cc,nn : 0xC2|(cc<<3)
* JP nn : 0xC3|(cc<<3) * JP nn : 0xC3|(cc<<3)
* JR n : 0x18 * JR n : 0x18
@@ -37,12 +36,12 @@
* LD ($FF00+C),A : 0xE2 * LD ($FF00+C),A : 0xE2
* LD ($FF00+n),A : 0xE0 * LD ($FF00+n),A : 0xE0
* LD (nn),A : 0xEA * LD (nn),A : 0xEA
*LD (rr),A : 0x02|(rr<<4) * LD (rr),A : 0x02|(rr<<4) // HL+ and HL- included
* LD A,($FF00+C) : 0xF2 * LD A,($FF00+C) : 0xF2
* LD A,($FF00+n) : 0xF0 * LD A,($FF00+n) : 0xF0
* LD A,(nn) : 0xFA * LD A,(nn) : 0xFA
*LD A,(rr) : 0x0A|(rr<<4) * LD A,(rr) : 0x0A|(rr<<4) // HL+ and HL- included
*LD HL,(SP+n) : 0xF8 * LD HL,SP+n : 0xF8
* LD SP,HL : 0xF9 * LD SP,HL : 0xF9
* LD r,n : 0x06|(r<<3) * LD r,n : 0x06|(r<<3)
* LD r,r' : 0x40|(r<<3)|r' // NOTE: LD (HL),(HL) not allowed * LD r,r' : 0x40|(r<<3)|r' // NOTE: LD (HL),(HL) not allowed
@@ -72,7 +71,7 @@
* SLA r : 0xCB 0x20|r * SLA r : 0xCB 0x20|r
* SRA r : 0xCB 0x28|r * SRA r : 0xCB 0x28|r
* SRL r : 0xCB 0x38|r * SRL r : 0xCB 0x38|r
*STOP : 0x10 * STOP : 0x10 0x00
* SUB A,n : 0xD6 * SUB A,n : 0xD6
* SUB A,r : 0x90|r * SUB A,r : 0x90|r
* SWAP r : 0xCB 0x30|r * SWAP r : 0xCB 0x30|r

1558
src/gbz80.7 Normal file

File diff suppressed because it is too large Load Diff