the cutting room mirror

IK.DAT

This article has a talk page!
view on tcrf.net

This is a sub-page of Kinniku Banzuke: Road to Sasuke.

0x20400#

   $3,$16,%lo(s325_w) # low
    lbu $2,2($3)
    #nop
    addu    $2,$2,1
    sb  $2,2($3)
    sll $2,$2,24
    sra $2,$2,24
    slt $2,$2,30
    .set    noreorder
    .set    nomacro
    bne $2,$0,$L43
    lui $4,%hi(chara_w) # high
    .set    macro
    .set    reorder


    .loc    1 499
LM299:
    addiu   $4,$4,%lo(chara_w) # low

    .loc    1 503
LM300:
    li  $5,19           # 0x00000013
    move    $6,$0
    li  $7,1            # 0x00000001

    .loc    1 499
LM301:
    li  $2,150          # 0x00000096
    sw  $2,20($4)

    .loc    1 500
LM302:
    li  $2,-1024            # 0xfffffc00
    sw  $2,32($4)

    .loc    1 501
LM303:
    li  $2,16           # 0x00000010

    .loc    1 502
LM304:
    lui $3,%hi(game_w+400) # high

    .loc    1 501
LM305:
    sb  $2,1180($4)

    .loc    1 502
LM306:
    move    $2,$7

    .loc    1 503
LM307:
    .set    noreorder
    .set    nomacro
    jal SetAnime3D
    sh  $2,%lo(game_w+400)($3)
    .set    macro
    .set    reorder


    .loc    1 504
LM308:
    li  $2,10           # 0x0000000a

    .loc    1 505
LM309:
    .set    noreorder
    .set    nomacro
    j   $L43
    sb  $2,%lo(s325_w)($16)
    .set    macro
    .set    reorder

$L108:

    .loc    1 507
LM310:
    lui $2,%

0x40C00#

typedef    long *  qaddr_t;     
typedef u_long  ino_t;
typedef long    swblk_t;






typedef long    time_t;
typedef short   dev_t;
typedef long    off_t;
typedef u_short uid_t;
typedef u_short gid_t;




# 3 ".\\h\\ps000.h" 2

# 1 "c:/ps/psx/include\\sys/file.h" 1 3
 


 






# 1 "c:/ps/psx/include\\sys/fcntl.h" 1 3
 


 






 














# 11 "c:/ps/psx/include\\sys/file.h" 2 3


 




















# 4 ".\\h\\ps000.h" 2

# 1 "c:/ps/psx/include\\kernel.h" 1 3



 


 



# 1 "c:/ps/psx/include\\r3000.h" 1 3

0x61400#

;
            chara_w[0].ty= 150 +350;                                             
            s330_w.step0=S330_FAIL;                                              
        break;
        case S330_FAIL:                                                          
            if(++s330_w.time0<30)   break;
            chara_w[0].ty=150;                                                    
            if(chara_w[0].anime_no==STAGE303_00+S33A_CLASH) chara_w[0].tx+=125;  

            chara_w[0].anime_speed=0x10;                                         
            game_w.area=1;                                                       
            SetAnime3D(&chara_w[0],ANIMEB_1B,0,1);
            s330_w.step0=S330_FAIL2;
        break;
        case S330_FAIL2:                                                         
Nob_Effect_HAMON35();    
            if(GetAnime3DStatus(&chara_w[0]))   break;                           
            SetAnime3D(&chara_w[0],ANIMEB_1C,1,1);
            (sys.step3) = 3 ; s330_w.step0=s330_w.time0=0;               
        break;
        case S330_WAKE:                                                          
            if(GetAnime3DStatus(&chara_w[0]))   break;                           
            st3gg.B_Font= 3 ;
            as_on(&st3gg,10 );
            chara_w[0].anime_speed=0x10;                                         
            SetAnime3D(&chara_w[0],ANIMEB_00+2,0,1);                             
            s330_w.time0=1;                                                      
            s330_w.step0=S330_WALK;                                      

0x81C00#

c; .endef
    .def    v0; .val    25; .scl    8;  .type   0xc;    .endef
    .def    u1; .val    26; .scl    8;  .type   0xc;    .endef
    .def    v1; .val    27; .scl    8;  .type   0xc;    .endef
    .def    u2; .val    28; .scl    8;  .type   0xc;    .endef
    .def    v2; .val    29; .scl    8;  .type   0xc;    .endef
    .def    u3; .val    30; .scl    8;  .type   0xc;    .endef
    .def    v3; .val    31; .scl    8;  .type   0xc;    .endef
    .def    x0; .val    32; .scl    8;  .tag    .2fake; .size   8;  .type   0x8;    .endef
    .def    x1; .val    40; .scl    8;  .tag    .2fake; .size   8;  .type   0x8;    .endef
    .def    x2; .val    48; .scl    8;  .tag    .2fake; .size   8;  .type   0x8;    .endef
    .def    x3; .val    56; .scl    8;  .tag    .2fake; .size   8;  .type   0x8;    .endef
    .def    n0; .val    64; .scl    8;  .tag    .2fake; .size   8;  .type   0x8;    .endef
    .def    n1; .val    72; .scl    8;  .tag    .2fake; .size   8;  .type   0x8;    .endef
    .def    n2; .val    80; .scl    8;  .tag    .2fake; .size   8;  .type   0x8;    .endef
    .def    n3; .val    88; .scl    8;  .tag    .2fake; .size   8;  .type   0x8;    .endef
    .def    v_ofs;  .val    96; .scl    8;  .tag    .2fake; .size   8;  .type   0x18;   .endef
    .def    n_ofs;  .val    100;    .scl    8;  .tag    .2fake; .size   8;  .type   0x18;   .endef
    .

0xA2400#

0xb;   .endef
    .def    STAGE100_1E;    .val    38; .scl    16; .type   0xb;    .endef
    .def    STAGE100_1F;    .val    39; .scl    16; .type   0xb;    .endef
    .def    STAGE100_20;    .val    40; .scl    16; .type   0xb;    .endef
    .def    STAGE100_24;    .val    41; .scl    16; .type   0xb;    .endef
    .def    STAGE100_25;    .val    42; .scl    16; .type   0xb;    .endef
    .def    STAGE100_26;    .val    43; .scl    16; .type   0xb;    .endef
    .def    STAGE100_27;    .val    44; .scl    16; .type   0xb;    .endef
    .def    STAGE100_28;    .val    45; .scl    16; .type   0xb;    .endef
    .def    STAGE100_TYPE_MAX;  .val    46; .scl    16; .type   0xb;    .endef
    .def    .eos;   .val    4;  .scl    102;    .tag    _STAGE100_TYPE_IDX_;    .size   4;  .endef
    .def    STAGE100_TYPE_IDX;  .scl    13; .tag    _STAGE100_TYPE_IDX_;    .size   4;  .type   0xa;    .endef
    .def    _STAGE101_TYPE_IDX_;    .scl    15; .type   0xa;    .size   4;  .endef
    .def    STAGE101_TYPE_MIN;  .val    21; .scl    16; .type   0xb;    .endef
    .def    STAGE101_00;    .val    21; .scl    16; .type   0xb;    .endef
    .def    STAGE101_01;    .val    22; .scl    16; .type   0xb;    .endef
    .def    STAGE101_02;    .val    23; .scl    16; .type   0xb;    .endef
    .def    STAGE101_03;    .val    24; .scl    16; .type   0xb

0x1BB200#

file   1 "c:/ps/psx/include\\kernel.h"
    .def    ToT;    .scl    10; .type   0x8;    .size   8;  .endef
    .def    head;   .val    0;  .scl    8;  .type   0x1f;   .endef
    .def    size;   .val    4;  .scl    8;  .type   0x5;    .endef
    .def    .eos;   .val    8;  .scl    102;    .tag    ToT;    .size   8;  .endef
    .def    TCBH;   .scl    10; .type   0x8;    .size   8;  .endef
    .def    entry;  .val    0;  .scl    8;  .tag    TCB;    .size   0;  .type   0x18;   .endef
    .def    flag;   .val    4;  .scl    8;  .type   0x5;    .endef
    .def    .eos;   .val    8;  .scl    102;    .tag    TCBH;   .size   8;  .endef
    .def    TCB;    .scl    10; .type   0x8;    .size   192;    .endef
    .def    status; .val    0;  .scl    8;  .type   0x5;    .endef
    .def    mode;   .val    4;  .scl    8;  .type   0x5;    .endef
    .def    reg;    .val    8;  .scl    8;  .dim    40; .size   160;    .type   0x3f;   .endef
    .def    system; .val    168;    .scl    8;  .dim    6;  .size   24; .type   0x35;   .endef
    .def    .eos;   .val    192;    .scl    102;    .tag    TCB;    .size   192;    .endef
    .def    EvCB;   .scl    10; .type   0x8;    .size   28; .endef
    .def    desc;   .val    0;  .scl    8;  .type   0xf;    .endef
    .def    status; .val    4;  .scl    8;  .type   0x5;    .endef
    .def    spec;   .val    8;  .scl    8;  .type   0x5;    .endef
    .def    mode;   .val    12; .scl    8;  .type   0x5;    .endef
    .def    FHandler;   .val    16; .scl    8;  .type   0x95;   .endef
    .def    system; .val    20; .scl    8;  .dim    2;  .size   8;  .type   0x35;   .endef
    .def    .eos;   .val    28; .scl    102;    .tag    EvCB;   .size   28; .endef
    .def    EXEC;   .scl    10; .type   0x8;    .size   60; .endef
    .def    pc0;    .val    0;  .scl    8;  .type   0xf;    .endef
    .def    gp0;    .val    4;  .scl    8;  .type   0xf;    .endef
    .def    t_addr; .val    8;  .scl    8;  .type   0xf;    .endef
    .def    t_size; .val    12; .scl    8;  .type   0xf;    .endef
    .def    d_addr; .val    16; .scl    8;  .type   0xf;    .endef
    .def    d_size; .val    

0x1C5200#

   .type   0x8;    .endef
    .def    .71fake;    .scl    10; .type   0x8;    .size   12; .endef
    .def    dqa;    .val    0;  .scl    8;  .type   0x3;    .endef
    .def    dqb;    .val    4;  .scl    8;  .type   0x5;    .endef
    .def    rfc;    .val    8;  .scl    8;  .type   0xc;    .endef
    .def    gfc;    .val    9;  .scl    8;  .type   0xc;    .endef
    .def    bfc;    .val    10; .scl    8;  .type   0xc;    .endef
    .def    .eos;   .val    12; .scl    102;    .tag    .71fake;    .size   12; .endef
    .def    GsFOGPARAM; .scl    13; .tag    .71fake;    .size   12; .type   0x8;    .endef
    .def    .72fake;    .scl    10; .type   0x8;    .size   28; .endef
    .def    pmode;  .val    0;  .scl    8;  .type   0xf;    .endef
    .def    px; .val    4;  .scl    8;  .type   0x3;    .endef
    .def    py; .val    6;  .scl    8;  .type   0x3;    .endef
    .def    pw; .val    8;  .scl    8;  .type   0xd;    .endef
    .def    ph; .val    10; .scl    8;  .type   0xd;    .endef
    .def    pixel;  .val    12; .scl    8;  .type   0x1f;   .endef
    .def    cx; .val    16; .scl    8;  .type   0x3;    .endef
    .def    cy; .val    18; .scl    8;  .type   0x3;    .endef
    .def    cw; .val    20; .scl    8;  .type   0xd;    .endef
    .def    ch; .val    22; .scl    8;  .type   0xd;    .endef
    .def    clut;   .val    24; .scl    8;  .type   0x1f;   .endef
    .def    .eos;   .val    28; .scl    102;    .tag    .72fake;    .size   28; .endef
    .def    GsIMAGE;    .scl    13; .tag    .72fake;    .size   28; .type   0x8;    .endef
    .def    .73fake;    .scl    10; .type   0x8;    .size   4;  .endef
    .def    offx;   .val    0;  .scl    8;  .type   0x3;    .endef
    .def    offy;   .val    2;  .scl    8;  .type   0x3;    .endef
    .def    .eos;   .val    4;  .scl    102;    .tag    .73fake;    .size   4;  .endef
    .def    _GsPOSITION;    .scl    13; .tag    .73fake;    .size   4;  .type   0x8;    .endef
    .def    .74fake;    .scl    10; .type   0x8;    .size   12; .endef
    .def    top;    .val    0;  .scl    8;  .tag    .60fake;    .size   16; .type   0x18;   .endef
    .d

