mirror of
https://github.com/cc65/cc65.git
synced 2024-09-26 12:55:17 +00:00
19 lines
237 B
ArmAsm
19 lines
237 B
ArmAsm
;
|
|
; Colin Leroy-Mira <colin@colino.net>, 2023-09-06
|
|
;
|
|
; int __fastcall__ ntohs (int val);
|
|
;
|
|
|
|
.export _ntohs, _htons
|
|
.importzp tmp1
|
|
|
|
_htons := _ntohs
|
|
|
|
.code
|
|
|
|
_ntohs:
|
|
sta tmp1
|
|
txa
|
|
ldx tmp1
|
|
rts
|