Make virtual opcodes have values > 256 #337
iritkatriel
started this conversation in
General
Replies: 1 comment
-
Agreed! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I think it would be good to change the type of struct instr's i_opcode from unsigned char to int, and make the virtual opcodes have values > 256. This way we are not wasting opcodes on the virtual ones, so we can add as many virtual ones as we want to improve clarity. Also, it will be easy to detect bugs where a virtual opcode was not converted before the bytecode is assembled.
Beta Was this translation helpful? Give feedback.
All reactions