2014-09-08 19:57:20 +00:00
|
|
|
; void __cdecl getdate(struct date *datep)
|
2014-11-05 17:20:02 +00:00
|
|
|
_getdate proc
|
2014-09-08 19:57:20 +00:00
|
|
|
@@datep = DPTR_ 2 + dPtrSize
|
|
|
|
|
|
|
|
push bp
|
|
|
|
mov bp, sp
|
|
|
|
push si
|
|
|
|
push di
|
|
|
|
mov ah, 2Ah
|
|
|
|
int 21h
|
|
|
|
LES_ bx, [bp+@@datep]
|
|
|
|
mov es:[bx], cx
|
|
|
|
mov es:[bx+2], dx
|
|
|
|
pop di
|
|
|
|
pop si
|
|
|
|
pop bp
|
|
|
|
ret
|
|
|
|
_getdate endp
|
|
|
|
|
|
|
|
; void __cdecl gettime(struct time *timep)
|
2014-11-05 17:20:02 +00:00
|
|
|
_gettime proc
|
2014-09-08 19:57:20 +00:00
|
|
|
@@timep = DPTR_ 2 + dPtrSize
|
|
|
|
|
|
|
|
push bp
|
|
|
|
mov bp, sp
|
|
|
|
push si
|
|
|
|
push di
|
|
|
|
mov ah, 2Ch
|
2015-09-07 13:44:02 +00:00
|
|
|
int 21h
|
2014-09-08 19:57:20 +00:00
|
|
|
LES_ bx, [bp+@@timep]
|
|
|
|
mov es:[bx], cx
|
|
|
|
mov es:[bx+2], dx
|
|
|
|
pop di
|
|
|
|
pop si
|
|
|
|
pop bp
|
|
|
|
ret
|
|
|
|
_gettime endp
|