From c391ae26685546fa3e03b438b858300c79102174 Mon Sep 17 00:00:00 2001 From: Elliot Nunn Date: Sat, 10 Oct 2020 12:03:42 +0800 Subject: [PATCH] Add Disk Copy image support --- NetBoot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/NetBoot.py b/NetBoot.py index deb6833..6a5c875 100755 --- a/NetBoot.py +++ b/NetBoot.py @@ -38,6 +38,11 @@ my_unique_ltoudp_id = b'El' + (os.getpid() & 0xFFFF).to_bytes(2, 'big') disk_image = open(path.join(path.dirname(path.abspath(__file__)), 'systools607.dsk'), 'rb').read() +# Strip the Disk Copy header +if disk_image[0x54:0x56] == b'LK' or disk_image[0x454:0x456] == b'BD': + disk_image = disk_image[0x54:] + print('Stripped Disk Copy header from image') + def assemble(the_code):