X-Git-Url: https://git.wirehaze.ovh/lifeboot.git/blobdiff_plain/2790ad17ff1a7654d28c6ec97f336d85ac8a6b8a..1f37f09b39ff30c4154b2deaef399eebb594c8db:/lifeboot.asm?ds=sidebyside diff --git a/lifeboot.asm b/lifeboot.asm index ed03350..7ada2fa 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 @@ -187,18 +194,6 @@ call vsync_wait xor word [currvgapg], VGAPGSZ ; flip currvgapg setnz al ; al = !(currvgapg == 0) -mov di, [currvgapg] ; es:di -> current page -mov dh, PRINT_COLOR - -mov dl, 'P' -mov [es:di], dx - -mov dl, al -add dl, 48 -add di, 2 - -mov [es:di], dx - mov ah, 0x05 ; select active display page int 0x10 ; video services