wok-tiny rev 150
linux: floppy by floppy fallback
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 10 09:02:43 2019 +0200 (2019-09-10) |
parents | e37956962a84 |
children | f93fa966f210 |
files | linux/stuff/bootloader.S |
line diff
1.1 --- a/linux/stuff/bootloader.S Sat Sep 07 14:54:07 2019 +0200 1.2 +++ b/linux/stuff/bootloader.S Tue Sep 10 09:02:43 2019 +0200 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