如何使用汇编获取BIOS时间? [英] How to get BIOS time using assembly ?

查看:106
本文介绍了如何使用汇编获取BIOS时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于教育目的,我正在从头开始实施一个小型操作系统.
现在,我想使用汇编程序来获取BIOS时间.我为此进行了大量搜索,但找不到任何代码示例来完成此操作.
如果有人可以提供任何参考或代码示例或与此相关的任何内容,我将不胜感激.

I am implementing a small operating system from scratch for educational purpose.
Now, I want to get the BIOS time using assembly. I have searched a lot for this but couldn't find any code example to do so.
I would be really grateful , if anybody could provide any reference or code examples or anything related to this.

推荐答案

请参见自午夜以来的时钟滴答数将在 cx:dx 中返回.每天有 0x1800B0 个时钟滴答声.

The number of clock ticks since midnight will be returned in cx:dx. There are 0x1800B0 clock ticks per day.

这篇关于如何使用汇编获取BIOS时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