OpenComputers Von Neumann Machine Programs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
317 B

-- This file takes as input a script and a label
-- it will ask the local eeprom machine to flash it to an eeprom
require("webflash")
local args = {...}
print("Reading " .. args[1])
local file = assert(io.open(args[1], "rb"))
local bios = file:read("*a")
file:close()
computer.beep(100)
webflash(bios, args[2])