Skip to content

Commit

Permalink
ND100: Added void in function declarations, removed unused function ffs
Browse files Browse the repository at this point in the history
  • Loading branch information
psco authored and markpizz committed Apr 19, 2023
1 parent 0fd7a9e commit 55dd407
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
17 changes: 2 additions & 15 deletions ND100/nd100_cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ DEVICE cpu_dev = {
};

t_stat
sim_instr()
sim_instr(void)
{
int IR;
int reason;
Expand Down Expand Up @@ -1525,7 +1525,7 @@ nd_tra(int reg)
}

int
highest_level()
highest_level(void)
{
int i, d = pid & pie;

Expand All @@ -1551,19 +1551,6 @@ fls(int msk)
return -1;
}

int
ffs(mask)
register int mask;
{
register int bit;

if (mask == 0)
return(0);
for (bit = 1; !(mask & 1); bit++)
mask >>= 1;
return(bit);
}

/*
* Post an internal interrupt for the given source.
*/
Expand Down
4 changes: 2 additions & 2 deletions ND100/nd100_mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,15 @@ wrmem(int vaddr, int val/* , int how*/)
}

void
mm_wrpcr()
mm_wrpcr(void)
{
if (ISDIS())
return;
PCR[(regA >> 3) & 017] = regA & 03603;
}

void
mm_rdpcr()
mm_rdpcr(void)
{
if (ISDIS())
return;
Expand Down

0 comments on commit 55dd407

Please sign in to comment.