summaryrefslogtreecommitdiff
path: root/Assembler/Extensions.cs
blob: fd4ea1f11dc435e35245d78132f6356d30589506 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
namespace Q1.Assembler;

public static class Extensions
{
    
    public static u8 High(this u16 value)
    {
        return (u8)(value >> 8);
    }
    
    public static u8 Low(this u16 value)
    {
        return (u8)(value & 0xFF);
    }
}