0x1CA200#

n; .val    1;  .scl    8;  .type   0xc;    .endef
    .def    dummy;  .val    2;  .scl    8;  .type   0xc;    .endef
    .def    cd; .val    3;  .scl    8;  .type   0xc;    .endef
    .def    tu0;    .val    4;  .scl    8;  .type   0xc;    .endef
    .def    tv0;    .val    5;  .scl    8;  .type   0xc;    .endef
    .def    clut;   .val    6;  .scl    8;  .type   0xd;    .endef
    .def    tu1;    .val    8;  .scl    8;  .type   0xc;    .endef
    .def    tv1;    .val    9;  .scl    8;  .type   0xc;    .endef
    .def    tpage;  .val    10; .scl    8;  .type   0xd;    .endef
    .def    tu2;    .val    12; .scl    8;  .type   0xc;    .endef
    .def    tv2;    .val    13; .scl    8;  .type   0xc;    .endef
    .def    p0; .val    14; .scl    8;  .type   0xd;    .endef
    .def    tu3;    .val    16; .scl    8;  .type   0xc;    .endef
    .def    tv3;    .val    17; .scl    8;  .type   0xc;    .endef
    .def    p1; .val    18; .scl    8;  .type   0xd;    .endef
    .def    n0; .val    20; .scl    8;  .type   0xd;    .endef
    .def    v0; .val    22; .scl    8;  .type   0xd;    .endef
    .def    v1; .val    24; .scl    8;  .type   0xd;    .endef
    .def    v2; .val    26; .scl    8;  .type   0xd;    .endef
    .def    v3; .val    28; .scl    8;  .type   0xd;    .endef
    .def    p2; .val    30; .scl    8;  .type   0xd;    .endef
    .def    .eos;   .val    32; .scl    102;    .tag    .92fake;    .size   32; .endef
    .def    TMD_P_TF4;  .scl    13; .tag    .92fake;    .size   32; .type   0x8;    .endef
    .def    .93fake;    .scl    10; .type   0x8;    .size   36; .endef
    .def    out;    .val    0;  .scl    8;  .type   0xc;    .endef
    .def    in; .val    1;  .scl    8;  .type   0xc;    .endef
    .def    dummy;  .val    2;  .scl    8;  .type   0xc;    .endef
    .def    cd; .val    3;  .scl    8;  .type   0xc;    .endef
    .def    tu0;    .val    4;  .scl    8;  .type   0xc;    .endef
    .def    tv0;    .val    5;  .scl    8;  .type   0xc;    .endef
    .def    clut;   .val    6;  .scl    8;  .type   0xd;    .endef
    .def    tu1;    .val    8;  .scl    8;  .type   0xc;    .endef
    .def    tv1;    .val

0x1CF200#

ndef
    .def    shift;  .val    8;  .scl    8;  .type   0x4;    .endef
    .def    offset; .val    12; .scl    8;  .type   0x4;    .endef
    .def    out_packetp;    .val    16; .scl    8;  .type   0x1c;   .endef
    .def    .eos;   .val    20; .scl    102;    .tag    .118fake;   .size   20; .endef
    .def    GsARGUNIT;  .scl    13; .tag    .118fake;   .size   20; .type   0x8;    .endef
    .def    .119fake;   .scl    10; .type   0x8;    .size   8;  .endef
    .def    vec;    .val    0;  .scl    8;  .tag    .4fake; .size   4;  .type   0x8;    .endef
    .def    otz;    .val    4;  .scl    8;  .type   0x3;    .endef
    .def    p;  .val    6;  .scl    8;  .type   0x3;    .endef
    .def    .eos;   .val    8;  .scl    102;    .tag    .119fake;   .size   8;  .endef
    .def    GsWORKUNIT; .scl    13; .tag    .119fake;   .size   8;  .type   0x8;    .endef
    .def    .120fake;   .scl    10; .type   0x8;    .size   32; .endef
    .def    primp;  .val    0;  .scl    8;  .type   0x1f;   .endef
    .def    tagp;   .val    4;  .scl    8;  .tag    .59fake;    .size   20; .type   0x18;   .endef
    .def    shift;  .val    8;  .scl    8;  .type   0x4;    .endef
    .def    offset; .val    12; .scl    8;  .type   0x4;    .endef
    .def    out_packetp;    .val    16; .scl    8;  .type   0x1c;   .endef
    .def    primtop;    .val    20; .scl    8;  .type   0x1f;   .endef
    .def    vertop; .val    24; .scl    8;  .tag    .2fake; .size   8;  .type   0x18;   .endef
    .def    nortop; .val    28; .scl    8;  .tag    .2fake; .size   8;  .type   0x18;   .endef
    .def    .eos;   .val    32; .scl    102;    .tag    .120fake;   .size   32; .endef
    .def    GsARGUNIT_NORMAL;   .scl    13; .tag    .120fake;   .size   32; .type   0x8;    .endef
    .def    .121fake;   .scl    10; .type   0x8;    .size   40; .endef
    .def    primp;  .val    0;  .scl    8;  .type   0x1f;   .endef
    .def    tagp;   .val    4;  .scl    8;  .tag    .59fake;    .size   20; .type   0x18;   .endef
    .def    shift;  .val    8;  .scl    8;  .type   0x4;    .endef
    .def    of

0x26A200#








































 





    extern u_long *GsU_00000008(GsARGUNIT *);
    extern u_long *GsU_00000009(GsARGUNIT *);
    extern u_long *GsU_0000000c(GsARGUNIT *);
    extern u_long *GsU_0000000d(GsARGUNIT *);
    extern u_long *GsU_00000010(GsARGUNIT *);
    extern u_long *GsU_00000020(GsARGUNIT *);
    extern u_long *GsU_00000011(GsARGUNIT *);
    extern u_long *GsU_00000014(GsARGUNIT *);
    extern u_long *GsU_00000015(GsARGUNIT *);
    extern u_long *GsU_00020008(GsARGUNIT *);
    extern u_long *GsU_00020009(GsARGUNIT *);
    extern u_long *GsU_0002000c(GsARGUNIT *);
    extern u_long *GsU_0002000d(GsARGUNIT *);
    extern u_long *GsU_00020010(GsARGUNIT *);
    extern u_long *GsU_00020011(GsARGUNIT *);
    extern u_long *GsU_00020014(GsARGUNIT *);
    extern u_long *GsU_00020015(GsARGUNIT *);
    extern u_long *GsU_0000000a(GsARGUNIT *);
    extern u_long *GsU_0000000b(GsARGUNIT *);
    extern u_long *GsU_0000000e(GsARGUNIT *);
    extern u_long *GsU_0000000f(GsARGUNIT *);
    extern u_long *GsU_00000012(GsARGUNIT *);
    extern u_long *GsU_00000013(GsARGUNIT *);
    extern u_long *GsU_00000016(GsARGUNIT *);
    extern u_long *GsU_00000017(GsARGUNIT *);
    extern u_long *GsU_00030008(GsARGUNIT *);
    extern u_long *GsU_00030009(GsARGUNIT *);
    extern u_long *GsU_0003000c(GsARGUNIT *);
    extern u_long *GsU_0003000d(GsARGUNIT *);
    extern u_long *GsU_00030010(GsARGUNIT *);
    extern u_long *GsU_00030011(GsARGUNIT *);
    extern u_long *GsU_00030014(GsARGUNIT *);
    extern u_long *GsU_00030015(GsARGU

0x26F200#

_03003911(GsARGUNIT_ANIM *);
    extern int  GsU_03003912(GsARGUNIT_ANIM *);
    extern int  GsU_03003919(GsARGUNIT_ANIM *);
    extern int  GsU_0300391a(GsARGUNIT_ANIM *);
    extern int  GsU_03004010(GsARGUNIT_ANIM *);
    extern int  GsU_03004011(GsARGUNIT_ANIM *);
    extern int  GsU_03004012(GsARGUNIT_ANIM *);
    extern int  GsU_03004013(GsARGUNIT_ANIM *);
    extern int  GsU_03004019(GsARGUNIT_ANIM *);
    extern int  GsU_0300401a(GsARGUNIT_ANIM *);
    extern int  GsU_0300401b(GsARGUNIT_ANIM *);
    extern int  GsU_03004020(GsARGUNIT_ANIM *);
    extern int  GsU_03004021(GsARGUNIT_ANIM *);
    extern int  GsU_03004022(GsARGUNIT_ANIM *);
    extern int  GsU_03004023(GsARGUNIT_ANIM *);
    extern int  GsU_03004029(GsARGUNIT_ANIM *);
    extern int  GsU_0300402a(GsARGUNIT_ANIM *);
    extern int  GsU_0300402b(GsARGUNIT_ANIM *);
    extern int  GsU_03004030(GsARGUNIT_ANIM *);
    extern int  GsU_03004031(GsARGUNIT_ANIM *);
    extern int  GsU_03004032(GsARGUNIT_ANIM *);
    extern int  GsU_03004033(GsARGUNIT_ANIM *);
    extern int  GsU_03004039(GsARGUNIT_ANIM *);
    extern int  GsU_0300403a(GsARGUNIT_ANIM *);
    extern int  GsU_0300403b(GsARGUNIT_ANIM *);
    extern int  GsU_03004111(GsARGUNIT_ANIM *);
    extern int  GsU_03004112(GsARGUNIT_ANIM *);
    extern int  GsU_03004119(GsARGUNIT_ANIM *);
    extern int  GsU_0300411a(GsARGUNIT_ANIM *);
    extern int  GsU_03004910(GsARGUNIT_ANIM *);
    extern int  GsU_03004911(GsARGUNIT_ANIM *);
    extern int  GsU_03004912(GsARGUNIT_ANIM *);
    extern int  GsU_03004919(GsARGUNIT_ANIM *);
    extern int  GsU_0300491a(GsARGUNIT_ANIM *);
    extern int  GsU_03005

0x274200#

de);
extern void SpuGetVoiceEnvelopeAttr (int vNum, long *keyStat, short *envx );

extern void SpuSetCommonMasterVolume (short mvol_left, short mvol_right);
extern void SpuSetCommonMasterVolumeAttr (short mvol_left, short mvol_right,
                      short mvolmode_left,
                      short mvolmode_right);
extern void SpuSetCommonCDMix (long cd_mix);
extern void SpuSetCommonCDVolume (short cd_left, short cd_right);
extern void SpuSetCommonCDReverb (long cd_reverb);

extern void SpuGetCommonMasterVolume (short *mvol_left, short *mvol_right);
extern void SpuGetCommonMasterVolumeX (short *mvolx_left, short *mvolx_right);
extern void SpuGetCommonMasterVolumeAttr (short *mvol_left, short *mvol_right,
                      short *mvolmode_left,
                      short *mvolmode_right);
extern void SpuGetCommonCDMix (long *cd_mix);
extern void SpuGetCommonCDVolume (short *cd_left, short *cd_right);
extern void SpuGetCommonCDReverb (long *cd_reverb);

