Displaying 3 results from an estimated 3 matches for "write_hex_value".
2009 Mar 30
2
[PATCH 1/1] v2 Add Diagnostic MBR for trouble-shooting
...in boot message */
+
+use_lba_addressing:
+ /* convert drive-number to two hex characters and insert them into the boot message */
+ movw (drive_number), %dx
+ pushw %dx /* preserve for use by calculate_geometry */
+ movw $msg_drive_number, %di
+ movb $0x02, %cl /* write two nibbles */
+ call write_hex_value
+
+calculate_geometry:
+ popw %dx /* retrieve drive number */
+ movb $0x08, %ah
+ int $0x13 /* get drive parameters; returns CH LSB of max cyl., CL(7-6) MSb max cyl., */
+ /* CL(5-0) max sector, DH max head, DL drive qty, ES:DI floppy parameter table */
+ movb %ch, %bl /* transfer maxi...
2009 Mar 30
0
[PATCH 1/1] Add Diagnostic MBR for trouble-shooting
...in boot message */
+use_lba_addressing:
+
+ /* convert drive-number to two hex characters and insert them into the boot message */
+ movw (drive_number), %dx
+ pushw %dx /* preserve for use by calculate_geometry */
+ movw $msg_drive_number, %di
+ movb $0x02, %cl /* write two nibbles */
+ call write_hex_value
+
+calculate_geometry:
+ popw %dx /* retrieve drive number */
+ movb $0x08, %ah
+ int $0x13 /* get drive parameters; returns CH LSB of max cyl., CL(7-6) MSb max cyl., */
+ /* CL(5-0) max sector, DH max head, DL drive qty, ES:DI floppy parameter table */
+ movb %ch, %bl /* transfer maxi...
2009 Mar 30
2
[PATCH 1/1] v3: Add Diagnostic MBR for trouble-shooting BIOS boot-order problems.
...in boot message */
+
+use_lba_addressing:
+ /* convert drive-number to two hex characters and insert them into the boot message */
+ movw (drive_number), %dx
+ pushw %dx /* preserve for use by calculate_geometry */
+ movw $msg_drive_number, %di
+ movb $0x02, %cl /* write two nibbles */
+ call write_hex_value
+
+calculate_geometry:
+ popw %dx /* retrieve drive number */
+ movb $0x08, %ah
+ int $0x13 /* get drive parameters; returns CH LSB of max cyl., CL(7-6) MSb max cyl., */
+ /* CL(5-0) max sector, DH max head, DL drive qty, ES:DI floppy parameter table */
+ movb %ch, %bl /* transfer maxi...