...OV BX ,W2 MOV W1 , BX MOV W2 ,AX 2.3.1 数据传送类指令 2.3.1 数据传送类指令 (2)32 位通用寄存器中4 字节交换(Byte Swap )指 令 指令格式 BSWAP reg 指令的意义是把32 位通用寄存器的第1 字节与第4 字节交换,第2 字节与第3 字节交换。
基于46个网页-相关网页
除非您花费大量时间来进行字节交换,否则就只需要清楚地编写代码即可。
Unless you spend a huge amount of time doing byte-swapping, just write the code cleanly.
如果可以选择的话,请使用标准库函数来进行字节交换操作,并按照字节在数据文件中存储的顺序进行标准化;网络字节顺序最适合这种工作。
If you have the option, use standard library functions to do byte-swapping operations, and standardize on the order in which bytes are stored in your data files; network byte order is the best.
小型传输,开销很小(固定长度的头部是2字节),协议交换最小化,以降低网络流量。
A small transport overhead (the fixed-length header is just 2 bytes), and protocol exchanges minimised to reduce network traffic.
应用推荐