Fortune Telling Collection - Comprehensive fortune-telling - What instructions does Mitsubishi plc use to convert floating-point numbers into integers?
What instructions does Mitsubishi plc use to convert floating-point numbers into integers?
This instruction converts binary integers into binary floating-point numbers; Constants k and h are automatically converted in each floating-point operation instruction and are not processed in FLT instruction.
Use printf to output the number of bytes occupied by int:
printf("%d ",sizeof(int));
In addition to int types, there are short, long and long long types that can represent integers.
Extended data
Int sends an interrupt to CPU in assembly language.
The format is INT vec.
Vec is the interrupt vector number, and its value is 0~255. The CPU calls the interrupt routine corresponding to the kernel according to this vector number. The instruction operation is:
1 、( SP)←(SP)-2、((SP)+ 1:(SP))←(FR)
2 、( IF)←0、(TF)←0
3 、( SP)←(SP)-2、((SP)+ 1:(SP))←(CS)
4 、( SP)←(SP)-2、((SP)+ 1:(SP))←(IP)
5 、( CS)←(vec*4+2)、(IP)←(vec*4)
The INT vec instruction only affects IF and TF (set them to zero).
Baidu encyclopedia -INT
- Related articles
- Which bus should I take from Li Antang Town in Gaoyao District to RT Mart?
- Blind fortune telling in the same city
- Eight-character fortune-telling tree _ eight-character fortune-telling life tree
- Who has research on dream interpretation? Last night, I dreamed that my friend and I crossed the black mud river.
- Gregorian calendar 198 1 September 19 fortune telling
- The transfer ball has holes. What is this?
- What does it mean to have a mole on your chest?
- What are the village committees under the jurisdiction of Hejiang Town, Huazhou City, Maoming City, Guangdong Province?
- Fortune-telling Jade Emperor Lock _ The simplest explanation of fortune-telling Jade Emperor Lock
- Gregorian calendar1July 20, 987, how was the quality of life? When did you get married?