Add VM opcodes NOP, LANG, and SANG

- To simplify code generation genericizing, add three new opcodes
  * NOP: No-Operation
  * LANG: Load Angle - load a BAM angle into a float reg as degrees
  * SANG: Save Angle - store a float reg into a BEM angle, converting from degrees
This commit is contained in:
Randy Heit 2013-08-23 21:46:40 -05:00
commit 3ea0d1b444
3 changed files with 32 additions and 0 deletions

View file

@ -1,6 +1,8 @@
#include "vm.h"
#include "c_console.h"
#define NOP MODE_AUNUSED | MODE_BUNUSED | MODE_CUNUSED
#define LI MODE_AI | MODE_BCJOINT | MODE_BCIMMS
#define LKI MODE_AI | MODE_BCJOINT | MODE_BCKI
#define LKF MODE_AF | MODE_BCJOINT | MODE_BCKF