paolo....@gmail.com schrieb am Mittwoch, 7. Dezember 2022 um 19:42:06 UTC+1:
> I wonder about programs that have no knowledge of the file structure, such as file dump utilities and binary editors.
The program
bye.com from z80pack used to shutdown the VM's is only 17 bytes, but of course requires
a 128 byte sector to store on disk. A dump of the code:
A>dump
bye.com
0000 DB A0 B7 CA 0A 01 3E AA D3 A0 3E 80 D3 A0 F3 76
0010 C9 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
A>
I filled the unused bytes with 0, but could have used anything, or just leave the random byes that
were in memory. Doesn't matter, but filling with 0 makes it looking better. As you can see dump
doesn't care, it just shows the bytes in the 1 record long file.