Power = """ 00 read r1 #get n 01 read r2 #get m 02 copy r3, r1 #store old value of n 03 mul r6, r1, r1 #multiply n but itself and store new value 04 setn r4, 1 #set r4 = 1 05 sub r5, r2, r4 #subtract 1 from m 06 jgtzn r4, 4 #if r4 > 0, then jump to line 4 07 write r6 08 halt """ hmmmAssembler.main(Power)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)