Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 int 21-2AH 和 2CH 来获取时间和日期,并了解返回结果的寄存器。但是当我使用 int 21-2 输出它时,我得到了一个有趣的角色。我用什么来正确输出到屏幕?我正在使用 Tasm
2Ch 将小时/分钟/秒/厘秒作为二进制数返回。你不能直接输出它们,因为你只会得到 ASCII 表中那个位置的任何字符。您必须先将这些二进制数转换为 ascii 字符串。