2 ms·
You can also easily see this in the (really nice) code, where the only difference is the starting address set at https://github.com/nanochess/Pillman/blob/maste
by johannes1234321 7y ago
You can also easily see this in the (really nice) code, where the only difference is the starting address set at https://github.com/nanochess/Pillman/blob/master/pillman.asm#L50 https://github.com/nanochess/Pillman/blob/master/pillman.asm... and the MBR magic bytes in the very bottom.
If you now wonder what the difference between a .com and a .exe file is:
A .com file has a single page which is loaded in that specific location, with all addresses in the code assuming absolute addresses. The .exe (MZ file) allows DOS to put the program anywhere into memory and the rewrite address references (or rather segments) according the relocation table from the program header. With MZ files DOS also sets up space for the stack and sets registers accordingly.