]> wirehaze git hosting - lifeboot.git/commitdiff

wirehaze git hosting

fix null xs seed bug
authorphfr24 <phfr24@inf.ufpr.br>
Fri, 12 Dec 2025 21:26:19 +0000 (18:26 -0300)
committerphfr24 <phfr24@inf.ufpr.br>
Fri, 12 Dec 2025 21:26:19 +0000 (18:26 -0300)
lifeboot.asm

index ed033500fa6fd5b529a420c2dd764442c6607d13..c92c0afe4a0c163389d8e79bb93890c5bee4db9f 100644 (file)
@@ -52,8 +52,15 @@ mov ah, 0x01                ; set text-mode cursor shape
 int 0x10                    ; video services
 
 ; initialize xss
 int 0x10                    ; video services
 
 ; initialize xss
+
+set_xss_seed:
+
 mov ah, 0x00                ; get
 int 0x1a                    ;  system time
 mov ah, 0x00                ; get
 int 0x1a                    ;  system time
+
+cmp dx, 0
+je set_xss_seed             ; if seed is 0, xs wont work properly
+
 mov [xss], dx               ; cx:dx = number of clock ticks since midnight
 
 ; initialize currvgapg
 mov [xss], dx               ; cx:dx = number of clock ticks since midnight
 
 ; initialize currvgapg