Wrench Report
[github] [isa_docs] [variants] [examples] [scratch]

/* variant: example factorial.s + factorial-5.yaml */

/* author: wrench */

/* wrench: 0.0.6.4 */

/* comment */

Reads n = 5 from the input port 0x80, computes n! in a loop and writes 120 to the output port 0x84.

Source: example/wasm32/factorial.s
Config: example/wasm32/factorial-5.yaml
ISA:    wasm32
/* assembler_code */

/* simulation_config */

/* simulation_result */

$ wrench --version
0.0.6.4
/usr/local/bin/wrench --isa wasm32 /app/example/wasm32/factorial.s -c /app/example/wasm32/factorial-5.yaml --stats
ExitCode 0

/* testcase_result */