Exemplo n.º 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);
        }
        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);
        }
Exemplo n.º 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);
 }