From 688549ef81836c64864d7c2c7fb06f04fdc6c9e0 Mon Sep 17 00:00:00 2001 From: phfr24 Date: Fri, 12 Dec 2025 18:26:19 -0300 Subject: [PATCH] fix null xs seed bug --- lifeboot.asm | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.54.0