X-Git-Url: https://git.wirehaze.ovh/lifeboot.git/blobdiff_plain/2790ad17ff1a7654d28c6ec97f336d85ac8a6b8a..688549ef81836c64864d7c2c7fb06f04fdc6c9e0:/lifeboot.asm?ds=sidebyside 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