# HG changeset patch # User Pascal Bellard # Date 1568098963 -7200 # Node ID 063403f23e53905ca60184db4ee603ffef416f49 # Parent e37956962a8470314e3634f941855126717c3859 linux: floppy by floppy fallback diff -r e37956962a84 -r 063403f23e53 linux/stuff/bootloader.S --- a/linux/stuff/bootloader.S Sat Sep 07 14:54:07 2019 +0200 +++ b/linux/stuff/bootloader.S Tue Sep 10 09:02:43 2019 +0200 @@ -40,7 +40,7 @@ // #define MULTI_INITRD Russian dolls // #define README_SUPPORT // #define COUNTER Show floppy number -#define LABEL "SliTaz" +#define LABEL "Tiny" /* remove from basic features */ // #define EXE_ONLY remove floppy code @@ -274,8 +274,8 @@ call wait4key #else int $0x16 + cbw # %ah = 0, get keyboard character #endif - cbw # %ah = 0, get keyboard character cmpb $8, %al # BackSpace ? je cmdbs movb %al, (%si) # store char @@ -530,8 +530,10 @@ check_limits: popw %dx - cmpb %al, %cl # max sector known ? - ja next_head # no -> store it + cmpb %cl, %al # max sector known ? + jbe next_head # no -> store it + #.byte 0xd6 # SALC # sector by sector + movb $0, %al # sector by sector pushaw int $0x13 # reset controler #ifndef NO_OUTPUT