Professional Documents
Culture Documents
Tugas 2!
assume cs:cseg,ds:cseg,ss:nothing,es:nothing
jmp p150 ; start-up code
push cs
pop ds ; make ds=cs
mov ax,wait ; check wait time
dec ax ; zero?
jz p010 ; yes - 1 second has elapsed
mov wait,ax ; not this time
jmp p080 ; return
mov hour,ax
call p120 ; beep the speaker once
p080: popf
pop ds
pop ax
jmp cs:[jumpval]
alarm endp
cseg ends
end alarm