初级玩家
![Rank: 2](static/image/common/star_level2.gif)
- 贡献度
- 0
- 金元
- 454
- 积分
- 45
- 精华
- 0
- 注册时间
- 2020-5-2
|
alloc(ConvertRoutine,1024)
alloc(ConvertBackRoutine,1024)
alloc(TypeName,256)
alloc(ByteSize,4)
alloc(UsesFloat,1)
alloc(CallMethod,1)
TypeName:
db '2byte_bswap',0
ByteSize:
dd 2
UsesFloat:
db 0
CallMethod:
db 1
ConvertRoutine:
[64-bit]
mov eax,[rcx]
bswap eax
shr eax,10
ret
[/64-bit]
[32-bit]
push ebp
mov ebp,esp
mov eax,[ebp+8]
mov eax,[eax]
bswap eax
shr eax,10
pop ebp
ret
[/32-bit]
ConvertBackRoutine:
[64-bit]
xchg cl,ch
mov [r8],cx
ret
[/64-bit]
[32-bit]
push ebp
mov ebp,esp
push eax
push ebx
mov eax,[ebp+8]
mov ebx,[ebp+10]
xchg al,ah
mov [ebx],ax
pop ebx
pop eax
pop ebp
ret
[/32-bit]
|
|