Jeremy Penner
ccfb52aeaa
65816: support 8-bit immediate mode repl: add re-run and clear buttons ssc: fix returning false from an else clause add byteswap, byte reads / writes start stdlib with memcpy
12 lines
295 B
Fennel
12 lines
295 B
Fennel
(local link
|
|
{:switch
|
|
(fn [self name]
|
|
(set self.machine (require (.. "link." name)))
|
|
(set self.name name))
|
|
:types [:serial :tape :mame :udpdebug]})
|
|
|
|
(local serial (require :link.serial))
|
|
(link:switch (if (and (pcall #(serial:connect)) (serial:connected?)) :serial :mame))
|
|
|
|
link
|