aboutsummaryrefslogtreecommitdiff
path: root/src/Device.hs
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2021-03-15 16:43:32 +0300
committerAleksey Veresov <aleksey@veresov.pro>2021-03-15 16:43:32 +0300
commitf46e607f284f2edb41711550990106f47460fc26 (patch)
tree260f91e1eb9f87a37e466f333776ec3f7a7f1062 /src/Device.hs
parent12fcc45436309def4a6137c8f6547514c8a706c6 (diff)
downloadsuem-f46e607f284f2edb41711550990106f47460fc26.tar
suem-f46e607f284f2edb41711550990106f47460fc26.tar.xz
suem-f46e607f284f2edb41711550990106f47460fc26.zip
.
Diffstat (limited to 'src/Device.hs')
-rw-r--r--src/Device.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Device.hs b/src/Device.hs
new file mode 100644
index 0000000..1d42bb8
--- /dev/null
+++ b/src/Device.hs
@@ -0,0 +1,14 @@
+module Machine where
+
+import Data.Word (Word32, Word16, Word8)
+
+
+data DeviceRequest = DeviceGetByte Long
+ | DeviceGetWord Long
+ | DeviceGetLong Long
+ | DeviceSetByte Long Word8
+ | DeviceSetWord Long Word16
+ | DeviceSetLong Long Word32
+
+checkInteruptsFromDevices :: Emulator ()
+checkInteruptsFromDevices = putStrLn "blah-blah"