Implement VSU

This commit is contained in:
2024-10-20 18:52:19 -05:00
parent 50903c7513
commit 3afe0282c2
7 changed files with 734 additions and 43 deletions
+3 -3
View File
@@ -21,11 +21,11 @@ static void tmrUpdate(VB *sim, uint16_t value) {
/***************************** Library Functions *****************************/
/* Process component */
static int tmrEmulate(VB *sim, uint32_t clocks) {
static void tmrEmulate(VB *sim, uint32_t clocks) {
/* Timer is disabled */
if (!sim->tmr.t_enb)
return 0;
return;
/* Process all clocks */
for (;;) {
@@ -34,7 +34,7 @@ static int tmrEmulate(VB *sim, uint32_t clocks) {
if (sim->tmr.clocks > clocks) {
sim->tmr.clocks -= clocks;
sim->tmr.until -= clocks;
return 0;
return;
}
/* Advance forward the component's number of clocks */