mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
95 lines
3.3 KiB
XML
95 lines
3.3 KiB
XML
<UserControl
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:du="using:Mesen.Debugger.Utilities"
|
|
xmlns:vm="using:Mesen.Debugger.StatusViews"
|
|
xmlns:c="using:Mesen.Controls"
|
|
mc:Ignorable="d" d:DesignWidth="350"
|
|
VerticalAlignment="Stretch"
|
|
HorizontalAlignment="Stretch"
|
|
x:DataType="vm:SpcStatusViewModel"
|
|
x:Class="Mesen.Debugger.StatusViews.SpcStatusView"
|
|
>
|
|
<Design.DataContext>
|
|
<vm:SpcStatusViewModel />
|
|
</Design.DataContext>
|
|
|
|
<UserControl.Styles>
|
|
<StyleInclude Source="/Styles/DebugStatusStyles.xaml" />
|
|
</UserControl.Styles>
|
|
|
|
<ScrollViewer>
|
|
<DockPanel>
|
|
<StackPanel DockPanel.Dock="Right">
|
|
<StackPanel Orientation="Horizontal" IsEnabled="{Binding EditAllowed}">
|
|
<TextBlock Margin="0">SP:</TextBlock>
|
|
<c:MesenNumericTextBox Value="{Binding RegSP}" Hex="True" Max="0xFF" />
|
|
</StackPanel>
|
|
<TextBox
|
|
TextWrapping="Wrap"
|
|
Width="78"
|
|
Height="65"
|
|
AcceptsReturn="True"
|
|
IsReadOnly="True"
|
|
ScrollViewer.VerticalScrollBarVisibility="Visible"
|
|
Text="{Binding StackPreview}"
|
|
/>
|
|
</StackPanel>
|
|
|
|
<StackPanel DockPanel.Dock="Top" IsEnabled="{Binding EditAllowed}">
|
|
<WrapPanel>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock>A:</TextBlock>
|
|
<c:MesenNumericTextBox Value="{Binding RegA}" Hex="True" Max="0xFF" />
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock>X:</TextBlock>
|
|
<c:MesenNumericTextBox Value="{Binding RegX}" Hex="True" Max="0xFF" />
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock>Y:</TextBlock>
|
|
<c:MesenNumericTextBox Value="{Binding RegY}" Hex="True" Max="0xFF" />
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock>PC:</TextBlock>
|
|
<c:MesenNumericTextBox Value="{Binding RegPC}" Hex="True" Max="0xFFFF" />
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock>Cycle:</TextBlock>
|
|
<c:MesenNumericTextBox Width="70" Value="{Binding CycleCount}" IsEnabled="False" />
|
|
</StackPanel>
|
|
</WrapPanel>
|
|
|
|
<Rectangle Stroke="{StaticResource MesenGrayBorderColor}" StrokeThickness="1" Margin="5 5 5 2" />
|
|
|
|
<WrapPanel Margin="0 2 0 0" DockPanel.Dock="Top">
|
|
<StackPanel DockPanel.Dock="Left" Orientation="Horizontal" VerticalAlignment="Top">
|
|
<TextBlock>P:</TextBlock>
|
|
<c:MesenNumericTextBox Value="{Binding RegPS}" Hex="True" Max="0xFF" />
|
|
</StackPanel>
|
|
|
|
<WrapPanel>
|
|
<StackPanel>
|
|
<CheckBox IsChecked="{Binding FlagC}" Content="Carry" />
|
|
<CheckBox IsChecked="{Binding FlagZ}" Content="Zero" />
|
|
</StackPanel>
|
|
<StackPanel>
|
|
<CheckBox IsChecked="{Binding FlagI}" Content="IRQ" />
|
|
<CheckBox IsChecked="{Binding FlagH}" Content="Half" />
|
|
</StackPanel>
|
|
<StackPanel>
|
|
<CheckBox IsChecked="{Binding FlagB}" Content="Break" />
|
|
<CheckBox IsChecked="{Binding FlagP}" Content="Dir. Page" />
|
|
</StackPanel>
|
|
<StackPanel>
|
|
<CheckBox IsChecked="{Binding FlagV}" Content="Overflow" />
|
|
<CheckBox IsChecked="{Binding FlagN}" Content="Negative" />
|
|
</StackPanel>
|
|
</WrapPanel>
|
|
</WrapPanel>
|
|
</StackPanel>
|
|
</DockPanel>
|
|
</ScrollViewer>
|
|
</UserControl>
|