Update getpar.lua

* Add M.getcodi() (from bsdtrek getcodi.c)