Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SETTIME: ;Function call 45
- ;Time is in CX:DX in hours, minutes, seconds, 1/100 sec.
- MOV AL,-1 ;Flag in case of error
- CMP CH,24 ;Check hours
- JAE RET26
- CMP CL,60 ;Check minutes
- JAE RET26
- CMP DH,60 ;Check seconds
- JAE RET26
- CMP DL,100 ;Check 1/100's
- JAE RET26
- CALL FAR PTR BIOSSETTIME
- XOR AL,AL
- RET
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement