如何在装配8086中找到星期几

时间:2019-04-04 06:50:12

标签: assembly emu8086

我想知道星期几,有人可以帮助我吗?

sudo /home/user/path/to/foo.sh

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

1 个答案:

答案 0 :(得分:2)

第一个针对“ int21H函数”的Google搜索命中结果给了我

   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.