X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=bootcensus;a=blobdiff_plain;f=src%2Fboot%2Fboot.s;h=b976ec7f1c5f44554755d8bde61b67ff8b0a1b33;hp=f17766bce2174072c420bb8523cdefe011a735bf;hb=eb934abaf0dcfa48589c6ac15f2a2ff235c5aea0;hpb=0fa4cfc6571c3965a4777e2da8d47a84ca08f555 diff --git a/src/boot/boot.s b/src/boot/boot.s index f17766b..b976ec7 100644 --- a/src/boot/boot.s +++ b/src/boot/boot.s @@ -65,15 +65,16 @@ boot: call read_sectors jmp boot2_addr - .set ARG_NSECT, 6 - .set ARG_SIDX, 4 - loading_msg: .asciz "\nLoad " driveno_msg: .asciz "Drv:" + .global sect_per_track sect_per_track: .short 18 + .global num_cylinders num_cylinders: .short 80 + .global num_heads num_heads: .short 2 + .global heads_mask heads_mask: .byte 1 get_drive_chs: @@ -118,6 +119,10 @@ ok: xor %eax, %eax call print_num ret + + .set ARG_NSECT, 6 + .set ARG_SIDX, 4 + # read_sectors(first, num) read_sectors: push %bp