2015-06-09 17:21:49 +00:00
|
|
|
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
tools:context="emu6502.app.MainActivity">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<android.support.design.widget.AppBarLayout
|
|
|
|
android:id="@+id/appbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
|
|
|
|
|
|
|
|
<include layout="@layout/toolbar" />
|
|
|
|
|
|
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<android.support.v7.widget.CardView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="400dp"
|
|
|
|
android:layout_margin="@dimen/card_margin">
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/txtInstructions"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2015-06-12 06:26:47 +00:00
|
|
|
android:text="LDA #$01\nSTA $0200\nLDA #$05\nSTA $0201\nLDA #$08\nSTA $0202"
|
2015-06-09 17:21:49 +00:00
|
|
|
android:fontFamily="monospace"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:gravity="top" />
|
|
|
|
|
2015-06-22 07:25:33 +00:00
|
|
|
<android.emu6502.Display
|
|
|
|
android:id="@+id/display"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:visibility="gone"/>
|
|
|
|
|
2015-06-09 17:21:49 +00:00
|
|
|
</android.support.v7.widget.CardView>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
style="?android:attr/buttonBarStyle"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnReset"
|
|
|
|
style="?android:attr/buttonBarButtonStyle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="Reset" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="20dp">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_marginBottom="20dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/A"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:fontFamily="monospace"
|
|
|
|
android:text="A=$00" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/X"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:fontFamily="monospace"
|
|
|
|
android:text="X=$00" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/Y"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:fontFamily="monospace"
|
|
|
|
android:text="Y=$00" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_marginBottom="20dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/SP"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:fontFamily="monospace"
|
|
|
|
android:text="SP=$ff" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/PC"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:fontFamily="monospace"
|
|
|
|
android:text="PC=$0600"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_marginBottom="20dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/flags"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:fontFamily="monospace"
|
|
|
|
android:text="00110000" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<android.support.design.widget.FloatingActionButton
|
2015-06-12 06:26:47 +00:00
|
|
|
android:id="@+id/fabRun"
|
2015-06-09 17:21:49 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end|bottom"
|
|
|
|
android:layout_margin="@dimen/fab_margin"
|
|
|
|
android:src="@drawable/ic_play_arrow_white_48dp"
|
|
|
|
app:elevation="3dp" />
|
|
|
|
|
|
|
|
</android.support.design.widget.CoordinatorLayout>
|