コード例 #1
0
        public void newSection(int ramAddr, int ramLen, int fileOffs, int bssSize)
        {
            Console.Out.WriteLine(String.Format("SECTION {0:X8} - {1:X8} - {2:X8}", ramAddr, ramAddr + ramLen, ramAddr + ramLen + bssSize));

            byte[] data = new byte[ramLen];
            Array.Copy(f.getContents(), fileOffs, data, 0, ramLen);
            Arm9BinSection s = new Arm9BinSection(data, ramAddr, bssSize);
            sections.Add(s);
        }
コード例 #2
0
        public void newSection(int ramAddr, int ramLen, int fileOffs, int bssSize)
        {
            Console.Out.WriteLine(String.Format("SECTION {0:X8} - {1:X8} - {2:X8}", ramAddr, ramAddr + ramLen, ramAddr + ramLen + bssSize));

            byte[] data = new byte[ramLen];
            Array.Copy(f.getContents(), fileOffs, data, 0, ramLen);
            Arm9BinSection s = new Arm9BinSection(data, ramAddr, bssSize);

            sections.Add(s);
        }
コード例 #3
0
 public void newSection(int ramAddr, int ramLen, int fileOffs, int bssSize)
 {
     byte[] data = new byte[ramLen];
     Array.Copy(f.getContents(), fileOffs, data, 0, ramLen);
     Arm9BinSection s = new Arm9BinSection(data, ramAddr, bssSize);
     if(s.len == 0)
         nullSection = s;
     else
         sections.Add(s);
 }