-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
387 additions
and
444 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
namespace Sim80C51.Processors.Attributes | ||
{ | ||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] | ||
public class IVAttribute : Attribute | ||
public class IVAttribute(ushort address, byte priority, string name) : Attribute | ||
{ | ||
public ushort Address { get; } | ||
public byte Priority { get; } | ||
public string Name { get; } | ||
|
||
public IVAttribute(ushort address, byte priority, string name) | ||
{ | ||
Address = address; | ||
Priority = priority; | ||
Name = name; | ||
} | ||
public ushort Address => address; | ||
public byte Priority => priority; | ||
public string Name => name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
namespace Sim80C51.Processors.Attributes | ||
{ | ||
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)] | ||
public class SFR16Attribute : Attribute | ||
public class SFR16Attribute(string sfrHName, string sfrLName) : Attribute | ||
{ | ||
public string SFRHName { get; } | ||
public string SFRLName { get; } | ||
|
||
public SFR16Attribute(string SFRHName, string SFRLName) | ||
{ | ||
this.SFRHName = SFRHName; | ||
this.SFRLName = SFRLName; | ||
} | ||
public string SFRHName => sfrHName; | ||
public string SFRLName => sfrLName; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
namespace Sim80C51.Processors.Attributes | ||
{ | ||
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)] | ||
public class SFRAttribute : Attribute | ||
public class SFRAttribute(ushort address, byte resetValue) : Attribute | ||
{ | ||
public ushort Address { get; } | ||
public ushort Address => address; | ||
|
||
public byte ResetValue { get; } | ||
|
||
public SFRAttribute(ushort address, byte resetValue) | ||
{ | ||
Address = address; | ||
ResetValue = resetValue; | ||
} | ||
public byte ResetValue => resetValue; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
namespace Sim80C51.Processors.Attributes | ||
{ | ||
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)] | ||
public class SFRBitAttribute : Attribute | ||
public class SFRBitAttribute(string sfrName, byte bit, bool addressable = false) : Attribute | ||
{ | ||
public string SFRName { get; } | ||
public byte Bit { get; } | ||
public bool Addressable { get; } | ||
|
||
public SFRBitAttribute(string SFRName, byte Bit, bool Addressable = false) | ||
{ | ||
this.SFRName = SFRName; | ||
this.Bit = Bit; | ||
this.Addressable = Addressable; | ||
} | ||
public string SFRName => sfrName; | ||
public byte Bit => bit; | ||
public bool Addressable => addressable; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.