remove c logic and data from network, more work on compiled gate funcs
This commit is contained in:
@@ -75,12 +75,10 @@ function network_update()
|
||||
local logic = data[i+5]
|
||||
local input = data[i+6]
|
||||
local global = data[i+7]
|
||||
local datasize = tonumber(data[i+8])
|
||||
local logicfuncc = tonumber(data[i+9])
|
||||
local numports = tonumber(data[i+10])
|
||||
local ports = {}
|
||||
i = i + 10
|
||||
local numports = tonumber(data[i+8])
|
||||
i = i + 8
|
||||
|
||||
local ports = {}
|
||||
for a = i+1, numports*5+i, 5 do
|
||||
local portd = {
|
||||
type = tonumber(data[a]),
|
||||
@@ -94,7 +92,7 @@ function network_update()
|
||||
if not portd.direction then print(line) end
|
||||
end
|
||||
|
||||
local definition = GateDefinition.new(objref, name, desc, init, logic, input, global, ports, datasize, logicfuncc)
|
||||
local definition = GateDefinition.new(objref, name, desc, init, logic, input, global, ports)
|
||||
Simulation.addgatedefinition(sim, definition)
|
||||
|
||||
i = i + numports*5
|
||||
|
||||
Reference in New Issue
Block a user