Use define

This commit is contained in:
Alex Kotov 2022-01-27 03:58:11 +05:00
parent 169982925d
commit 8d23cec33b
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 7 additions and 7 deletions

View File

@ -47,13 +47,13 @@ start:
mov %dl, ADDRESS(disk)
mov $0x02, %ah
mov $1, %al /* Sectors count */
mov $0x80, %dl /* Drive */
mov $0, %ch /* Cylinder */
mov $0, %dh /* Head */
mov $2, %cl /* Cylinder and sector */
mov $0x7e00, %bx /* Address */
mov $0x02, %ah
mov $1, %al /* Sectors count */
mov $0x80, %dl /* Drive */
mov $0, %ch /* Cylinder */
mov $0, %dh /* Head */
mov $2, %cl /* Cylinder and sector */
mov $STAGE2_ADDR, %bx /* Address */
int $0x13
ljmp $0, $STAGE2_ADDR