2022-01-26 15:19:39 -05:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
2022-01-26 17:43:18 -05:00
|
|
|
|
2022-01-26 15:19:39 -05:00
|
|
|
.code16
|
2022-01-27 13:27:41 -05:00
|
|
|
.global _start
|
2022-01-27 12:34:57 -05:00
|
|
|
|
2022-01-27 13:50:02 -05:00
|
|
|
.section .rodata
|
2022-01-27 14:32:23 -05:00
|
|
|
disk_number: .string "Disk number: "
|
2022-01-26 17:43:18 -05:00
|
|
|
|
2022-01-27 13:50:02 -05:00
|
|
|
.section .text
|
2022-01-27 13:27:41 -05:00
|
|
|
_start:
|
2022-01-27 14:32:23 -05:00
|
|
|
mov $disk_number, %si
|
|
|
|
call print_str
|
|
|
|
|
|
|
|
call restore_disk_number
|
|
|
|
xor %ax, %ax
|
|
|
|
mov %dl, %al
|
|
|
|
call print_number
|
|
|
|
|
|
|
|
mov $newline, %si
|
|
|
|
call print_str
|
|
|
|
|
2022-01-27 14:49:04 -05:00
|
|
|
call main
|
|
|
|
|
2022-01-27 14:02:58 -05:00
|
|
|
ljmp $0, $hang
|