It looks like that subroutine they call at $0010 has a special hook that writes to the console whenever they write to memory address $0f.