extern long SpuSetReverbModeType (long mode);
extern void SpuSetReverbModeDepth (short depth_left, short depth_right);
extern void SpuSetReverbModeDelayTime (long delay);
extern void SpuSetReverbModeFeedback (long feedback);
extern void SpuGetReverbModeType (long *mode);
extern void SpuGetReverbModeDepth (short *depth_left, short *depth_right);
extern void SpuGetReverbModeDelayTime (long *delay);
extern void SpuGetReverbModeFeedback (long *feedback);
extern void SpuSetESA( long revAddr );




 

















 


typedef struct {
    char status;         
    ch

0x279200#

1<< 11 )+128];
                                         
    GsOT_TAG    zsorttable_furu[(1<< 10 )];
 
    PACKET      *out_packet;             
    POLY_G4     bgc_prim;                
}GpuDB;

 
 
 
typedef struct _SYS_W {
     
        u_char      step0;               
        u_char      step1;               
        u_char      step2;               
        u_char      step3;               
        u_char      step4;               

        u_long      s_time;
        u_char      vsync;               

         
        u_char      db_side;             
        struct _GpuDB   *cdb;            
        struct _GpuDB   *adb;            

         
        Uchar       fade_status;         
        Uchar       fade_speed;          
        Uchar       fade_sw;             
        short       fade_level;          
        Ulong       fade_attr;           

        u_char      bgc_r;               
        u_char      bgc_g;               
        u_char      bgc_b;               
        u_char      load_flg;

        u_char      bgc_sw;              
        char        tmp0;
        struct _PAD_W   pad[2];
} SYS_W;

 
 
 
typedef struct _ANM_HEAD {
        u_short coord_suu;               
        u_short tframe;                  
        u_short fframe;                  
        u_char  size;                    
        u_char  type;                    
                                         
                                         
                                         
} ANM_HEAD;

 
 
 
typedef struct _LIGHT_W {
        int         kazu;                            
        GsF_LIGHT   Light[3];                        
        long        Ambient [ 3 ];                   
} LIGHT_W;

 
 
 
typedef struct _CHARA3D_W {
        char        map_type;                        
        u_long      org;                             
        char        org2_flag;                       
        u_long      org2 [ 40 ];                     
        GsUNIT      object [ 40 ];                   
        u_char      ObjBlockNum;                     
        GsCOORDUNIT *pCoordSect;                     
                                                     
        u_long      mimepr  [ 5 ];                   
        u_char      MIMeNum;                         
} CHARA3D_W;

 
 
 
typedef struct _KAGE3D_W {
        u_long      org;                             
        GsUNIT      object [ 3 ];                    
        u_char      Ob

0x2DD200#

   .endef
    .def    rep30;  .val    12; .scl    8;  .type   0xd;    .endef
    .def    trg30;  .val    14; .scl    8;  .type   0xd;    .endef
    .def    lx; .val    16; .scl    8;  .type   0x3;    .endef
    .def    ly; .val    18; .scl    8;  .type   0x3;    .endef
    .def    rx; .val    20; .scl    8;  .type   0x3;    .endef
    .def    ry; .val    22; .scl    8;  .type   0x3;    .endef
    .def    .eos;   .val    24; .scl    102;    .tag    _PAD_W; .size   24; .endef
    .def    PAD_W;  .scl    13; .tag    _PAD_W; .size   24; .type   0x8;    .endef
    .def    _GpuDB; .scl    10; .type   0x8;    .size   12992;  .endef
    .def    draw;   .val    0;  .scl    8;  .tag    .19fake;    .size   92; .type   0x8;    .endef
    .def    disp;   .val    92; .scl    8;  .tag    .20fake;    .size   20; .type   0x8;    .endef
    .def    Wot;    .val    112;    .scl    8;  .tag    .59fake;    .size   20; .type   0x8;    .endef
    .def    Wot_furu;   .val    132;    .scl    8;  .tag    .59fake;    .size   20; .type   0x8;    .endef
    .def    zsorttable; .val    152;    .scl    8;  .tag    .58fake;    .dim    2176;   .size   8704;   .type   0x38;   .endef
    .def    zsorttable_furu;    .val    8856;   .scl    8;  .tag    .58fake;    .dim    1024;   .size   4096;   .type   0x38;   .endef
    .def    out_packet; .val    12952;  .scl    8;  .type   0x1c;   .endef
    .def    bgc_prim;   .val    12956;  .scl    8;  .tag    .28fake;    .size   36; .type   0x8;    .endef
    .def    .eos;   .val    12992;  .scl    102;    .tag    _GpuDB; .size   12992;  .endef
    .def    GpuDB;  .scl    13; .tag    _GpuDB; .size   12992;  .type   0x8;    .endef
    .def    _SYS_W; .scl    10; .type   0x8;    .size   92; .endef
    .def    step0;  .val    0;  .scl    8;  .type   0xc;    .endef
    .def    step1;  .val    1;  .scl    8;  .type   0xc;    .endef
    .def    step2;  .val    2;  .scl    8;  .type   0xc;    .endef
    .def    step3;  .val    3;  .scl    8;  .type   0xc;    .endef
    .def    step4;  .val    4;  .scl    8;  .type   0xc;    .endef
    .def    s_time; .v

0x2E2200#

3; .endef
    .def    z;  .val    4;  .scl    8;  .type   0x3;    .endef
    .def    no; .val    6;  .scl    8;  .type   0x3;    .endef
    .def    .eos;   .val    8;  .scl    102;    .tag    .171fake;   .size   8;  .endef
    .def    btn;    .scl    13; .tag    .171fake;   .size   8;  .type   0x8;    .endef
    .file   1 ".\\h\\ikusei\\ikusei.h"
    .file   1 ".\\h\\data.h"
    .file   1 ".\\h\\ikusei\\ikusei.h"
    .file   1 ".\\h\\ikusei\\iku_def.h"
    .file   1 ".\\h\\ikusei\\ikusei.h"
    .file   1 ".\\h\\ikusei\\ik_font.h"
    .file   1 ".\\h\\kanji.h"
    .def    _KanjiTxt;  .scl    10; .type   0x8;    .size   8;  .endef
    .def    dat;    .val    0;  .scl    8;  .type   0x1c;   .endef
    .def    out;    .val    4;  .scl    8;  .type   0x1c;   .endef
    .def    .eos;   .val    8;  .scl    102;    .tag    _KanjiTxt;  .size   8;  .endef
    .def    KanjiTxt;   .scl    13; .tag    _KanjiTxt;  .size   8;  .type   0x8;    .endef
    .file   1 ".\\h\\ikusei\\ik_font.h"
    .def    _STRTEX_W_; .scl    10; .type   0x8;    .size   6;  .endef
    .def    x;  .val    0;  .scl    8;  .type   0xd;    .endef
    .def    y;  .val    2;  .scl    8;  .type   0xd;    .endef
    .def    num;    .val    4;  .scl    8;  .type   0xc;    .endef
    .def    .eos;   .val    6;  .scl    102;    .tag    _STRTEX_W_; .size   6;  .endef
    .def    STRTEX_W;   .scl    13; .tag    _STRTEX_W_; .size   6;  .type   0x8;    .endef
    .def    _DFONT_W_;  .scl    10; .type   0x8;    .size   252;    .endef
    .def    flg;    .val    0;  .scl    8;  .type   0xf;    .endef
    .def    spd;    .val    4;  .scl    8;  .type   0xc;    .endef
    .def    cnt;    .val    5;  .scl    8;  .type   0xc;    .endef
    .def    timer;  .val    6;  .scl    8;  .type   0xc;    .endef
    .def    step;   .val    7;  .scl    8;  .type   0xc;    .endef
    .def    dat;    .val    8;  .scl    8;  .type   0x1f;   .endef
    .def    dat2;   .val    12; .scl    8;  .type   0x5c;   .endef
    .def    loc;    .val    16; .scl    8;  .type   0x1c;   .endef
    .def    vx; .

0x341200#

type   0x8;    .endef
    .def    .71fake;    .scl    10; .type   0x8;    .size   12; .endef
    .def    dqa;    .val    0;  .scl    8;  .type   0x3;    .endef
    .def    dqb;    .val    4;  .scl    8;  .type   0x5;    .endef
    .def    rfc;    .val    8;  .scl    8;  .type   0xc;    .endef
    .def    gfc;    .val    9;  .scl    8;  .type   0xc;    .endef
    .def    bfc;    .val    10; .scl    8;  .type   0xc;    .endef
    .def    .eos;   .val    12; .scl    102;    .tag    .71fake;    .size   12; .endef
    .def    GsFOGPARAM; .scl    13; .tag    .71fake;    .size   12; .type   0x8;    .endef
    .def    .72fake;    .scl    10; .type   0x8;    .size   28; .endef
    .def    pmode;  .val    0;  .scl    8;  .type   0xf;    .endef
    .def    px; .val    4;  .scl    8;  .type   0x3;    .endef
    .def    py; .val    6;  .scl    8;  .type   0x3;    .endef
    .def    pw; .val    8;  .scl    8;  .type   0xd;    .endef
    .def    ph; .val    10; .scl    8;  .type   0xd;    .endef
    .def    pixel;  .val    12; .scl    8;  .type   0x1f;   .endef
    .def    cx; .val    16; .scl    8;  .type   0x3;    .endef
    .def    cy; .val    18; .scl    8;  .type   0x3;    .endef
    .def    cw; .val    20; .scl    8;  .type   0xd;    .endef
    .def    ch; .val    22; .scl    8;  .type   0xd;    .endef
    .def    clut;   .val    24; .scl    8;  .type   0x1f;   .endef
    .def    .eos;   .val    28; .scl    102;    .tag    .72fake;    .size   28; .endef
    .def    GsIMAGE;    .scl    13; .tag    .72fake;    .size   28; .type   0x8;    .endef
    .def    .73fake;    .scl    10; .type   0x8;    .size   4;  .endef
    .def    offx;   .val    0;  .scl    8;  .type   0x3;    .endef
    .def    offy;   .val    2;  .scl    8;  .type   0x3;    .endef
    .def    .eos;   .val    4;  .scl    102;    .tag    .73fake;    .size   4;  .endef
    .def    _GsPOSITION;    .scl    13; .tag    .73fake;    .size   4;  .type   0x8;    .endef
    .def    .74fake;    .scl    10; .type   0x8;    .size   12; .endef
    .def    top;    .val    0;  .scl    8;  .tag    .60fake;    .size   16; .type   0x18;   .endef
    .def

0x34B200#

   .val    10; .scl    8;  .type   0xd;    .endef
    .def    rep30;  .val    12; .scl    8;  .type   0xd;    .endef
    .def    trg30;  .val    14; .scl    8;  .type   0xd;    .endef
    .def    lx; .val    16; .scl    8;  .type   0x3;    .endef
    .def    ly; .val    18; .scl    8;  .type   0x3;    .endef
    .def    rx; .val    20; .scl    8;  .type   0x3;    .endef
    .def    ry; .val    22; .scl    8;  .type   0x3;    .endef
    .def    .eos;   .val    24; .scl    102;    .tag    _PAD_W; .size   24; .endef
    .def    PAD_W;  .scl    13; .tag    _PAD_W; .size   24; .type   0x8;    .endef
    .def    _GpuDB; .scl    10; .type   0x8;    .size   12992;  .endef
    .def    draw;   .val    0;  .scl    8;  .tag    .19fake;    .size   92; .type   0x8;    .endef
    .def    disp;   .val    92; .scl    8;  .tag    .20fake;    .size   20; .type   0x8;    .endef
    .def    Wot;    .val    112;    .scl    8;  .tag    .59fake;    .size   20; .type   0x8;    .endef
    .def    Wot_furu;   .val    132;    .scl    8;  .tag    .59fake;    .size   20; .type   0x8;    .endef
    .def    zsorttable; .val    152;    .scl    8;  .tag    .58fake;    .dim    2176;   .size   8704;   .type   0x38;   .endef
    .def    zsorttable_furu;    .val    8856;   .scl    8;  .tag    .58fake;    .dim    1024;   .size   4096;   .type   0x38;   .endef
    .def    out_packet; .val    12952;  .scl    8;  .type   0x1c;   .endef
    .def    bgc_prim;   .val    12956;  .scl    8;  .tag    .28fake;    .size   36; .type   0x8;    .endef
    .def    .eos;   .val    12992;  .scl    102;    .tag    _GpuDB; .size   12992;  .endef
    .def    GpuDB;  .scl    13; .tag    _GpuDB; .size   12992;  .type   0x8;    .endef
    .def    _SYS_W; .scl    10; .type   0x8;    .size   92; .endef
    .def    step0;  .val    0;  .scl    8;  .type   0xc;    .endef
    .def    step1;  .val    1;  .scl    8;  .type   0xc;    .endef
    .def    step2;  .val    2;  .scl    8;  .type   0xc;    .endef
    .def    step3;  .val    3;  .scl    8;  .type   0xc;    .endef
    .def    step4;  .val    4;  .scl    8;  .type   0

0x350200#

reorder

    .set    noreorder
    .set    nomacro
    beq $4,$2,$L8
    lui $2,%hi(sys) # high
    .set    macro
    .set    reorder

    .set    noreorder
    .set    nomacro
    j   $L15
    addiu   $2,$2,%lo(sys) # low
    .set    macro
    .set    reorder


    .loc    1 26
LM5:
$L5:
    lui $2,%hi(fio) # high
    li  $3,2            # 0x00000002
    .set    noreorder
    .set    nomacro
    j   $L12
    sb  $3,%lo(fio)($2)
    .set    macro
    .set    reorder

$L6:

    .loc    1 27
LM6:
    lui $2,%hi(fio) # high
    .set    noreorder
    .set    nomacro
    j   $L13
    sb  $5,%lo(fio)($2)
    .set    macro
    .set    reorder

$L7:

    .loc    1 28
LM7:
    lui $2,%hi(fio) # high
    sb  $3,%lo(fio)($2)
$L13:
    addiu   $2,$2,%lo(fio) # low
    .set    noreorder
    .set    nomacro
    j   $L4
    sb  $5,1($2)
    .set    macro
    .set    reorder

$L8:

    .loc    1 29
LM8:
    lui $2,%hi(fio) # high
    sb  $5,%lo(fio)($2)
$L12:
    addiu   $2,$2,%lo(fio) # low
    sb  $3,1($2)
$L4:

    .loc    1 33
LM9:
    lui $2,%hi(sys) # high
    addiu   $2,$2,%lo(sys) # low
$L15:
    sb  $0,24($2)

    .loc    1 34
LM10:
    sb  $0,25($2)

    .loc    1 35
LM11:
    sb  $0,26($2)

    .loc    1 36
LM12:
    sh  $0,28($2)

    .loc    1 37
LM13:
    .set    noreorder
    .set    nomacro
    j   $31
    sw  $0,32($2)
    .set    macro
    .set    reorder


    .loc    1 37
LM14:
    .end    FadeInit
    .align  2
    .def    FadeIn; .val    FadeIn; .scl    3;  .type   0x2c;   .endef

    .loc    1 41
LM15:

    .loc    1 41
LM16:
    .ent    FadeIn
FadeIn:
    .frame  $sp,24,$31      # vars= 0, regs= 1/0, args= 16, extra= 0
    .mask   0x80000000,-8
    .fmask  0x00000000,0

    .loc    1 42
LM17:
    lui $2,%hi(fio) # high
    lbu $4,%lo(fio)($2)

    .loc    1 41
LM18:
    subu    $sp,$sp,24

0x355200#

l  16; .type   0xb;    .endef
    .def    WAKIYAKU_TYPE_MAX;  .val    45; .scl    16; .type   0xb;    .endef
    .def    .eos;   .val    4;  .scl    102;    .tag    _WAKIYAKU_TYPE_IDX_;    .size   4;  .endef
    .def    WAKIYAKU_TYPE_IDX;  .scl    13; .tag    _WAKIYAKU_TYPE_IDX_;    .size   4;  .type   0xa;    .endef
    .def    _BG3D_TYPE_IDX_;    .scl    15; .type   0xa;    .size   4;  .endef
    .def    BG3D_TYPE_MIN;  .val    0;  .scl    16; .type   0xb;    .endef
    .def    BG3D_STG100;    .val    0;  .scl    16; .type   0xb;    .endef
    .def    BG3D_STG200;    .val    1;  .scl    16; .type   0xb;    .endef
    .def    BG3D_STG300;    .val    2;  .scl    16; .type   0xb;    .endef
    .def    BG3D_STG400;    .val    3;  .scl    16; .type   0xb;    .endef
    .def    BG3D_REN100;    .val    4;  .scl    16; .type   0xb;    .endef
    .def    BG3D_REN110;    .val    5;  .scl    16; .type   0xb;    .endef
    .def    BG3D_REN120;    .val    6;  .scl    16; .type   0xb;    .endef
    .def    BG3D_REN130;    .val    7;  .scl    16; .type   0xb;    .endef
    .def    BG3D_REN140;    .val    8;  .scl    16; .type   0xb;    .endef
    .def    BG3D_REN150;    .val    9;  .scl    16; .type   0xb;    .endef
    .def    BG3D_REN200;    .val    10; .scl    16; .type   0xb;    .endef
    .def    BG3D_REN210;    .val    11; .scl    16; .type   0xb;    .endef
    .def    BG3D_REN220;    .val    12; .scl    16; .type   0xb;    .endef
    .def    BG3D_REN230;    .val    13; .scl    16; .type   0xb;    .endef
    .def    BG3D_REN300;    .val    14; .scl    16; .type   0xb;    .endef
    .def    BG3D_REN310;    .val    15; .scl    16; .type   0xb;    .endef
    .def    BG3D_REN320;    .val    16; .scl    16; .type   0xb;    .endef
    .def    BG3D_REN330;    .val    17; .scl    16; .type   0xb;    .endef
    .def    BG3D_REN340;    .val    18; .scl    16; .type   0xb;    .endef
    .def    BG3D_REN400;    .val    19; .scl    16; .type   0xb;    .endef
    .def    BG3D_DM100; .val    20; .scl    16; .type   0xb;    .endef
    .def    

0x35A200#

al 43; .scl    16; .type   0xb;    .endef
    .def    STAGE200_TYPE_MAX;  .val    44; .scl    16; .type   0xb;    .endef
    .def    .eos;   .val    4;  .scl    102;    .tag    _STAGE200_TYPE_IDX_;    .size   4;  .endef
    .def    STAGE200_TYPE_IDX;  .scl    13; .tag    _STAGE200_TYPE_IDX_;    .size   4;  .type   0xa;    .endef
    .def    _STAGE201_TYPE_IDX_;    .scl    15; .type   0xa;    .size   4;  .endef
    .def    STAGE201_TYPE_MIN;  .val    21; .scl    16; .type   0xb;    .endef
    .def    STAGE201_01;    .val    21; .scl    16; .type   0xb;    .endef
    .def    STAGE201_03;    .val    22; .scl    16; .type   0xb;    .endef
    .def    STAGE201_04;    .val    23; .scl    16; .type   0xb;    .endef
    .def    STAGE201_05;    .val    24; .scl    16; .type   0xb;    .endef
    .def    STAGE201_06;    .val    25; .scl    16; .type   0xb;    .endef
    .def    STAGE201_07;    .val    26; .scl    16; .type   0xb;    .endef
    .def    STAGE201_0B;    .val    27; .scl    16; .type   0xb;    .endef
    .def    STAGE201_0C;    .val    28; .scl    16; .type   0xb;    .endef
    .def    STAGE201_0D;    .val    29; .scl    16; .type   0xb;    .endef
    .def    STAGE201_0E;    .val    30; .scl    16; .type   0xb;    .endef
    .def    STAGE201_11;    .val    31; .scl    16; .type   0xb;    .endef
    .def    STAGE201_12;    .val    32; .scl    16; .type   0xb;    .endef
    .def    STAGE201_13;    .val    33; .scl    16; .type   0xb;    .endef
    .def    STAGE201_14;    .val    34; .scl    16; .type   0xb;    .endef
    .def    STAGE201_15;    .val    35; .scl    16; .type   0xb;    .endef
    .def    STAGE201_16;    .val    36; .scl    16; .type   0xb;    .endef
    .def    STAGE201_17;    .val    37; .scl    16; .type   0xb;    .endef
    .def    STAGE201_18;    .val    38; .scl    16; .type   0xb;    .endef
    .def    STAGE201_19;    .val    39; .scl    16; .type   0xb;    .endef
    .def    STAGE201_1A;    .val    40; .scl    16; .type   0xb;    .endef
    .def    STAGE201_1B;    .val    41; .scl

0x35F200#

xb;    .endef
    .def    S008_04;    .val    3;  .scl    16; .type   0xb;    .endef
    .def    S008_05;    .val    4;  .scl    16; .type   0xb;    .endef
    .def    S008_06;    .val    5;  .scl    16; .type   0xb;    .endef
    .def    S008_07;    .val    6;  .scl    16; .type   0xb;    .endef
    .def    S008_TYPE_MAX;  .val    7;  .scl    16; .type   0xb;    .endef
    .def    .eos;   .val    4;  .scl    102;    .tag    _S008_TYPE_IDX_;    .size   4;  .endef
    .def    S008_TYPE_IDX;  .scl    13; .tag    _S008_TYPE_IDX_;    .size   4;  .type   0xa;    .endef
    .def    _S009_TYPE_IDX_;    .scl    15; .type   0xa;    .size   4;  .endef
    .def    S009_TYPE_MIN;  .val    0;  .scl    16; .type   0xb;    .endef
    .def    S009_01;    .val    0;  .scl    16; .type   0xb;    .endef
    .def    S009_02;    .val    1;  .scl    16; .type   0xb;    .endef
    .def    S009_03;    .val    2;  .scl    16; .type   0xb;    .endef
    .def    S009_04;    .val    3;  .scl    16; .type   0xb;    .endef
    .def    S009_05;    .val    4;  .scl    16; .type   0xb;    .endef
    .def    S009_TYPE_MAX;  .val    5;  .scl    16; .type   0xb;    .endef
    .def    .eos;   .val    4;  .scl    102;    .tag    _S009_TYPE_IDX_;    .size   4;  .endef
    .def    S009_TYPE_IDX;  .scl    13; .tag    _S009_TYPE_IDX_;    .size   4;  .type   0xa;    .endef
    .def    _S010_TYPE_IDX_;    .scl    15; .type   0xa;    .size   4;  .endef
    .def    S010_TYPE_MIN;  .val    0;  .scl    16; .type   0xb;    .endef
    .def    S010_01;    .val    0;  .scl    16; .type   0xb;    .endef
    .def    S010_TYPE_MAX;  .val    1;  .scl    16; .type   0xb;    .endef
    .def    .eos;   .val    4;  .scl    102;    .tag    _S010_TYPE_IDX_;    .size   4;  .endef
    .def    S010_TYPE_IDX;  .scl    13; .tag    _S010_TYPE_IDX_;    .size   4;  .type   0xa;    .endef
    .def    _S011_TYPE_IDX_;    .scl    15; .type   0xa;    .size   4;  .endef
    .def    S011_TYPE_MIN;  .val    0;  .scl    16; .type   0xb;    .endef
    .def    S011_01;    .val    0;  .scl    16; .type   0xb;    .e

0x364200#

p)
$L74:
    sh  $2,22($sp)

    .loc    1 329
