Changeset 239 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS


Ignore:
Timestamp:
Feb 5, 2012, 5:06:58 PM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Passing ROMSIZE into main.asm to calculate number of 512B blocks for option ROM header, added checksum calculations for large images.

Location:
trunk/XTIDE_Universal_BIOS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Main.asm

    r238 r239  
    3939
    4040; ROM variables (must start at offset 0)
    41 CNT_ROM_BLOCKS      EQU     16  ; 16 * 512B = 8kB BIOS
     41CNT_ROM_BLOCKS      EQU     ROMSIZE / 512       ; number of 512B blocks, 16 = 8kB BIOS
    4242istruc ROMVARS
    4343    at  ROMVARS.wRomSign,   dw  0AA55h          ; PC ROM signature
  • trunk/XTIDE_Universal_BIOS/makefile

    r238 r239  
    7979###################
    8080
     81# Target size of the ROM, used in main.asm for number of 512B blocks and by checksum Perl script below
     82ROMSIZE = 8192
     83ROMSIZE_LARGE = 15360
     84
    8185# Add -D in front of every preprocessor define declaration
    82 DEFS = $(DEFINES:%=-D%)
    83 DEFS_XT = $(DEFINES_XT:%=-D%)
    84 DEFS_XTPLUS = $(DEFINES_XTPLUS:%=-D%)
    85 DEFS_AT = $(DEFINES_AT:%=-D%)
    86 DEFS_XT_LARGE = $(DEFINES_XT_LARGE:%=-D%)
    87 DEFS_XTPLUS_LARGE = $(DEFINES_XTPLUS_LARGE:%=-D%)
    88 DEFS_AT_LARGE = $(DEFINES_AT_LARGE:%=-D%)
     86DEFS = $(DEFINES:%=-D%) 
     87DEFS_XT = $(DEFINES_XT:%=-D%) -DROMSIZE=$(ROMSIZE)
     88DEFS_XTPLUS = $(DEFINES_XTPLUS:%=-D%) -DROMSIZE=$(ROMSIZE)
     89DEFS_AT = $(DEFINES_AT:%=-D%) -DROMSIZE=$(ROMSIZE)
     90DEFS_XT_LARGE = $(DEFINES_XT_LARGE:%=-D%) -DROMSIZE=$(ROMSIZE_LARGE)
     91DEFS_XTPLUS_LARGE = $(DEFINES_XTPLUS_LARGE:%=-D%) -DROMSIZE=$(ROMSIZE_LARGE)
     92DEFS_AT_LARGE = $(DEFINES_AT_LARGE:%=-D%) -DROMSIZE=$(ROMSIZE_LARGE)
    8993
    9094# Add -I in front of all header directories
     
    9397# Path + target file to be built
    9498TARGET = $(BUILD_DIR)/$(PROG)
    95 
    96 # Target size of the ROM, used by checksum Perl script 
    97 ROMSIZE = 8192
    9899
    99100#########################
     
    165166    @perl ..\tools\checksum.pl $(TARGET)_xtp.bin $(ROMSIZE)
    166167    @perl ..\tools\checksum.pl $(TARGET)_xt.bin $(ROMSIZE)
     168    @perl ..\tools\checksum.pl $(TARGET)_atl.bin $(ROMSIZE_LARGE)
     169    @perl ..\tools\checksum.pl $(TARGET)_xtpl.bin $(ROMSIZE_LARGE)
     170    @perl ..\tools\checksum.pl $(TARGET)_xtl.bin $(ROMSIZE_LARGE)
    167171
    168172src\StringsCompressed.asm:  src\Strings.asm
Note: See TracChangeset for help on using the changeset viewer.