mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-11-26 04:26:13 +00:00
Inline clock ticking mechanism
This commit is contained in:
1 parent
072a8dd984
commit
b8e95f52b3
1 file changed
+3
@@ -2,6 +2,8 @@
|
||||
// Copyright (c) Adrian Conlon. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace EightBit
|
||||
{
|
||||
public class ClockedChip : Chip
|
||||
@@ -22,6 +24,7 @@ namespace EightBit
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public void Tick()
|
||||
{
|
||||
++this.Cycles;
|
||||
|
||||
Reference in new issue
Block a user