Main > Driving & Racing Cabinets
Daytona USA added laps
Howard_Casto:
Well with model2 there is a "model2lua.txt" in the scripts folder. It describes all the functions including:
I960_WriteWord(int addr,int data) (we use this one so we can access the rambase)
So excuse my rust, the syntax might not be 100% correct but you'd write a script something like:
---------------------------------
require("model2"); -- Import model2 machine globals, needed to get value of RAMBASE
function Init()
I960_WriteWord(RAMBASE+0x10EC,500);
end
--------------------------------
Of course that is assuming that the lap value is a constant variable and not some dynamic value. Sailor Sat can clue you in on that as I don't have a clue what we are writing to.
Navigation
[0] Message Index
[*] Previous page
Go to full version