mirror of
https://github.com/simh/simh.git
synced 2026-05-02 22:22:48 +00:00
BuildROMs: Move ROM exclusion logic into ROM include files
- Plan is to avoid "#ifdef DONT_USE_INTERNAL_ROM" in simulator code and handle builtin or external files in SCP facilities - Export ROM checksum value and source file path to allow for transparent dynamic ROM location at run time.
This commit is contained in:
@@ -1,34 +1,67 @@
|
||||
#ifndef ROM_rom_rev2_bin_H
|
||||
#define ROM_rom_rev2_bin_H 0
|
||||
/*
|
||||
3B2/rom_rev2_bin.h produced at Mon Aug 23 13:30:22 2021
|
||||
from 3B2/rom_rev2.bin which was last modified at Mon Jul 26 08:03:30 2021
|
||||
3B2/rom_rev2_bin.h produced at Wed Oct 19 10:15:15 2022
|
||||
from 3B2/rom_rev2.bin which was last modified at Sun Sep 25 10:27:44 2022
|
||||
file size: 32768 (0x8000) - checksum: 0xFFD55762
|
||||
This file is a generated file and should NOT be edited or changed by hand.
|
||||
*/
|
||||
#undef BOOT_CODE_SIZE
|
||||
#define BOOT_CODE_SIZE 0x8000
|
||||
#undef BOOT_CODE_CHECKSUM
|
||||
#define BOOT_CODE_CHECKSUM 0xFFD55762
|
||||
#undef BOOT_CODE_FILENAME
|
||||
#define BOOT_CODE_FILENAME "rom_rev2.bin"
|
||||
#undef BOOT_CODE_FILEPATH
|
||||
#define BOOT_CODE_FILEPATH "3B2/rom_rev2.bin"
|
||||
#undef BOOT_CODE_ARRAY
|
||||
#if defined(DONT_USE_INTERNAL_ROM)
|
||||
#define BOOT_CODE_ARRAY NULL
|
||||
#else
|
||||
#define BOOT_CODE_ARRAY rom_rev2_bin
|
||||
#endif
|
||||
#if !defined(BOOT_CODE_SIZE_1)
|
||||
#define BOOT_CODE_SIZE_1 0x8000
|
||||
#define BOOT_CODE_CHECKSUM_1 0xFFD55762
|
||||
#define BOOT_CODE_FILENAME_1 "rom_rev2.bin"
|
||||
#define BOOT_CODE_FILEPATH_1 "3B2/rom_rev2.bin"
|
||||
#if defined(DONT_USE_INTERNAL_ROM)
|
||||
#define BOOT_CODE_ARRAY_1 NULL
|
||||
#else
|
||||
#define BOOT_CODE_ARRAY_1 rom_rev2_bin
|
||||
#endif
|
||||
#elif !defined(BOOT_CODE_SIZE_2)
|
||||
#define BOOT_CODE_SIZE_2 0x8000
|
||||
#define BOOT_CODE_CHECKSUM_2 0xFFD55762
|
||||
#define BOOT_CODE_FILENAME_2 "rom_rev2.bin"
|
||||
#define BOOT_CODE_FILEPATH_2 "3B2/rom_rev2.bin"
|
||||
#if defined(DONT_USE_INTERNAL_ROM)
|
||||
#define BOOT_CODE_ARRAY_2 NULL
|
||||
#else
|
||||
#define BOOT_CODE_ARRAY_2 rom_rev2_bin
|
||||
#endif
|
||||
#elif !defined(BOOT_CODE_SIZE_3)
|
||||
#define BOOT_CODE_SIZE_3 0x8000
|
||||
#define BOOT_CODE_CHECKSUM_3 0xFFD55762
|
||||
#define BOOT_CODE_FILENAME_3 "rom_rev2.bin"
|
||||
#define BOOT_CODE_FILEPATH_3 "3B2/rom_rev2.bin"
|
||||
#if defined(DONT_USE_INTERNAL_ROM)
|
||||
#define BOOT_CODE_ARRAY_3 NULL
|
||||
#else
|
||||
#define BOOT_CODE_ARRAY_3 rom_rev2_bin
|
||||
#endif
|
||||
#elif !defined(BOOT_CODE_SIZE_4)
|
||||
#define BOOT_CODE_SIZE_4 0x8000
|
||||
#define BOOT_CODE_CHECKSUM_4 0xFFD55762
|
||||
#define BOOT_CODE_FILENAME_4 "rom_rev2.bin"
|
||||
#define BOOT_CODE_FILEPATH_4 "3B2/rom_rev2.bin"
|
||||
#if defined(DONT_USE_INTERNAL_ROM)
|
||||
#define BOOT_CODE_ARRAY_4 NULL
|
||||
#else
|
||||
#define BOOT_CODE_ARRAY_4 rom_rev2_bin
|
||||
#endif
|
||||
#endif
|
||||
#if !defined(DONT_USE_INTERNAL_ROM)
|
||||
unsigned char rom_rev2_bin[] = {
|
||||
0x00,0x00,0x05,0x48,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
|
||||
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
|
||||
@@ -2078,4 +2111,5 @@ unsigned char rom_rev2_bin[] = {
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x25,0x72,
|
||||
0x22,0x22,0x22,0x22,0x03,0x02,0x01,0x30,0x03,0x02,0x01,0x0E,0x03,0x02,0x01,0x0B,};
|
||||
#endif
|
||||
#endif /* ROM_rom_rev2_bin_H */
|
||||
|
||||
Reference in New Issue
Block a user