LM102:
    addu    $4,$sp,16
    li  $5,-2145714176          # 0x801b0000
    .set    noreorder
    .set    nomacro
    jal LoadImage
    ori $5,$5,0x8000
    .set    macro
    .set    reorder


    .loc    1 321
LM103:
    addu    $17,$17,1
    andi    $2,$17,0x00ff
    sltu    $2,$2,9
    .set    noreorder
    .set    nomacro
    bne $2,$0,$L76
    li  $5,-2145714176          # 0x801b0000
    .set    macro
    .set    reorder


    .loc    1 331
LM104:
    move    $17,$0
    lui $2,%hi(ofs) # high
    addiu   $18,$2,%lo(ofs) # low

    .loc    1 332
LM105:
$L77:
    ori $5,$5,0x8000
    andi    $16,$17,0x00ff
    addu    $2,$16,9
    sll $2,$2,2
    addu    $2,$2,$18
    lw  $2,0($2)
    li  $4,-2146435072          # 0x80100000
    .set    noreorder
    .set    nomacro
    jal decode2
    addu    $4,$2,$4
    .set    macro
    .set    reorder


    .loc    1 333
LM106:
    sltu    $2,$16,4
    .set    noreorder
    .set    nomacro
    beq $2,$0,$L60
    srl $2,$16,1
    .set    macro
    .set    reorder


    .loc    1 334
