Minor corrections after review

This commit is contained in:
Vincent DEFERT 2023-06-01 08:50:30 +02:00
parent 86bee9141a
commit 1468d60005
2 changed files with 1 additions and 5 deletions

View File

@ -46,7 +46,6 @@ class StcGal:
def __init__(self, opts): def __init__(self, opts):
self.opts = opts self.opts = opts
self.hexFileType = 8 self.hexFileType = 8
self.linearBaseAddress = 0
self.initialize_protocol(opts) self.initialize_protocol(opts)
def initialize_protocol(self, opts): def initialize_protocol(self, opts):
@ -100,7 +99,6 @@ class StcGal:
try: try:
hexfile = IHex.read(fileobj) hexfile = IHex.read(fileobj)
self.hexFileType = hexfile.get_mode() self.hexFileType = hexfile.get_mode()
self.linearBaseAddress = hexfile.get_linearBaseAddress()
binary = hexfile.extract_data() binary = hexfile.extract_data()
print("%d bytes (Intel HEX)" %len(binary)) print("%d bytes (Intel HEX)" %len(binary))
return binary return binary
@ -132,8 +130,6 @@ class StcGal:
print("base address, i.e. contain a type 04 record. More information at:", file=sys.stderr) print("base address, i.e. contain a type 04 record. More information at:", file=sys.stderr)
print("https://en.wikipedia.org/wiki/Intel_HEX", file=sys.stderr) print("https://en.wikipedia.org/wiki/Intel_HEX", file=sys.stderr)
else: else:
self.protocol.linearBaseAddress = self.linearBaseAddress
# warn if it overflows # warn if it overflows
if len(bindata) > code_size: if len(bindata) > code_size:
print("WARNING: code_image overflows into eeprom segment!", file=sys.stderr) print("WARNING: code_image overflows into eeprom segment!", file=sys.stderr)

View File

@ -1911,7 +1911,7 @@ class Stc8dProtocol(Stc8Protocol):
def set_option(self, name, value): def set_option(self, name, value):
super().set_option(name, value) super().set_option(name, value)
if name=='program_eeprom_split': if name == 'program_eeprom_split':
split_point = Utils.to_int(value); split_point = Utils.to_int(value);
if self.model.mcs251: if self.model.mcs251: