|
|
|
|
|
by eduardordm
4257 days ago
|
|
This is probably one of the few times assembly is more readable and easy to understand than C. Many years ago I used to teach OS classes at a local university, we would build a simple bootstrap using NASM. The source code includes 32bits (a20 etc) and GDT iirc: https://github.com/eduardordm/sisop/blob/master/sisop.asm |
|
Also noticed a minor optimisation:
Could've been replaced with a 'lodsb', saving 2 bytes. Ditto for MOV BH/MOV BL with MOV BX. :-)