LM107:
    sll $2,$2,5
    addu    $2,$2,576
    sh  $2,16($sp)
    andi    $2,$17,0x0001
    sll $2,$2,7
    sh  $2,18($sp)
    li  $2,32           # 0x00000020
    sh  $2,20($sp)

    .loc    1 335
LM108:
    .set    noreorder
    .set    nomacro
    j   $L75
    li  $2,128          # 0x00000080
    .set    macro
    .set    reorder

$L60:

    .loc    1 337
LM109:
    li  $2,491          # 0x000001eb
    sh  $2,18($sp)
    li  $2,16           # 0x00000010
    sh  $2,20($sp)
    li  $2,8            # 0x00000008
    sh  $0,16($sp)
$L75:
    sh  $2,22($sp)

    .loc    1 339
LM110:
    addu    $4,$sp,16
    li  $5,-2145714176          # 0x801b0000
    .set    noreorder
    .set    nomacro
    jal LoadImage
    ori $5,$5,0x8000
    .set    macro
    .set    reorder


    .loc    1 331
LM111:
    addu

0x391200#

long *p,long *otz,long *flag);
extern long RotColorDpq(SVECTOR *v0,SVECTOR *v1,CVECTOR *v2,
            long *sxy,CVECTOR *v3,long *flag);
extern long RotColorDpq3(SVECTOR *v0,SVECTOR *v1,SVECTOR *v2,
            SVECTOR *v3,SVECTOR *v4,SVECTOR *v5,CVECTOR *v6,
            long *sxy0,long *sxy1,long *sxy2,
            CVECTOR *v7,CVECTOR *v8,CVECTOR *v9,long *flag);
extern long RotAverageNclipColorDpq3(SVECTOR *v0,SVECTOR *v1,SVECTOR *v2,
            SVECTOR *v3,SVECTOR *v4,SVECTOR *v5,CVECTOR *v6,
            long *sxy0,long *sxy1,long *sxy2,
            CVECTOR *v7,CVECTOR *v8,CVECTOR *v9,
            long *otz,long *flag);                    
extern long RotAverageNclipColorCol3(SVECTOR *v0,SVECTOR *v1,SVECTOR *v2,
            SVECTOR *v3,SVECTOR *v4,SVECTOR *v5,CVECTOR *v6,
            long *sxy0,long *sxy1,long *sxy2,
            CVECTOR *v7,CVECTOR *v8,CVECTOR *v9,
            long *otz,long *flag);                    
extern long RotColorMatDpq(SVECTOR *v0,SVECTOR *v1,CVECTOR *v2,long *sxy,
            CVECTOR *v3,long matc,long flag);
extern void ColorMatDpq(SVECTOR *v0,CVECTOR *v1,long p,CVECTOR *v2,long matc);
extern void ColorMatCol(SVECTOR *v0,CVECTOR *v1,CVECTOR *v2,long matc);
extern void LoadAverage12(VECTOR *v0,VECTOR *v1,long p0,long p1,VECTOR *v2);
extern void LoadAverageShort12(SVECTOR *v0,SVECTOR *v1,long p0,long p1,
            SVECTOR *v2);
extern void LoadAverage0(VECTOR *v0,VECTOR *v1,long p0,long p1,VECTOR *v2);
extern void LoadAverageShort0(SVECTOR *v0,SVECTOR *v1,long p0,long p1,
            SVECTOR *v2);
extern void LoadAverageByte(u_char *v0,u_char *v1,long p0,long p1,u_char *v2);
extern void LoadAv

0x396200#

, int ty);
extern void SetDispMask(int mask);
extern void SetDrawArea(DR_AREA *p, RECT *r);
extern void SetDrawEnv(DR_ENV *dr_env, DRAWENV *env);
extern void SetDrawLoad(DR_LOAD *p, RECT *rect);
extern void SetDrawMode(DR_MODE *p, int dfe, int dtd, int tpage, RECT *tw);
extern void SetDrawTPage(DR_TPAGE *p, int dfe, int dtd, int tpage);
extern void SetDrawMove(DR_MOVE *p, RECT *rect, int x, int y) ;
extern void SetDrawOffset(DR_OFFSET *p, u_short *ofs);
extern void SetDrawStp(DR_STP *p, int pbw);
extern void SetDumpFnt(int id);
extern void SetLineF2(LINE_F2 *p) ;
extern void SetLineF3(LINE_F3 *p) ;
extern void SetLineF4(LINE_F4 *p) ;
extern void SetLineG2(LINE_G2 *p) ;
extern void SetLineG3(LINE_G3 *p) ;
extern void SetLineG4(LINE_G4 *p) ;
extern void SetPolyF3(POLY_F3 *p) ;
extern void SetPolyF4(POLY_F4 *p) ;
extern void SetPolyFT3(POLY_FT3 *p) ;
extern void SetPolyFT4(POLY_FT4 *p) ;
extern void SetPolyG3(POLY_G3 *p) ;
extern void SetPolyG4(POLY_G4 *p) ;
extern void SetPolyGT3(POLY_GT3 *p) ;
extern void SetPolyGT4(POLY_GT4 *p) ;
extern void SetSemiTrans(void *p, int abe) ;
extern void SetShadeTex(void *p, int tge) ;
extern void SetSprt(SPRT *p) ;
extern void SetSprt16(SPRT_16 *p) ;
extern void SetSprt8(SPRT_8 *p) ;
extern void SetTexWindow(DR_TWIN *p, RECT *tw);
extern void SetTile(TILE *p) ;
extern void SetTile1(TILE_1 *p) ;
extern void SetTile16(TILE_16 *p) ;
extern void SetTile8(TILE_8 *p) ;
extern void TermPrim(void *p) ;
extern u_long *BreakDraw(void);
extern void Cont

0x39B200#

