Z80 Source Code in ROM

The US/European BIOS ROM with Hang On and Safari Hunt contains the following Z80 source code at $07b5d-$07fef:

ADD+558H
        LD      BC,10
        JP      LDIRVMM##
;       *** Game Over Display ***       ;
DP14S:
        LD      HL,NXOVTBL3
        LD      DE,SCRADD+514H
        LD      BC,12
        JP      LDIRVMM##

NXOVTBL1:
        DEFB    000H
        DEFB    PP,RR,OO,CC,EE,EE,DD,00,TT,OO,00,TT,HH,EE
NXOVTBL2:
        DEFB    000H
        DEFB    NN,EE,XX,TT,00,RR,OO,UU,NN,DD
NXOVTBL3:
        DEFB    000H
        DEFB    GG,AA,MM,EE,00,II,SS,00,OO,VV,EE,RR


;===============================================;
;       *** Hunting Game Ketsuka Display ***    ;
;===============================================;
DISP15:
        LD      A,1
        LD      (KEDISC3),A            
        RET
KDISPHA::
        LD      A,(KEDISC3)
        OR      A
        RET     Z
        XOR     A
        LD      (KEDISC3),A
        LD      BC,08001H
        CALL    WRTVDP##
        LD      DE,0C001H
        LD      A,03FH
        CALL    WRTVRM##
        LD      DE,0C000H
        LD      A,00CH
        CALL    WRTVRM##
        LD      DE,0C010H
        LD      A,00CH
        CALL    WRTVRM##
        LD      DE,SCRADD
        LD      BC,020H*28
        LD      HL,00000H
        CALL    FILVRMM##
        ;
        LD      DE,SCRADD+0EAH
        LD      BC,1
        LD      HL,HAZERTBL
        CALL    LDIRVMM
        LD      DE,SCRADD+22AH
        LD      BC,1
        LD      HL,HAZERTBL
        CALL    LDIRVMM
        LD      DE,SCRADD+2EAH
        LD      BC,1
        LD      HL,HAZERTBL
        CALL    LDIRVMM
        ;
        LD      HL,CYTOPTBL             ; "TOP"
        LD      DE,SCRADD+0C8H
        LD      BC,3
        CALL    LDIRVMM##
        LD      HL,CYGVTBL1+9           ; "ROUND"
        LD      DE,SCRADD+188H
        LD      BC,5
        CALL    LDIRVMM##
        LD      HL,

This source code corresponds to the fragment of the binary at $008f7-$009a4. This is part of the logic to display the white-on-green status screen.

ROM Version Differences

The ending screen of the BIOS version of Safari Hunt displays a different message to the cartridge versions:

Marksman Shooting / TrapHang On / Safari Hunt [Proto]Hang On / Safari Hunt [BIOS]
Shooting / Safari Huntand Hang On / Safari Hunt 

The message displayed by the cartridge versions is truncated. The full message contained in each ROM is:

YOU ARE A WONDERFUL HUNTER
LET'S GO TO THE REAL HUNTING
WITH A REAL GUN


Researched by RetroSpark




Return to top
0.231s