Skip to content

Instantly share code, notes, and snippets.

@MyNameIsKodos
MyNameIsKodos / bios.lua
Last active August 29, 2015 14:12 — forked from fnuecke/bios.lua
local m=component.proxy(component.list("modem")())
m.open(2412)
local function respond(...)
local args=table.pack(...)
pcall(function() m.broadcast(2412, table.unpack(args)) end)
end
local function receive()
while true do
local evt,_,_,_,_,cmd=computer.pullSignal()
if evt=="modem_message" then return load(cmd) end