Exemple #1
0
        public int CompileRom(string fileName)
        {
            _rom = new Rom();
            if (!_rom.Load(fileName))
            {
                throw new Exception("Unable to load rom.");
            }

            WritePalettes(_palettesService.GetPalettes());
            WriteTileBlockData();

            _dataPointer = 0x24010;
            CompileWorlds();

            _dataPointer = 0x40010;
            _dataPointer = CompileLevels();

            WriteGraphics();
            _rom.Save();
            return(0x7C00F - _dataPointer);
        }
Exemple #2
0
 public void Init()
 {
     _bios.Load(@"..\..\..\Apps\BIOS\bin\ROM0.bin", @"..\..\..\Apps\BIOS\bin\ROM1.bin");
 }