Module:Instruction set table builder: Difference between revisions

Changed to <sub> tags instead of template, and fixed incorrect formatting.
(Added final formatting. Functions should be finished for now.)
(Changed to <sub> tags instead of template, and fixed incorrect formatting.)
Line 24:
 
function formatMnemonic(str)
str = str:gsub("rd ", "r{{<sub|>d}}</sub> ")
str = str:gsub("rs", "r{{<sub|>s}}</sub>")
str = str:gsub("rt", "r{{<sub|>t}}</sub>")
return str