Replace macro EMU8051_DEBUG with logging functions