VERT * vp, PACKET * pk, int n,
                        int shift, GsOT * ot, u_long * scratch);
    PACKET *GsA4divTF4L(TMD_P_TF4 * op, VERT * vp, VERT * np, PACKET * pk, int n,
                        int shift, GsOT * ot, u_long * scratch);
    PACKET *GsA4divTF4LFG(TMD_P_TF4 * op, VERT * vp, VERT * np, PACKET * pk, int n,
                        int shift, GsOT * ot, u_long * scratch);
    PACKET *GsA4divTF4NL(TMD_P_TF4 * op, VERT * vp, VERT * np, PACKET * pk, int n,
                         int shift, GsOT * ot, u_long * scratch);
    PACKET *GsA4divTNF4(TMD_P_TNF4 * op, VERT * vp, PACKET * pk, int n,
                        int shift, GsOT * ot, u_long * scratch);
    PACKET *GsA4divTF4LM(TMD_P_TF4 * op, VERT * vp, VERT * np, PACKET * pk, int n,
                        int shift, GsOT * ot, u_long * scratch);
    PACKET *GsA4divTF4LFGM(TMD_P_TF4 * op, VERT * vp, VERT * np, PACKET * pk, int n,
                        int shift, GsOT * ot, u_long * scratch);
    PACKET *GsA4divTF4NLM(TMD_P_TF4 * op, VERT * vp, VERT * np, PACKET * pk, int n,
                         int shift, GsOT * ot, u_long * scratch);
    PACKET *GsA4divTNF4M(TMD_P_TNF4 * op, VERT * vp, PACKET * pk, int n,
                        int shift, GsOT * ot, u_long * scratch);
    PACKET *GsA4divTG3L(TMD_P_TG3 * op, VERT * vp, VERT * np, PACKET * pk, int n,
                        int shift, GsOT * ot, u_long * scratch);
    PACKET *GsA4divTG3LFG(TMD_P_TG3 * op, VERT * vp, VERT * np, PACKET * pk, int n,
                        int shift, GsOT * ot, u_long * scratch);
    PACKET *GsA4divTG3NL(TMD_P_TG3 * op, VERT * vp, VERT * np, PACKET * pk, int n,
        

0x3A0200#

ern u_long *GsU_0034004c(GsARGUNIT *);
    extern u_long *GsU_0034004d(GsARGUNIT *);
    extern u_long *GsU_00340050(GsARGUNIT *);
    extern u_long *GsU_00340051(GsARGUNIT *);
    extern u_long *GsU_00340054(GsARGUNIT *);
    extern u_long *GsU_00340055(GsARGUNIT *);
    extern u_long *GsU_01140048(GsARGUNIT *);
    extern u_long *GsU_01140049(GsARGUNIT *);
    extern u_long *GsU_0114004c(GsARGUNIT *);
    extern u_long *GsU_0114004d(GsARGUNIT *);
    extern u_long *GsU_01140050(GsARGUNIT *);
    extern u_long *GsU_01140051(GsARGUNIT *);
    extern u_long *GsU_01140054(GsARGUNIT *);
    extern u_long *GsU_01140055(GsARGUNIT *);
    extern u_long *GsU_01340048(GsARGUNIT *);
    extern u_long *GsU_01340049(GsARGUNIT *);
    extern u_long *GsU_0134004c(GsARGUNIT *);
    extern u_long *GsU_0134004d(GsARGUNIT *);
    extern u_long *GsU_01340050(GsARGUNIT *);
    extern u_long *GsU_01340051(GsARGUNIT *);
    extern u_long *GsU_01340054(GsARGUNIT *);
    extern u_long *GsU_01340055(GsARGUNIT *);

    extern u_long *GsU_0020000a(GsARGUNIT *);
    extern u_long *GsU_0020000b(GsARGUNIT *);
    extern u_long *GsU_0020000e(GsARGUNIT *);
    extern u_long *GsU_0020000f(GsARGUNIT *);
    extern u_long *GsU_00200012(GsARGUNIT *);
    extern u_long *GsU_00200013(GsARGUNIT *);
    extern u_long *GsU_00200016(GsARGUNIT *);
    extern u_long *GsU_00200017(GsARGUNIT *);
    extern u_long *GsU_0030000a(GsARGUNIT *);
    extern u_long *GsU_0030000b(GsARGUNIT *);
    extern u_long *GsU_0030000e(GsARGUNIT *);
    extern u_long *GsU_0030000f(GsARGUNIT *);
    extern u_long *GsU_00300012(GsARGUNIT *);

0x3A5200#

dInterrupt( void );
int StGetBackloc( DslLOC* loc );
int StSetChannel( u_long channel );







 





 


 


 





int DsInit( void );
int DsReset( void );
void DsClose( void );
int DsCommand( u_char com, u_char* param, DslCB cbsync, int count );
int DsPacket( u_char mode, DslLOC* pos, u_char com, DslCB func, int count );
DslCB DsSyncCallback( DslCB func );
DslCB DsReadyCallback( DslCB func );
int DsSync( int id, u_char* result );
int DsReady( u_char* result );
void DsFlush( void );
int DsSystemStatus( void );
int DsQueueLen( void );
u_char DsStatus( void );
int DsShellOpen( void );

int DsMix( DslATV* vol );
int DsGetSector( void* madr, int size );
int DsGetSector2( void* madr, int size );
int DsGetToc( DslLOC* loc );
void ( *DsDataCallback( void ( *func )() ) );
int DsDataSync( int mode );
DslLOC* DsIntToPos( int i, DslLOC* p );
int DsPosToInt( DslLOC* p );
int DsSetDebug( int level );
DslLOC* DsLastPos( DslLOC* p );
u_char DsLastCom( void );

char* DsComstr( u_char com );
char* DsIntstr( u_char intr );

int DsStartReadySystem( DslRCB func, int count );
void DsEndReadySystem( void );
int DsReadySystemMode( int mode );

int DsControlF( u_char com, u_char* param );
int DsControl( u_char com, u_char* param, u_char* result );
int DsControlB( u_char com, u_char* param, u_char* result );

int DsRead( DslLOC* pos, int sectors, u_long* buf, int mode );
int DsReadSync( u_char* result );
DslCB DsReadCallback( DslCB func );
void DsReadBreak( void );

0x3AA200#

extern short SsIsEos(short, short);
extern void  SsPlayBack(short, short, short);
extern void  SsSetMarkCallback(short, short, SsMarkCallbackProc);
extern char  SsSetReservedVoice(char);

extern short SsUtKeyOn(short, short, short, short, short, short, short);
extern short SsUtKeyOff(short, short, short, short, short);
extern short SsUtKeyOnV(short voice, short vabId, short prog, short tone, 
                        short note, short fine, short voll, short volr);
extern short SsUtKeyOffV(short voice);
extern short SsUtPitchBend(short, short, short, short, short);
extern short SsUtChangePitch(short, short, short, short, short,
                              short, short);
extern short SsUtChangeADSR(short, short, short, short, 
                             unsigned short, unsigned short);
extern short SsUtSetVabHdr(short, VabHdr*);
extern short SsUtGetVabHdr(short, VabHdr*);
extern short SsUtSetProgAtr(short, short, ProgAtr*);
extern short SsUtGetProgAtr(short, short, ProgAtr*);
extern short SsUtSetVagAtr(short, short, short, VagAtr*);
extern short SsUtGetVagAtr(short, short, short, VagAtr*);
extern short SsUtSetDetVVol(short, short, short);
extern short SsUtGetDetVVol(short, short*, short*);
extern short SsUtSetVVol(short, short, short);
extern short SsUtGetVVol(short, short*, short*);
extern short SsUtAutoVol(short, short, short, short);
extern short SsUtAutoPan(short, short, short, short);
extern void  SsUtReverbOn(void);
extern void  SsUtReverbOff(void);
extern short SsUtSetReve

0x3FA200#

1C  SsSeqSetAccelerando
 8004D978  SsSeqSetRitardando
 8004F720  SsSeqSetVol
 8004F1B0  SsSeqStop
 8004DE20  SsSetMVol
 800550B0  SsSetMono
 8004DE70  SsSetRVol
 8004D9E0  SsSetSerialAttr
 8004F210  SsSetSerialVol
 800550C0  SsSetStereo
 8004F320  SsSetTableSize
 8004F540  SsSetTickMode
 8004E1B0  SsStart
 8004E1D0  SsStart2
 8004FA40  SsUtGetProgAtr
 80051060  SsUtGetVVol
 8004FD90  SsUtGetVagAddr
 8004FB50  SsUtGetVagAtr
 800501AC  SsUtKeyOffV
 8004FE40  SsUtKeyOnV
 80050E50  SsUtReverbOff
 80050E70  SsUtReverbOn
 80050220  SsUtSetReverbDelay
 80050C10  SsUtSetReverbDepth
 80050E10  SsUtSetReverbFeedback
 80050CA0  SsUtSetReverbType
 80051170  SsUtSetVVol
 80050E90  SsUtSetVagAtr
 800550D0  SsVabClose
 80055534  SsVabFakeHead
 80055500  SsVabOpenHeadSticky
 80055960  SsVabTransBody
 80055B10  SsVabTransCompleted
 80073200  StCHANNEL
 8002D590  StCdInterrupt
 800731FC  StCdIntrFlag
 8002D0C0  StClearRing
 80073220  StEmu_Addr
 80073210  StEmu_Idx
 80073224  StEndFrame
 8007320C  StFinalSector
 8002D3C0  StFreeRing
 80073248  StFunc1
 8007324C  StFunc2
 8002D24C  StGetBackloc
 8002D4B0  StGetNext
 80073290  StMode
 800731F8  StRgb24
 80073230  StRingAddr
 8007322C  StRingBase
 80073214  StRingIdx1
 80073218  StRingIdx2
 8007321C  StRingIdx3
 80073234  StRingSize
 80073228  StSTART_FLAG
 8002D570  StSetMask
 8002D090  StSetRing
 8002D330  StSetStream
 80073204  StStartFrame
 8002D120  StUnSetRing
 80045070  StartCARD
 800454E0  StartCARD2
 8004521C  S

0x495200#

hi_graph ( long rot, long max, short flag );
extern void  ex_g_stage1_kudaru_graph ( short player_pos );
extern void  ex_g_stage1_jump_graph ( SVECTOR *v0, VECTOR *v1 );
extern void  ex_g_stage1_sou_main ( void );
extern void  ex_g_stage1_sou_on ( void );
extern void  ex_g_stage1_sou_off ( void );
extern void  ex_g_stage1_set_bgc_game ( void );
extern void  ex_g_stage1_set_bgc_sou ( void );
extern void  ex_g_stage1_jimenn_on ( void );
extern void  ex_g_stage1_timatteiru_init ( void );
extern void  ex_g_stage1_timatteiru_main ( void );

extern void  ex_camera_Save ( void );
extern void  ex_camera_Push ( void );
extern void  ex_camera_Pop ( void );
extern void  ex_Model_Push ( void );
extern void  ex_Model_Pop ( void );
extern int   SetExb3DbgModel1 ( BG3D_W *pObj, u_long addr1, u_long addr2 );
extern void  ex_g_stage1_life_up ( int a );
extern void  ex_g_stage1_life_down ( int a );
extern void  ex_g_stage1_jikkyou_set ( int no );
extern int   ex_g_stage1_jikkyou_status ( void  );

extern STAGE1_WORK ex_s1_w;
extern ALLSTAGE ex_gauge;

 
extern void g1_InitKansei();             
extern void g1_SetKansei(Uchar);         
extern void g1_PlayKansei();             
 



 
# 26 "ovl/exb_st1/exb1.c" 2

# 1 ".\\h\\anm_idx.h" 1
 
 
 
 
 
 
 
 
typedef enum _HEAD_TYPE_IDX_ {       
    HEAD_TYPE_MIN = 0,
    HEAD_GSRA000 = 0,                
    HEAD_GSRA100,                    
    HEAD_GSRA110,                    
    HEAD_GSRA030,                    
    HEAD_GSRA020,                    
    HEAD_GSRA200,                    
    HEAD_GSRA010,                    
    HEAD_GSRA040,                    
    HEAD_GSRA050,                    
    HE

0x49A200#

   REN003_05,                       
    REN003_06,                       
    REN003_07,                       
    REN003_08,                       
    REN003_09,                       
    REN003_0A,                       
    REN003_TYPE_MAX
} REN003_TYPE_IDX;

 
typedef enum _REN004_TYPE_IDX_ {
    REN004_TYPE_MIN = 0,
    REN004_00 = REN004_TYPE_MIN,     
    REN004_01,                       
    REN004_02,                       
    REN004_03,                       
    REN004_04,                       
    REN004_05,                       
    REN004_06,                       
    REN004_07,                       
    REN004_08,                       
    REN004_09,                       
    REN004_0A,                       
    REN004_0B,                       
    REN004_0C,                       
    REN004_0D,                       
    REN004_0E,                       
    REN004_0F,                       
    REN004_10,                       
    REN004_11,                       
    REN004_12,                       
    REN004_13,                       
    REN004_14,                       
    REN004_15,                       
    REN004_TYPE_MAX
} REN004_TYPE_IDX;

 
typedef enum _REN005_TYPE_IDX_ {
    REN005_TYPE_MIN = 0,
    REN005_00 = REN005_TYPE_MIN,     
    REN005_01,                       
    REN005_02,                       
    REN005_03,                       
    REN005_04,                       
    REN005_05,                       
    REN005_06,                       
    REN005_07,                       
    REN005_08,                       
    REN005_TYPE_MAX
} REN005_TYPE_IDX;

 
typedef enum _REN006_TYPE_IDX_ {
    REN006_TYPE_MIN = 0,
    REN006_00 = REN006_TYPE_MIN,     
    REN006_01,                       
    REN006_02,                       
    REN006_03,                       
    REN006_04,                       
    REN006_05,                       
    REN006_06,                       
    REN006_07,                       
    REN006_08,                       
    REN006_TYPE_MAX
} REN006_TYPE_IDX;

 
typedef enum _REN007_TYPE_IDX_ {
    REN007_TYPE_MIN = 0,
    REN007_00 = REN007_TYPE_MIN,     
    REN007_01,                       
    REN007_02,                       
    REN007_03,                       
    REN007_04,                       
    REN007_05,                       
    REN007_06,                       
    REN007_07,                       
    REN

0x49F200#

NIT *) &chara_w [ 0 ].obj_w.pCoordSect [ coord_no ];

    if ( coord_no == 0 ){
        t = ( long *) &chara_w [ 0 ].tx;
    } else {
        t = ( long *) &coord -> workm.t [ 0 ];
    }
    switch ( ex_s1_w.type ){
        case 0:
            if ( t [ 0 ] > ex_s1_w.tz ){
                a = 100;
            } else {
                a = ex_s1_w.tz - t [ 0 ];
                a = 100 - abs ( a * 100 / ex_s1_w.w );
            }
            break;
        case 1:
            if ( t [ 1 ] > ex_s1_w.tz ){
                a = 100;
            } else {
                a = ex_s1_w.tz - t [ 1 ];
                a = 100 - abs ( a * 100 / ex_s1_w.w );
            }
            break;
        case 2:
            if ( t [ 2 ] > ex_s1_w.tz ){
                a = 100;
            } else {
                a = ex_s1_w.tz - t [ 2 ];
                a = 100 - abs ( a * 100 / ex_s1_w.w );
            }
            break;
        case 3:
            if ( t [ 2 ] < ex_s1_w.tz ){
                a = 100;
            } else {
                a = t [ 2 ] - ex_s1_w.tz;
                a = 100 - abs ( a * 100 / ex_s1_w.w );
            }
            break;
    }

    set_vp.vx = ex_s1_w.shoki_vp.vx + ex_s1_w.w_vp.vx * a / 100;
    set_vp.vy = ex_s1_w.shoki_vp.vy + ex_s1_w.w_vp.vy * a / 100;
    set_vp.vz = ex_s1_w.shoki_vp.vz + ex_s1_w.w_vp.vz * a / 100;
    if ( v != 0  ){
        x = v -> vx;
        y = v -> vy;
        z = v -> vz;
    }
    camera_vpPoint ( set_vp.vx, set_vp.vy, set_vp.vz );
    switch ( type ){
        case 0:
            camera_vrPoint ( t [ 0 ], ViewObj.View.vry, t [ 2 ] );
            break;
        default:
            camera_vrPoint ( t [ 0 ] + x, t [ 1 ] + y, t [ 2 ] + z );
            break;
    }
}

 
 
 
int ex_g_stage1_chara_move ( CHARA_W *pObj, MOVE_W *m )
{
    switch ( pObj -> step3 ){
        case 0:                                          
                                                         
            if ( pObj -> tz < m -> v.vz ){

0x4B8200#

"L\x01""N0「よしゃ!」R2";
//パワーがあがった。
//センスがあがった。
//ストレスが減った。

//(割れすぎた場合)
static u_char   summer_msg70[]  = "F1""Y\x08""L\x03""N0「あかん、やりすぎてもた…。」R2";
static u_char   summer_msg71[]  = "F2""Z\x01""テル""Z\x82""「スイカが粉々じゃねえか!馬鹿力出しやがって!Z\x03""R2";
static u_char   summer_msg72[]  = "これじゃ喰えねえよ。」Z\x03""R2";
static u_char   summer_msg73[]  = "F1""Y\x0A""L\x03""N0「すまん…。」R2";
//パワーがあがった。
//センスがあがった。


//(あまり割れなかった場合)
static u_char   summer_msg80[]  = "F1""Y\x0C""L\x01""N0「くそ、ワシとした事が…。」R2";
static u_char   summer_msg81[]  = "F2""Z\x01""テル""Z\x82""「あとは手で割って食べようぜ。」Z\x03""R2";
static u_char   summer_msg82[]  = "F1""N0""Y\x0A""「なんや盛り下げてもーたな。…。」""R2";

//○○○○「ごめん…。」
//パワーがあがった。
//センスがあがった。


//(まったく割れなかった場合)
static u_char   summer_msg90[]  = "F1""Y\x08""L\x03""N0「あれ?ワシの割ったスイカちゃんは?」R2";
static u_char   summer_msg91[]  = "F2""Z\x01""テル""Z\x82""「バカヤロウ!かすりもしてねぇよ!このヘタクソ!」Z\x03""R2";
static u_char   summer_msg92[]  = "F1""Y\x0A""N0「…。」R2";
//パワーがあがった。


static u_char   dir_msg_f0[]        = "F0リキ「前に進むんだぜ!」R0";
static u_char   dir_msg_r0[]        = "F0リキ「右を向くんだぜ、右!」R0";
static u_char   dir_msg_l0[]        = "F0リキ「左を向くんだぜ、左!」R0";
static u_char   dir_msg_s0[]        = "F0リキ「おう、そこだ!」R0";
static u_char   dir_msg_f1[]        = "F0マサ「まっすぐ進め!」R0";
s

0x576200#

ng *SRmode, long *RRmode);
extern void SpuGetVoiceEnvelopeAttr (int vNum, long *keyStat, short *envx );

extern void SpuSetCommonMasterVolume (short mvol_left, short mvol_right);
extern void SpuSetCommonMasterVolumeAttr (short mvol_left, short mvol_right,
                      short mvolmode_left,
                      short mvolmode_right);
extern void SpuSetCommonCDMix (long cd_mix);
extern void SpuSetCommonCDVolume (short cd_left, short cd_right);
extern void SpuSetCommonCDReverb (long cd_reverb);

extern void SpuGetCommonMasterVolume (short *mvol_left, short *mvol_right);
extern void SpuGetCommonMasterVolumeX (short *mvolx_left, short *mvolx_right);
extern void SpuGetCommonMasterVolumeAttr (short *mvol_left, short *mvol_right,
                      short *mvolmode_left,
                      short *mvolmode_right);
extern void SpuGetCommonCDMix (long *cd_mix);
extern void SpuGetCommonCDVolume (short *cd_left, short *cd_right);
extern void SpuGetCommonCDReverb (long *cd_reverb);

extern long SpuSetReverbModeType (long mode);
extern void SpuSetReverbModeDepth (short depth_left, short depth_right);
extern void SpuSetReverbModeDelayTime (long delay);
extern void SpuSetReverbModeFeedback (long feedback);
extern void SpuGetReverbModeType (long *mode);
extern void SpuGetReverbModeDepth (short *depth_left, short *depth_right);
extern void SpuGetReverbModeDelayTime (long *delay);
extern void SpuGetReverbModeFeedback (long *feedback);
extern void SpuSetESA( long revAddr );




 

















 


typedef struct {
    c

0x5CB200#

)
    lw  $16,16($sp)
    #nop
    .set    noreorder
    .set    nomacro
    j   $31
    addu    $sp,$sp,32
    .set    macro
    .set    reorder


    .loc    1 190
LM41:
    .end    ex_g_stage100_init
    .align  2
    .def    g_stage100_work_init;   .val    g_stage100_work_init;   .scl    3;  .type   0x21;   .endef

    .loc    1 197
LM42:

    .loc    1 197
LM43:
    .ent    g_stage100_work_init
g_stage100_work_init:
    .frame  $sp,0,$31       # vars= 0, regs= 0/0, args= 0, extra= 0
    .mask   0x00000000,0
    .fmask  0x00000000,0

    .loc    1 198
LM44:
    lui $2,%hi(s100_w) # high
    addiu   $2,$2,%lo(s100_w) # low
    li  $3,-17325           # 0xffffbc53
    sh  $3,106($2)

    .loc    1 199
LM45:
    li  $3,-11825           # 0xffffd1cf
    sh  $3,108($2)

    .loc    1 201
LM46:
    li  $3,-11925           # 0xffffd16b
    sh  $3,110($2)

    .loc    1 202
LM47:
    li  $3,-11030           # 0xffffd4ea
    sh  $3,112($2)

    .loc    1 204
LM48:
    sh  $3,114($2)

    .loc    1 205
LM49:
    li  $3,-10200           # 0xffffd828
    sh  $3,116($2)

    .loc    1 207
LM50:
    sh  $3,118($2)

    .loc    1 208
LM51:
    li  $3,-9150            # 0xffffdc42
    sh  $3,120($2)

    .loc    1 210
LM52:
    li  $3,-300         # 0xfffffed4
    sh  $3,98($2)

    .loc    1 212
LM53:
    li  $3,-975         # 0xfffffc31

    .loc    1 211
LM54:
    sh  $0,100($2)

    .loc    1 212
LM55:
    .set    noreorder
    .set    nomacro
    j   $31
    sh  $3,104($2)
    .set    macro
    .set    reorder


    .loc    1 212
LM56:
    .end    g_stage100_work_init
    .align  2
    .def    stage1_1_ren_sou_setu;  .val    stage1_1_ren_sou_setu;  .scl    3;  .type   0x24;   .endef

    .loc    1 222
LM57:

    .loc    1 222
LM58:
    .ent    stage1_1_ren_sou_setu
stage1_1_ren_sou_setu:
    .frame  $sp,32,$31      # vars= 0, reg

0x5D031C#

gh
    addiu   $2,$2,%lo(s100_w) # low

    .loc    1 435
LM235:
    lbu $3,1($2)

    .loc    1 434
LM236:
    sw  $0,28($2)

    .loc    1 436
LM237:
    sb  $0,2($2)

    .loc    1 437
LM238:
    sb  $0,3($2)

    .loc    1 435
LM239:
    addu    $3,$3,1
    sb  $3,1($2)
$L68:

    .loc    1 440
LM240:
$Le3:
    .bend   $Le3    52

    .loc    1 441
LM241:
    lw  $31,44($sp)
    lw  $16,40($sp)

    .loc    1 440
LM242:
    li  $2,-1           # 0xffffffff

    .loc    1 441
LM243:
    .set    noreorder
    .set    nomacro
    j   $31
    addu    $sp,$sp,48
    .set    macro
    .set    reorder


    .loc    1 441
LM244:
    .end    g_stg100_sou_angle
    .align  2
    .def    g_stg100_sou_jump;  .val    g_stg100_sou_jump;  .scl    3;  .type   0x24;   .endef

    .loc    1 444
LM245:

    .loc    1 444
LM246:
    .ent    g_stg100_sou_jump
g_stg100_sou_jump:
    .frame  $sp,40,$31      # vars= 16, regs= 2/0, args= 16, extra= 0
    .mask   0x80010000,-4
    .fmask  0x00000000,0
$Lb4:
    .begin  $Lb4    1
    .def    chk;    .val    3;  .scl    4;  .type   0x4;    .endef
    .def    xyz;    .val    -24;    .scl    1;  .tag    .1fake; .size   16; .type   0x8;    .endef
    subu    $sp,$sp,40
    sw  $31,36($sp)

    .loc    1 448
LM247:
    .set    noreorder
    .set    nomacro
    jal st1_1_sou_camera1
    sw  $16,32($sp)
    .set    macro
    .set    reorder


    .loc    1 450
LM248:
    lui $2,%hi(s100_w) # high
    addiu   $16,$2,%lo(s100_w) # low
    lw  $2,28($16)

    .loc    

0x5D5200#

$3,%hi(g_stage100_func) # high
    lui $2,%hi(sys) # high

    .loc    1 680
LM421:
    sw  $18,24($sp)

    .loc    1 683
LM422:
    addiu   $18,$2,%lo(sys) # low

    .loc    1 680
LM423:
    sw  $31,28($sp)
    sw  $17,20($sp)
    sw  $16,16($sp)

    .loc    1 683
LM424:
    lbu $2,3($18)
    addiu   $3,$3,%lo(g_stage100_func) # low
    sll $2,$2,2
    addu    $2,$2,$3
    lw  $2,0($2)
    #nop
    jal $31,$2

    .loc    1 685
LM425:
    .set    noreorder
    .set    nomacro
    jal g_stg100_kaiten
    move    $17,$2
    .set    macro
    .set    reorder


    .loc    1 687
LM426:
    lui $2,%hi(ex_gauge) # high
    addiu   $16,$2,%lo(ex_gauge) # low
    lbu $2,3($16)
    #nop
    .set    noreorder
    .set    nomacro
    beq $2,$0,$L147
    lui $2,%hi(s100_w+18) # high
    .set    macro
    .set    reorder


    .loc    1 688
LM427:
    lh  $4,%lo(s100_w+18)($2)
    .set    noreorder
    .set    nomacro
    jal ex_g_stage1_pow_graph
    li  $5,25000            # 0x000061a8
    .set    macro
    .set    reorder

$L147:

    .loc    1 690
LM428:
    lbu $2,6($16)
    #nop
    .set    noreorder
    .set    nomacro
    beq $2,$0,$L148
    lui $2,%hi(s100_w+26) # high
    .set    macro
    .set    reorder


    .loc    1 691
LM429:
    lh  $4,%lo(s100_w+26)($2)
    jal ex_g_stage1_rot_graph
$L148:

    .loc    1 695
LM430:
    lbu $2,3($18)
    #nop
    sltu    $2,$2,2
    beq $2,$0,$L149

    .loc    1 696
LM431:
    jal Nob_Effect_SHIZUKU
$L149:

    .loc    1 698
LM432:
    jal Nob_Effect_Func

    .loc    1 701
LM433:
    sll $3,$17,16
    .set    noreorder
    .set    nomacro
    beq $3,$0,$L151
    move    $2,$0
    .set    macro
    .set    reorder


    .loc    1 704
LM434:
    li  $2,-1           # 0xffffffff
$L151:

    .loc    1 705
LM435:
$Le9:
    .bend

0x5DA200#

-4
    .fmask  0x00000000,0
$Lb10:
    .begin  $Lb10   1
    .def    anime_shagamu;  .val    -16;    .scl    1;  .dim    2;  .size   4;  .type   0x33;   .endef
    .def    chk;    .val    4;  .scl    4;  .type   0x3;    .endef
    subu    $sp,$sp,32
    sw  $31,28($sp)
    sw  $16,24($sp)

    .loc    1 918
LM602:
    li  $2,23           # 0x00000017
    sh  $2,16($sp)

    .loc    1 920
LM603:
    lui $2,%hi(chara_w) # high
    addiu   $4,$2,%lo(chara_w) # low
    lh  $2,1178($4)

    .loc    1 918
LM604:
    li  $3,26           # 0x0000001a

    .loc    1 920
LM605:
    slt $2,$2,21
    .set    noreorder
    .set    nomacro
    beq $2,$0,$L216
    sh  $3,18($sp)
    .set    macro
    .set    reorder


    .loc    1 922
LM606:
    lb  $2,12($4)
    move    $6,$0
    sll $2,$2,1
    addu    $2,$sp,$2
    lh  $5,16($2)
    .set    noreorder
    .set    nomacro
    jal SetAnime3D
    li  $7,1            # 0x00000001
    .set    macro
    .set    reorder

$L216:

    .loc    1 927
LM607:
    move    $4,$0
    .set    noreorder
    .set    nomacro
    jal ex_g_stg1_angle
    li  $5,16           # 0x00000010
    .set    macro
    .set    reorder


    .loc    1 928
LM608:
    move    $4,$0

    .loc    1 927
LM609:
    lui $3,%hi(s100_w) # high
    addiu   $16,$3,%lo(s100_w) # low

    .loc    1 928
LM610:
    .set    noreorder
    .set    nomacro
    jal g_stg1_kidou_disp
    sh  $2,26($16)
    .set    macro
    .set    reorder


    .loc    1 930
LM611:
    lui $3,%hi(sys+48) # high
    lhu $3,%lo(sys+48)($3)

    .loc    1 930
LM612:
    #nop
    andi    $3,$3,0x0040
    .set    noreorder
    .set    nomacro
    beq $3,$0,$L217
    move    $4,$2
    .set    macro
    .set    reorder


    .loc    1 931
LM613:
    lh  $2,26($16)
    #nop
    slt $2,$2,80
    .set    noreorder
    .set    nomacro
    bne $2,$0,$L225
    li  $2,-1           # 0xffffffff
    .set

0x5DF200#

    .loc    1 1163
LM806:
    .set    noreorder
    .set    nomacro
    jal g_stage100_atari3
    sw  $19,44($16)
    .set    macro
    .set    reorder


    .loc    1 1165
LM807:
    li  $3,-1240793088          # 0xb60b0000
    lw  $4,24($16)
    ori $3,$3,0x60b7
    addu    $4,$4,11030
    mult    $4,$3

    .loc    1 1163
LM808:
    move    $5,$2
    lui $18,%hi(s100_w) # high
    addiu   $17,$18,%lo(s100_w) # low

    .loc    1 1165
LM809:
    sra $3,$4,31
    mfhi    $9
    #nop
    #nop
    addu    $2,$9,$4
    sra $2,$2,7
    subu    $2,$2,$3
    sll $3,$2,1
    addu    $3,$3,$2
    sll $2,$3,4
    subu    $2,$2,$3
    sll $2,$2,2
    subu    $4,$4,$2
    bgez    $4,1f
    subu    $4,$0,$4
1:
    slt $4,$4,90
    .set    noreorder
    .set    nomacro
    beq $4,$0,$L278
    sh  $5,36($17)
    .set    macro
    .set    reorder


    .loc    1 1166
LM810:
    addu    $2,$5,-1
    sh  $2,36($17)
$L278:

    .loc    1 1168
LM811:
    lh  $2,36($17)
    sw  $0,16($16)
    sll $3,$2,1
    addu    $3,$3,$2
    sll $2,$3,4
    subu    $2,$2,$3
    sll $2,$2,2
    li  $3,-200         # 0xffffff38
    subu    $3,$3,$2
    addu    $2,$2,-10940
    sw  $2,24($16)

    .loc    1 1173
LM812:
    slt $2,$2,-10670

    .loc    1 1173
LM813:
    .set    noreorder
    .set    nomacro
    bne $2,$0,$L279
    sw  $3,20($16)
    .set    macro
    .set    reorder


    .loc    1 1174
LM814:
    move    $4,$16
    li  $5,33           # 0x00000021
    move    $6,$0
    .set    noreorder
    .set    nomacro
    jal SetAnime3D
    li  $7,1            # 0x00000001
    .set    macro
    .set    reorder


    .loc    1 1175
LM815:
    lbu $2,%lo(s100_w)($18)
    #nop
    addu    $2,$2,3

    .loc    1 1176
LM816:
    .set    noreorder
    .set    nomacro
    j   $L276
    sb  $2,%lo(s100_w)($18)
    .set    macro
    .set    reorder

$L279:

    .loc    1 1177
LM817

0x5E4200#

6:
    li  $2,3            # 0x00000003

    .loc    1 1386
LM997:
    .set    noreorder
    .set    nomacro
    j   $L337
    sb  $2,%lo(s100_w)($17)
    .set    macro
    .set    reorder

$L341:

    .loc    1 1388
LM998:
    lbu $2,%lo(s100_w)($17)
    #nop
    addu    $2,$2,1
    sb  $2,%lo(s100_w)($17)
$L342:

    .loc    1 1390
LM999:
    lui $2,%hi(s100_w) # high
    addiu   $16,$2,%lo(s100_w) # low

    .loc    1 1391
LM1000:
    lui $3,%hi(chara_w) # high
    addiu   $3,$3,%lo(chara_w) # low

    .loc    1 1390
LM1001:
    lw  $5,32($16)

    .loc    1 1392
LM1002:
    lw  $2,24($3)

    .loc    1 1390
LM1003:
    addu    $5,$5,2

    .loc    1 1392
LM1004:
    subu    $2,$2,$5
    sw  $2,24($3)

    .loc    1 1395
LM1005:
    lh  $4,24($3)

    .loc    1 1391
LM1006:
    lw  $2,20($3)

    .loc    1 1390
LM1007:
    sw  $5,32($16)

    .loc    1 1391
LM1008:
    addu    $2,$2,$5

    .loc    1 1395
LM1009:
    .set    noreorder
    .set    nomacro
    jal g_stage100_atari3
    sw  $2,20($3)
    .set    macro
    .set    reorder


    .loc    1 1396
LM1010:
    sll $2,$2,16
    sra $2,$2,16
    .set    noreorder
    .set    nomacro
    bltz    $2,$L343
    sll $2,$2,1
    .set    macro
    .set    reorder


    .loc    1 1397
LM1011:
    addu    $3,$2,$16
    lh  $2,52($3)
    #nop
    .set    noreorder
    .set    nomacro
    bgtz    $2,$L354
    lui $2,%hi(chara_w) # high
    .set    macro
    .set    reorder


    .loc    1 1398
LM1012:
    li  $2,512          # 0x00000200
    sh  $2,52($3)

    .loc    1 1399
LM1013:
    li  $2,1            # 0x00000001
    sh  $2,42($3)

    .loc    1 1400
LM1014:
    li  $2,64           # 0x00000040
    sh  $2,72($3)

    .loc    1 1401
LM1015:
    li  $2,16           # 0x00000010
    sh  $2,82($3)
$L343:

    .loc    1 1404
LM1016:
    lui $2,%hi(chara_w) 

0x602200#

60
    mfhi    $3
    #nop
    #nop
    addu    $5,$3,$5
    sra $5,$5,5
    subu    $5,$5,$2
    addu    $5,$5,30
    subu    $5,$0,$5
    sll $5,$5,16
    .set    noreorder
    .set    nomacro
    jal g_stg110_maruta
    sra $5,$5,16
    .set    macro
    .set    reorder


    .loc    1 886
LM622:
    lui $3,%hi(chara_w) # high
    lw  $2,56($19)
    addiu   $3,$3,%lo(chara_w) # low
    sw  $2,16($3)

    .loc    1 887
LM623:
    lw  $2,60($19)
    #nop
    sw  $2,20($3)

    .loc    1 888
LM624:
    lw  $2,64($19)
    #nop
    sw  $2,24($3)

    .loc    1 889
LM625:
    lh  $2,68($19)
    #nop
    sw  $2,28($3)

    .loc    1 890
LM626:
    lh  $2,68($19)
    #nop
    slt $2,$2,3585
    .set    noreorder
    .set    nomacro
    beq $2,$0,$L240
    li  $2,-1           # 0xffffffff
    .set    macro
    .set    reorder


    .loc    1 891
LM627:
    lbu $2,%lo(s110_w)($20)

    .loc    1 892
LM628:
    lhu $3,26($18)

    .loc    1 891
LM629:
    addu    $2,$2,1
    sb  $2,%lo(s110_w)($20)

    .loc    1 893
LM630:
    .set    noreorder
    .set    nomacro
    j   $L204
    sh  $3,28($18)
    .set    macro
    .set    reorder

$L208:

    .loc    1 895
LM631:
    lh  $4,68($19)
    .set    noreorder
    .set    nomacro
    jal g_stg110_check_point
    addu    $5,$18,26
    .set    macro
    .set    reorder


    .loc    1 897
LM632:
    lh  $4,26($18)
    lh  $3,28($18)

    .loc    1 897
LM633:
    #nop
    .set    noreorder
    .set    nomacro
    beq $4,$3,$L209
    sh  $2,10($18)
    .set    macro
    .set    reorder


    .loc    1 898
LM634:
    lh  $2,6($18)
    #nop
    bne $2,$0,$L210

    .loc    1 899
LM635:
    .set    noreorder
    .set    nomacro
    jal SSK_CALL
    li  $4,10           # 0x0000000a
    .set    macro
    .set    reorder


    .loc    1 900
LM636:
    lui $17,%hi(game_w) # high
    addiu   $17

0x664C00#

hort   tx, ty;             // テクスチャ座標
    short   cx, cy;             // クラット座標
    u_char  r, g, b;            // 輝度値(輝度調整なしの時は不要)
    short   scalex, scaley;     // 拡大率(拡縮OFFの時は不要)
    long    rotate;             // 回転角(拡縮OFFの時は不要)
    ANIME_SYS   *sys;           // 俺システム予約
}ANIME_W;


/* アトリビュート設定用マクロ */
#define KIDO_OFF        0x40        // 輝度調整
#define V_HANTEN    0x400000    // 垂直反転
#define H_HANTEN    0x800000    // 水平反転
#define MODE_4BIT   0x0000000   // 4bitCLUTモード
#define MODE_8BIT   0x1000000   // 8bitCLUTモード
#define MODE_15BIT  0x2000000   // 15bitDIRECTモード
#define TOUSHI      0x4000000   // 透視変換(未サポート)
#define KAKUSYUKU_OFF   0x8000000   // 回転、拡縮OFF
#define TOUMEI_R0   0x00000000  // 半透明レート(0)
#define TOUMEI_R1   0x10000000  // 半透明レート(1)
#define TOUMEI_R2   0x20000000  // 半透明レート(2)
#define TOUMEI_R3   0x30000000  // 半透明レート(3)
#define HANTOUMEI   0x40000000  // 半透明フラグ
#define HYOUJI_OFF  0x80000000  // 表示OFF
/* その汎用版 */
#define NORMAL_4BIT (MODE_4BIT|KAKUSYUKU_OFF)
#d

0x67D600#

URU+  262)     // 「一瞬滑りましたが、ここは何とかこえていきます。」
#define SSVOICE_F107   (SSK_VOICE+VFURU+  263)     // 「一瞬滑りましたが、ここは何とかこえていきます。」
#define SSVOICE_F108   (SSK_VOICE+VFURU+  264)     // 「水浸し?!!」
#define SSVOICE_F109   (SSK_VOICE+VFURU+  265)     // 「滑ってしまいました!」
#define SSVOICE_F10a   (SSK_VOICE+VFURU+  266)     // 「一気に奈落の底!!」
#define SSVOICE_F10b   (SSK_VOICE+VFURU+  267)     // 「落ちたーーーー!!」
#define SSVOICE_F10c   (SSK_VOICE+VFURU+