INTEL.ASM
资源名称:ertos.rar [点击查看]
上传用户:sunrenlu
上传日期:2022-06-13
资源大小:1419k
文件大小:1k
源码类别:
操作系统开发
开发平台:
DOS
- PAGE 66,132
- ;
- ;
- ;
- ;
- ;
- ;
- ;
- ;
- ; intel - convert intel <--> bigendian
- ;
- ;
- ; (c) 1990 Erick Engelke
- ;
- ;
- ;
- include masmdefs.hsm
- include model.hsm
- codedef intel
- datadef
- cstart intel
- ;*************************************************************************
- ; USAGE: ULONG intel( ULONG val )
- ; - convert to intel format
- ;*************************************************************************
- cpublic intel
- mov AX, +@AB + 2 [BP]
- mov DX, +@AB + 0 [BP]
- xchg AL, AH
- xchg DL, DH
- creturn intel
- ;*************************************************************************
- ; USAGE: UINT intel16( UINT val )
- ; - convert to intel format
- ;*************************************************************************
- cpublic intel16
- mov AX, +@AB [BP]
- xchg AL, AH
- creturn intel16
- cend intel
- end