Change padding mechanism

This commit is contained in:
Elliot Nunn 2021-03-02 13:24:11 +08:00
parent 5c97e31336
commit a96d61eca7
2 changed files with 5 additions and 2 deletions

View File

@ -34,11 +34,12 @@ for img2name in image2:
image2dict[img2name] = bytearray(img2)
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'
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)
writable_image = bytearray(open('A608.dsk', 'rb').read())

View File

@ -732,3 +732,5 @@ gUserRec ; append user record here later on, no need to waste space on zeros
DrvrEnd
CodeEnd
align 12 ; work around unfortunate .ATBOOT bug