From: phfr24 Date: Fri, 12 Dec 2025 21:26:19 +0000 (-0300) Subject: fix null xs seed bug X-Git-Url: https://git.wirehaze.ovh/lifeboot.git/commitdiff_plain/688549ef81836c64864d7c2c7fb06f04fdc6c9e0?ds=sidebyside fix null xs seed bug --- diff --git a/lifeboot.asm b/lifeboot.asm index ed03350..c92c0af 100644 --- a/lifeboot.asm +++ b/lifeboot.asm @@ -52,8 +52,15 @@ mov ah, 0x01 ; set text-mode cursor shape int 0x10 ; video services ; initialize xss + +set_xss_seed: + 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