//
// Include all imported modules and their data/functions.
//
include "cmdsys.plh"
//
// Module data.
//
predef puthex(h)#0
export word print[] = @puti, @puthex, @putln, @puts, @putc
byte valstr[] = '0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'
byte loadstr[] = "testlib loaded!"
//
// Define functions.
//
def puthex(h)#0
  putc('$')
  putc(valstr[(h >> 12) & $0F])
  putc(valstr[(h >> 8)  & $0F])
  putc(valstr[(h >> 4)  & $0F])
  putc(valstr[ h        & $0F])
end
puts(@loadstr)
putln
done
