sync some changes over from loader.c:
sync some changes over from loader.c:

  - use printf("%s")
  - C99 for loop
  - switch address types to int to allow for BIGMEM

sbennett1990/YESS,sbennett1990/YESS,sbennett1990/YESS