PRESENTS

DiZ GameBoy Disassembler v1.1
By HeroZero/Oldskool 96-05-19

OK, well this doc is not complete.. It just describes the changes from
the v0.99 release.

The coolest thing in this release is the .sym file support.
If you are assembling your GB stuff with tasm then use the
-s option to create a XXX.sym file. The diz.exe will read the
.sym file and kinda "auto comment" the code while disassembling.
I have also typed in most of the GB registers so they will be auto
commented as well.. I have included a very simple sample in the \sample
directory. Type "diz test.boy" to see the "auto commenting" in action.
It should look something like this...

START:
$000150   31 F4 FF      LD   SP,$FFF4
$000153   3E 00         LD   A,$00
$000155   E0 FF         LD   ($FFFF),A      ; Interrupt Enable
$000157   97            SUB  A
$000158   E0 41         LD   ($FF41),A      ; LCDC Status
$00015A   E0 42         LD   ($FF42),A      ; Scroll Y
$00015C   E0 43         LD   ($FF43),A      ; Scroll X
$00015E   CD 78 01      CALL $0178          ; name: WAITVBL
$000161   3E 11         LD   A,$11
$000163   E0 40         LD   ($FF40),A      ; LCD Control
$000165   CD 8D 01      CALL $018D          ; name: NOR_COL
$000168   CD 92 01      CALL $0192          ; name: MOVE_CHAR
$00016B   CD A8 01      CALL $01A8          ; name: MOVE_TEXT
$00016E   CD 78 01      CALL $0178          ; name: WAITVBL
$000171   3E 91         LD   A,$91
$000173   E0 40         LD   ($FF40),A      ; LCD Control
DIE:
$000175   C3 75 01      JP   $0175          ; name: DIE
WAITVBL:
$000178   F0 40         LD   A,($FF40)      ; LCD Control
$00017A   87            ADD  A,A
$00017B   D0            RET  NC
NOTYET:
$00017C   F0 44         LD   A,($FF44)      ; LCDC Y-Coordinate
$00017E   FE 90         CP   $90
$000180   20 FA         JR   NZ,$017C
$000182   C9            RET

Now, this should make it abit easier to disassemble your code..
One small thing, the JR opcodes are NOT commentet yet...

Another thing added is a "log everything to a file" option.
Just use the command 'L' to toggle it on and off.
The output is saved is a file called XXX.log.

Well, that's about it.

If you find any bugs then please email me herozero@publ.ica.se

If you never coded the GB before then do check out Jeffs WWW and
grab tasm and other things you need from his pages.
http://hiwaay.net/~jfrohwei/gameboy/home.html

And don't miss Marats great Virtual GameBoy at
http://freeflight.com/fms/GameBoy/

Have fun!!
-->HeroZero/Oldskool

where the flava is still alive ...