Here are the examples and input.s files
Study them carefully before asking questions.
FACT.S
GCM.S
PRIM.S
And of course...
INPUT.S