wok-tiny diff linux/stuff/bootloader.S @ rev 168

memtest: 386 support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 30 16:35:54 2021 +0000 (2021-04-30)
parents bb00d1e3b0f7
children eb617e43dc08
line diff
     1.1 --- a/linux/stuff/bootloader.S	Fri Oct 09 10:21:00 2015 +0200
     1.2 +++ b/linux/stuff/bootloader.S	Fri Apr 30 16:35:54 2021 +0000
     1.3 @@ -40,7 +40,7 @@
     1.4  // #define MULTI_INITRD		Russian dolls
     1.5  // #define README_SUPPORT
     1.6  // #define COUNTER		Show floppy number
     1.7 -#define LABEL "SliTaz"
     1.8 +#define LABEL "Tiny"
     1.9  
    1.10  /* remove from basic features */
    1.11  // #define EXE_ONLY		remove floppy code
    1.12 @@ -274,8 +274,8 @@
    1.13  	call	wait4key
    1.14  #else
    1.15  	int	$0x16
    1.16 +	cbw				# %ah = 0, get keyboard character
    1.17  #endif
    1.18 -	cbw				# %ah = 0, get keyboard character
    1.19  	cmpb	$8, %al			# BackSpace ?
    1.20  	je	cmdbs
    1.21  	movb	%al, (%si)		# store char
    1.22 @@ -530,8 +530,10 @@
    1.23  
    1.24  check_limits:
    1.25  	popw	%dx
    1.26 -        cmpb    %al, %cl		# max sector known ?
    1.27 -        ja	next_head		#   no -> store it
    1.28 +        cmpb    %cl, %al		# max sector known ?
    1.29 +        jbe	next_head		#   no -> store it
    1.30 +        #.byte	0xd6	# SALC		# sector by sector
    1.31 +        movb	$0, %al			# sector by sector
    1.32  	pushaw
    1.33          int     $0x13			# reset controler
    1.34  #ifndef NO_OUTPUT