⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 op_conversions.hc

📁 专业汽车级嵌入式操作系统OSEK的源代码
💻 HC
字号:
/** * This is included inside a switch statement. */case OP_I2B:  just_set_top_word ((JBYTE) word2jint(get_top_word()));  goto LABEL_ENGINELOOP;case OP_I2S:case OP_I2C:  just_set_top_word ((JSHORT) word2jint(get_top_word()));  goto LABEL_ENGINELOOP;   case OP_F2D:  // Arguments: 0  // Stack: -1 +2  // Temporary is necessary because these are macros  tempStackWord = get_top_word();  push_word (tempStackWord);  goto LABEL_ENGINELOOP;case OP_D2F:case OP_L2I:  // Arguments: 0  // Stack: -2 +1  // Temporary is necessary because mixing macros is bad!  tempStackWord = pop_word();  just_set_top_word (tempStackWord);  goto LABEL_ENGINELOOP;case OP_I2L:  tempStackWord = get_top_word();  just_set_top_word (0);  push_word (tempStackWord);  goto LABEL_ENGINELOOP;#if FP_ARITHMETICcase OP_I2F:  // Arguments: 0  // Stack: -1 +1  just_set_top_word (jfloat2word ((JFLOAT) word2jint(get_top_word())));  goto LABEL_ENGINELOOP;case OP_I2D:  // Arguments: 0  // Stack: -1 +2  push_word (jfloat2word ((JFLOAT) word2jint(get_top_word())));  goto LABEL_ENGINELOOP;case OP_F2I:  // Arguments: 0  // Stack: -1 +1  just_set_top_word ((JINT) word2jfloat(get_top_word()));  goto LABEL_ENGINELOOP;case OP_D2I:  // Arguments: 0  // Stack: -2 +1    // Temporary is necessary because mixing macros is bad!  tempStackWord = (JINT) word2jfloat (pop_word());  just_set_top_word (tempStackWord);  goto LABEL_ENGINELOOP;case OP_L2F:  tempStackWord = pop_word();  just_set_top_word (jfloat2word ((JFLOAT) tempStackWord));  goto LABEL_ENGINELOOP;case OP_L2D:  just_set_top_word (jfloat2word ((JFLOAT) get_top_word()));  goto LABEL_ENGINELOOP;case OP_F2L:  tempStackWord = get_top_word();  just_set_top_word (0);  push_word ((JINT) word2jfloat(tempStackWord));  goto LABEL_ENGINELOOP;case OP_D2L:  tempStackWord = pop_word();  just_set_top_word (0);  push_word ((JINT) word2jfloat(tempStackWord));  goto LABEL_ENGINELOOP;#endif/*end*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -