1
0
mirror of https://github.com/HybridDog/pdisc.git synced 2025-07-01 07:40:39 +02:00

add us time instruction

M  faden.lua
M  standardbefehlssatz.lua
This commit is contained in:
Hybrid Dog
2016-12-28 18:47:28 +01:00
parent 53c47b17ab
commit b03c1fe61b
2 changed files with 9 additions and 4 deletions

View File

@ -29,11 +29,12 @@ local function befehl_ausfuhren(faden)
end
for i,v in pairs(ergebnis) do
if not ersetzbar[i] then
return false, "Attempt on changing an immediate"
-- message sometimes incorrect
return false, "Command " .. befehl .. ": Attempt on changing an immediate"
end
if not args[i] then
-- FIXME
error"[pdisc] instruction set attempt to write in void"
-- can this happen? Is it a mistake in instruction set? bef ,b,,d
return false, "Command " .. befehl .. ": Missing target argument"
end
vars[args[i]] = v
end
@ -51,7 +52,7 @@ end
local function programm_ausfuhren(faden)
local weiter,msg = befehl_ausfuhren(faden)
if not weiter then
faden.log = faden.log .. "Aborted: " .. msg .. "\n"
faden.log = faden.log .. "Aborted (" .. faden.ip .. "): " .. msg .. "\n"
faden:exit()
return
end