Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
assume cs:code
code segment
org 100h
program:
jmp start
sec db ?
start:
mov cx,0030h
call timer
mov ax,4c00h
int 21h
; input: cx is value to delay for.
; (approximate to seconds).
timer:
sub bx,bx
mov al,00h ; seconds address
out 70h,al ; wake up port
jmp $+2 ; a short delay
in al,71h
mov [sec],al
timer_loop:
mov al,00h ; seconds address
out 70h,al ; wake up port
jmp $+2 ; a short delay
in al,71h
cmp al,[sec]
je timer_loop
; second gone by...
mov [sec],al
inc bx
cmp bx,cx
jne timer_loop
ret
code ends
end program