如何在程序集 8086 中找到星期几

how to find which day it is of the week in assembly 8086

我想知道今天是星期几,谁能帮帮我?

DAY: 

MOV AH,2AH    ; To get System Date
INT 21H
MOV AL,DL     ; Day is in DL
AAM
MOV BX,AX
CALL DISP

    mov ah,4ch
    int 21h  

DISP PROC
MOV DL,BH      ; Since the values are in BX, BH Part
ADD DL,30H     ; ASCII Adjustment
MOV AH,02H     ; To Print in DOS
INT 21H
MOV DL,BL      ; BL Part 
ADD DL,30H     ; ASCII Adjustment
MOV AH,02H     ; To Print in DOS
INT 21H
RET
DISP ENDP

它只显示日期,但我也想要当天。

第一个 Google 搜索结果 'int21H functions' 给了我:

   Function 2Ah - Get system date

   Action:    Returns the system day, month and year plus the day of the week. 

On entry: 
AH = 2Ah

Returns:
CX = year (1980 to 2099) 
DH = month (1 to 12) 
DL = day of month(1 to 31) 
==> AL = day number in week (0 to 6 = Sunday to Saturday) 
Notes:  The format of the registers returned by this call is the same as that required by Function 2Bh. Although shown above as decimal values for clarity, all values are in hex.