; ; Test conversion instruction set. ; ; To run tests: ; ; $ ./build/ano tests/t_conv_set.ano > engine/dsl_ano.h ; $ make ; $ ./tests/01_run_tests.sh whatever_binary_make_produces conv ; ; @ANO_SCRIPT_NAME test_conv_inst ; @ANO_SCRIPT_VERSION 0.0.1 ; @ANO_SCRIPT_DESCRIPTION Test conversion instruction set ; ; @ANO_FLAGS_VAR_NAME_SUBS [ ] ; @ANO_FLAGS_VAR_WARN_UNUSED [ ] ; ; Copyright (c) 2016-2024, Jani Salonen ; All rights reserved. ; ; mov a ([utf-8] "123") call "t_conv" ("conv", a) ; exit function t_conv (_msg, _a) { dump _msg dump _a ; ston _a dump _a ; ntoh _a dump _a hton _a dump _a ; ntop _a dump _a pton _a dump _a ; toi8 _a dump _a toi16 _a dump _a toi32 _a dump _a toi64 _a dump _a ; toi128 _a ; dump _a tou8 _a dump _a tou16 _a dump _a tou32 _a dump _a tou64 _a dump _a ; tou128 _a ; dump _a tochar _a dump _a toshort _a dump _a toint _a dump _a tolong _a dump _a touchar _a dump _a toushort _a dump _a touint _a dump _a toulong _a dump _a tofloat _a dump _a todouble _a dump _a ; ntos _a dump _a }