0

I'm writing a bootloader. How can I read the current seconds range of the CMOS clock(0-59) in 16 bit x86 assembly?

I tried reading through this and I'm confused. https://wiki.osdev.org/CMOS#CMOS_Registers

Peter Cordes
  • 328,167
  • 45
  • 605
  • 847
  • One of the answers on [How can I access system time using NASM?](https://stackoverflow.com/a/1465943) shows asm to read from the hardware RTC via `out` and `in` instructions, getting seconds, minutes, ..., year. – Peter Cordes Feb 21 '23 at 01:12
  • 1
    The article you mentioned contains example how to read a CMOP register. What exactly confused you? Did you try to read CMOP register 0? What did you get? – dimich Feb 21 '23 at 01:15

0 Answers0