|
|
|
|
|
by userbinator
4257 days ago
|
|
Going into protmode in the boot sector is extremely early. Most OSs I've seen will stay in realmode (or "unreal" mode) for a little bit longer, so they can use the BIOS to setup some more stuff before making that leap. Also noticed a minor optimisation: mov AL, [SI] ; pega um byte da string e carrega em al
inc SI
Could've been replaced with a 'lodsb', saving 2 bytes. Ditto for MOV BH/MOV BL with MOV BX. :-) |
|
Two bytes shorter:
Three bytes shorter; this one may be a little too clever, since it depends on the low bit of CR0 being 0 initially: