mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2024-11-26 08:49:50 +00:00
Fix for non-standard boot headers using a single sector instead of usual minimum of 3 sectors
This commit is contained in:
parent
df38db492a
commit
7e51284cb1
@ -362,7 +362,7 @@ class BootDiskImage(DiskImageBase):
|
||||
max_ram = 0xc000
|
||||
max_size = max_ram - bload
|
||||
max_sectors = max_size / self.header.sector_size
|
||||
if nsec > max_sectors or nsec < 3:
|
||||
if nsec > max_sectors or nsec < 1:
|
||||
raise InvalidDiskImage("Number of boot sectors out of range")
|
||||
if bload < 0x200 or bload > (0xc000 - (nsec * self.header.sector_size)):
|
||||
raise InvalidDiskImage("Bad boot load address")
|
||||
|
Loading…
Reference in New Issue
Block a user