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

public static class Q1Layout
{
    // Bus locations
    public static readonly (u16 start, u16 size) Rom     = (0x1FFF, 1024 * 8);
    public static readonly (u16 start, u16 size) Memory  = (0x4FFF, 1024 * 16);
    public static readonly u16                   Display = 0x3FFF;
    
    
    public static readonly u16 StackStart      = Q1Layout.Memory.start;
    public static readonly u16 StackLength     = 256 * 2; // 256 16-bit values
    public static readonly u16 FreeMemoryStart = (u16) (Q1Layout.StackStart + Q1Layout.StackLength);
    public static readonly u16 ProgramStart = Q1Layout.Rom.start;
}