예제 #1
0
        public ROMInterface(Ver ver_)
        {
            ver = ver_;

            dataIDbases = new RomAddress[] { 0x1060, 0, 0, 0x528430, 0xb16170, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };

            mapNumbers = 0xb0;
            practiceMapNumber = 0x19;

            ustruct3_size = 0x118;
            ustruct3_iiPlaceVector = 0x5c;
            ustruct3_preparedList = 0x60;
            preparedList_count = 0x50;

            placeVector_size = 8;
            placeVector_numberOfObjPlaces = 0;
            placeVector_iObjPlaces = 4;
            objPlaceC_size = 0xc;
            objPlace_kind = 0;
            objPlace_info = 2;
            objPlace_xpos = 4;
            objPlace_ypos = 8;
            numberOfObjPlacesMax = 150;

            ustruct5Table = new RamAddress(0x800abf60).toRomAddress();

            ustruct5_size = 8;
            uttruct5_iUStruct3 = 4;

            headerModAddr1 = 0x67f;
            headerModAddr2 = 0x68b;
            headerModByte1 = 0x63;
            headerModByte2 = 0xba;
            freeSpaceAddr = 0xe67fd0;
            freeSpaceSize = 0x1000000 - freeSpaceAddr.x;

            basicObjects = new ushort[]
            {
                       0x4001,0x4002,0x4003,0x4004,0x4005,0x4006,0x4007,0x4008,0x4009,0x400a,0x400b,0x400c,0x400d,0x400e,0x400f,
                0x4010,0x4011,0x4012,0x4013,0x4014,0x4015,0x4016,0x4017,0x4018,0x4019,0x401a,0x401b,0x401c,0x401d,0x401e,0x401f,
                0x4020,0x4021,0x4022,0x4023,0x4024,0x4025,0x4026,0x4027,0x402c,
                0x4030,0x4031,0x4032,0x4033,0x4034,0x4035,
                0x4088,0x40f2,0x460c,0x460d
            };

            switch (ver)
            {
                case Ver.Japanese:
                    break;
            }
        }
예제 #2
0
파일: Types.cs 프로젝트: anta-/YSedit
 public void setRomAddress(uint offset, RomAddress val)
 {
     setWord(offset, val.x);
 }