Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

bug in NVclock ? (Developers)

posted by Laaca Homepage, Czech republic, 13.08.2009, 09:54

I rewrote some routines from NVClock into Freepascal and I think I found a bug in function vc_read_pbus16 in backend.c
It looks like this:

unsigned short nv_read_pbus16(int offset)
{
int shift = (offset / 2)*16;
return (nv_card->PBUS[offset/4] >> shift) & 0xffff;
}



But I think it should be corrected like this:
unsigned short nv_read_pbus16(int offset)
{
int shift = (offset % 2)*16;
return (nv_card->PBUS[offset/4] >> shift) & 0xffff;
}

---
DOS-u-akbar!

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 246 users online (0 registered, 246 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum