- 积分
- 6162
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-9-22
- 最后登录
- 1970-1-1
|
发表于 2015-5-6 07:56:25
|
显示全部楼层
byteswap的原因吧。
给你个子程序,调用一下CALL SWAP4(你的变量),试试
!
!**********************************************************************
! Swaps the byte order of a 4-byte integer (big endian<->little endian).
! This seems to be necessary only for some data.
!**********************************************************************
!
subroutine swap4(in)
real in,out
byte bout(4),b
equivalence(out,bout)
out=in
b=bout(1)
bout(1)=bout(4)
bout(4)=b
b=bout(2)
bout(2)=bout(3)
bout(3)=b
in=out
end subroutine swap4
|
|