12 ms·
I like the following structure at the end of the assembler boot block code: times (0x1B4 - ($-$$)) nop disk_identifier: times 10 db 0 partition_entry_1: time
by peter_d_sherman 3y ago
I like the following structure at the end of the assembler boot block code:
times (0x1B4 - ($-$$)) nop
disk_identifier: times 10 db 0
partition_entry_1: times 16 db 0
partition_entry_2: times 16 db 0
partition_entry_3: times 16 db 0
partition_entry_4: times 16 db 0
dw 0xAA55
That's elegant, because it shows where/how the disk identifier and the 4 classic MBR partitions coexist inside of the same first 512 bytes in the boot block, with the boot code... (it is assumed that AFTER the boot block is copied to disk that the partitions will be set by an outside program (i.e., fdisk or similar program) to appropriate values... otherwise MBR partitions would be set to 0 from copying the boot block -- but that's a minor sub-point... it's elegant code -- I've seen a lot of boot block code, and I've never seen that construct before!)
- queuebert 3y agoQuickly checks if it's yet another Justine Tunney stupidly genius project ...
- queuebert 3y agoPlugging Justine gets downvoted? What in the what?
- petee 3y agoI think the use of stupidly could look like you were being demeaning. Personally I wasn't sure how to take it when I first read it; the downside of text communication vs in-person
- queuebert 3y agoAh, makes sense. Funny thing is I only added "stupidly" to make sure it didn't sound sarcastic. Perhaps "stunningly" would've been easier to parse. It's hard to find a superlative appropriate to her work.
- Hammershaft 3y agoMakes me think of all the elegance, simplicity, & performance we are leaving on the table with our limited OS competition.