From 8d23cec33b9b84e92e66b51eeaa9b4940925a75f Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Thu, 27 Jan 2022 03:58:11 +0500 Subject: [PATCH] Use define --- src/x86_stage1.S | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/x86_stage1.S b/src/x86_stage1.S index e2cdd7e..384378e 100644 --- a/src/x86_stage1.S +++ b/src/x86_stage1.S @@ -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