]> defiant.homedns.org Git - pyshared.git/commitdiff
bootloader: Fix addr on last page master
authorErik Andresen <erik@vontaene.de>
Mon, 27 May 2024 17:53:48 +0000 (19:53 +0200)
committerErik Andresen <erik@vontaene.de>
Mon, 27 May 2024 17:53:48 +0000 (19:53 +0200)
bootloader.py

index 60e645a38de61a715e478b6c48cbf07b98f09711..17cf64f3e486ac44fdffddbd5511a4b63fc1d8b0 100755 (executable)
@@ -88,6 +88,7 @@ class bootloader:
                                        else:
                                                print "Addr 0x%x" % buf_addr
                                                handle(buf_addr, buf[:self.pagesize])
+                                               buf_addr += self.pagesize
                                        buf = buf[self.pagesize:]
                        elif typ == 3: # Start Segment Address Record
                                self.boot_addr = int(data.encode("hex"), 16)