Skip to content

Instantly share code, notes, and snippets.

@jpgg
jpgg / evaluateTest.asm
Created March 25, 2012 23:36
Programs to test 273 A3 assignment
# To use, first add your evaluateP and power functions to the bottom of the
# file where specified.
# Next, edit the values of POLYORDER, COEFFICIENTS, and ARGX to whatever you
# want. Test what the polynomial will return with something like wolfram alpha
# and then assemble it in Mars and run it. The program just returns the final
# value.
.data
ZERO: .float 0.0
ONE: .float 1.0