Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Add a new zscript instruction
- //Drawing
- Script_Drawing.cpp
- add function
- add opcode redirect with ZASM label
- GlobalSymbols.cpp
- Add table entry, with proper args values. The entry name should match the ZScript instruction.
- Add function to bind the name in the table to the O-Register
- Bytecode.cpp
- Add ORegister redirect that returns the ZASM instruction
- Bytecode.h
- Add class ORegister entry tat returns the opcode entry in Bytecode.cpp
- ffasm.cpp
- Add entry to script command list, using the ZASM label
- ffscript.cpp
- Add case statement to switch(script_command) and ensure the args value matches that in GlobalSymbols.cpp
- Add case entry to switch(scommand), and ensure it is in the script commands case list
- Both of these use the ZASM label
- ffscript.h
- Add the ZASM label to the ASM_DEFINE table.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement