* along with this program. If not, see <http://www.gnu.org/licenses/>.\r
*\r
* For further information please contact.\r
- * http://nyatla.jp/\r
- * <airmail(at)ebony.plala.or.jp> or <nyatla(at)nyatla.jp>\r
+ * http://nyatla.jp/\r
+ * <airmail(at)ebony.plala.or.jp> or <nyatla(at)nyatla.jp>\r
*\r
*********************************************************************************/\r
#ifndef NYLPC_CMIMICVM_PROTECTED_H_\r
#define NyLPC_TcMiMicVM_OP_TYPE_MGET 0x41\r
#define NyLPC_TcMiMicVM_OP_TYPE_MPUT 0x42\r
\r
-#define NyLPC_TcMiMicVM_OP_TYPE_SGET 0x51\r
-#define NyLPC_TcMiMicVM_OP_TYPE_SPUT 0x52\r
+#define NyLPC_TcMiMicVM_OP_TYPE_SGET 0x51\r
+#define NyLPC_TcMiMicVM_OP_TYPE_SPUT 0x52\r
\r
-#define NyLPC_TcMiMicVM_OP_TYPE_NOP 0x61\r
-#define NyLPC_TcMiMicVM_OP_TYPE_EXIT 0x62\r
-#define NyLPC_TcMiMicVM_OP_TYPE_CALL 0x63\r
+#define NyLPC_TcMiMicVM_OP_TYPE_NOP 0x61\r
+#define NyLPC_TcMiMicVM_OP_TYPE_EXIT 0x62\r
+#define NyLPC_TcMiMicVM_OP_TYPE_CALL 0x63\r
\r
-#define NyLPC_TcMiMicVM_OP_TYPE_LD 0x71\r
+#define NyLPC_TcMiMicVM_OP_TYPE_LD 0x71\r
\r
\r
#define NyLPC_TcMiMicVM_CP_TYPE_END 0x01\r
*\r
*/\r
union NyLPC_TcMiMicVM_TInstruction{\r
- /**\r
- * オペコード情報のみを格納します\r
- */\r
- struct{\r
- NyLPC_TcMiMicVM_OP_TYPE opc;\r
- NyLPC_TUInt8 oprtype;\r
- }op;\r
- //32ビットコード\r
-\r
- /**\r
- * WM[8],WM[8]オペランドの命令を格納します。\r
- */\r
- struct{\r
- NyLPC_TcMiMicVM_OP_TYPE opc;\r
- NyLPC_TUInt8 oprtype;\r
- NyLPC_TUInt8 wm1;\r
- NyLPC_TUInt8 wm2;\r
- }wmwm_32;\r
- struct{\r
- NyLPC_TcMiMicVM_OP_TYPE opc;\r
- NyLPC_TUInt8 oprtype;\r
- NyLPC_TUInt8 wm;\r
- NyLPC_TUInt8 h8;\r
- }wmh08_32;\r
- struct{\r
- NyLPC_TcMiMicVM_OP_TYPE opc;\r
- NyLPC_TUInt8 oprtype;\r
- NyLPC_TUInt8 wm;\r
- }wm_32;\r
- struct{\r
- NyLPC_TcMiMicVM_OP_TYPE opc;\r
- NyLPC_TUInt8 oprtype;\r
- NyLPC_TUInt8 h8;\r
- }h8_32;\r
- struct{\r
- NyLPC_TcMiMicVM_OP_TYPE opc;\r
- NyLPC_TUInt8 oprtype;\r
- NyLPC_TUInt8 h16;\r
- }h16_32;\r
- //64bit命令\r
- struct{\r
- NyLPC_TcMiMicVM_OP_TYPE opc;\r
- NyLPC_TUInt8 oprtype;\r
- NyLPC_TUInt8 wm;\r
- NyLPC_TUInt8 _padding;\r
- NyLPC_TUInt16 h16;\r
- }wmh16_64;\r
- struct{\r
- NyLPC_TcMiMicVM_OP_TYPE opc;\r
- NyLPC_TUInt8 oprtype;\r
- NyLPC_TUInt8 wm;\r
- NyLPC_TUInt8 _padding;\r
- NyLPC_TUInt32 h32;\r
- }wmh32_64;\r
- struct{\r
- NyLPC_TcMiMicVM_OP_TYPE opc;\r
- NyLPC_TUInt8 oprtype;\r
- NyLPC_TUInt8 _padding[2];\r
- NyLPC_TUInt32 h32;\r
- }h32_64;\r
+ /**\r
+ * オペコード情報のみを格納します\r
+ */\r
+ struct{\r
+ NyLPC_TcMiMicVM_OP_TYPE opc;\r
+ NyLPC_TUInt8 oprtype;\r
+ }op;\r
+ //32ビットコード\r
+\r
+ /**\r
+ * WM[8],WM[8]オペランドの命令を格納します。\r
+ */\r
+ struct{\r
+ NyLPC_TcMiMicVM_OP_TYPE opc;\r
+ NyLPC_TUInt8 oprtype;\r
+ NyLPC_TUInt8 wm1;\r
+ NyLPC_TUInt8 wm2;\r
+ }wmwm_32;\r
+ struct{\r
+ NyLPC_TcMiMicVM_OP_TYPE opc;\r
+ NyLPC_TUInt8 oprtype;\r
+ NyLPC_TUInt8 wm;\r
+ NyLPC_TUInt8 h8;\r
+ }wmh08_32;\r
+ struct{\r
+ NyLPC_TcMiMicVM_OP_TYPE opc;\r
+ NyLPC_TUInt8 oprtype;\r
+ NyLPC_TUInt8 wm;\r
+ }wm_32;\r
+ struct{\r
+ NyLPC_TcMiMicVM_OP_TYPE opc;\r
+ NyLPC_TUInt8 oprtype;\r
+ NyLPC_TUInt8 h8;\r
+ }h8_32;\r
+ struct{\r
+ NyLPC_TcMiMicVM_OP_TYPE opc;\r
+ NyLPC_TUInt8 oprtype;\r
+ NyLPC_TUInt8 h16;\r
+ }h16_32;\r
+ //64bit命令\r
+ struct{\r
+ NyLPC_TcMiMicVM_OP_TYPE opc;\r
+ NyLPC_TUInt8 oprtype;\r
+ NyLPC_TUInt8 wm;\r
+ NyLPC_TUInt8 _padding;\r
+ NyLPC_TUInt16 h16;\r
+ }wmh16_64;\r
+ struct{\r
+ NyLPC_TcMiMicVM_OP_TYPE opc;\r
+ NyLPC_TUInt8 oprtype;\r
+ NyLPC_TUInt8 wm;\r
+ NyLPC_TUInt8 _padding;\r
+ NyLPC_TUInt32 h32;\r
+ }wmh32_64;\r
+ struct{\r
+ NyLPC_TcMiMicVM_OP_TYPE opc;\r
+ NyLPC_TUInt8 oprtype;\r
+ NyLPC_TUInt8 _padding[2];\r
+ NyLPC_TUInt32 h32;\r
+ }h32_64;\r
};\r
\r
#ifdef __cplusplus\r