mirror of
https://github.com/elliotnunn/NetBoot.git
synced 2024-12-22 16:30:08 +00:00
Change padding mechanism
This commit is contained in:
parent
5c97e31336
commit
a96d61eca7
@ -34,11 +34,12 @@ for img2name in image2:
|
|||||||
image2dict[img2name] = bytearray(img2)
|
image2dict[img2name] = bytearray(img2)
|
||||||
|
|
||||||
img2name = img2name.encode('mac_roman')
|
img2name = img2name.encode('mac_roman')
|
||||||
image += struct.pack('>LB', len(img2)//512, len(img2name)) + img2name
|
# image += struct.pack('>LB', len(img2)//512, len(img2name)) + img2name
|
||||||
while len(image) % 2: image += b'\0'
|
while len(image) % 2: image += b'\0'
|
||||||
|
|
||||||
image += bytes(5)
|
image += bytes(5)
|
||||||
image += b'Elliot'*10000 # padding, too much!
|
while len(image) < 8 * 512: image += b'?'
|
||||||
|
# image += b'Elliot'*10000 # padding, too much!
|
||||||
image = append_snefru(image)
|
image = append_snefru(image)
|
||||||
|
|
||||||
writable_image = bytearray(open('A608.dsk', 'rb').read())
|
writable_image = bytearray(open('A608.dsk', 'rb').read())
|
||||||
|
@ -732,3 +732,5 @@ gUserRec ; append user record here later on, no need to waste space on zeros
|
|||||||
|
|
||||||
DrvrEnd
|
DrvrEnd
|
||||||
CodeEnd
|
CodeEnd
|
||||||
|
|
||||||
|
align 12 ; work around unfortunate .ATBOOT bug
|
||||||
|
Loading…
Reference in New Issue
Block a user