quoth the darren kirby: > quoth the Haze Noc: > > > I cannot seem to find a way to print the name. Is it possible? > > > > > > Thanks for consideration, > > > -d > > > > Wouldn't it be more logical to use a hash? > > Perhaps, but the order of the variables is significant. I was thinking I > might create a hash to map the position to the name and vice versa... OK, answered my original question: @registers = [:zero, :at, :v0, :v1, :a0, :a1, :a2, :a3, :t0, :t1, :t2, :t3, :t4, :t5, :t6, :t7, :s0, :s1, :s2, :s3, :s4, :s5, :s6, :s7, :t8, :t9, :k0, :k1, :gp, :sp, :fp, :ra] @registers.each do |v| puts "$#{v}: #{send(v)}" end ... -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972