/* display contents of memory block pointed to by p */

extern int msize()
extern int putc()

global void debug_showmem(char *p) {
  int sz
  char c

  sz = msize(p)
  while (sz > 0) {
    c = *p
    p = p + 1
    sz = sz - 1
    if (c < 32 || c > 126) {
     c = '.'
    }
    putc(c)
  }
}

