NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectEmulation Timing Question  
Posted byAteneo
Posted on10/28/04 11:17 PM
From IP64.76.4.95  



im implementing timing in my emulator mixing "how to write a computer emulator" and 2C02 Tech. Ref. but i dont know if its correct. In other words i read that an scanline takes 341/3 = 113 cpu cycles, so i do the following:

---------------------
if (SLCounter <= 0)
{
SLCounter = 113;
ProcessScanLine()
// and other things...
}
else
SLCounter-= OpcodeCycle;
---------------------

is this correct?
I thing its a very poor "timing" algoritm, can somebody help me about Timing?

Thanks



-
Entire Thread
Subject  Posted byPosted On
.Emulation Timing Question  Ateneo10/28/04 11:17 PM
.*Re: Emulation Timing Question  Disch10/29/04 00:19 AM
..*Re: Emulation Timing Question  Fx310/29/04 01:39 AM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo