Hello All, I have been recently working with the real time clock in asm and I understand how it works to read in the hours, minutes and seconds, here is what i have so far:
Code: Select all
movb $0x02, %ah
int $0x1a
mov %ch, %al
okay now if i'm right, that should save the value of ch into al. Which is the hours? Now my question is, if i'm right, how would i output the value without converting from BCD? Or even to BCD.
And one more question is that, if i go to the minutes seconds, would it be like this:
mov %cl, %al
mov %dh, %al
if i do those, each after writing to the screen the value, would that work properly as a simple clock?
btw, i'm compiling with 'as' in linux.
Thanks so much for any help!