I am debugging an application using the simulator from uVision3 and the serial Window #1. My target hardware is a 80c166, and the assignation of VTREGs to serial output is the following:
ASSIGN WIN: <S0IN >S0OUT WIN2: <S1IN >S1OUT COM1: <NUL >NUL COM2: <NUL >NUL COM3: <NUL >NUL COM4: <NUL >NUL
signal void s0out_sig (void) { while (1) { wwatch(S0OUT); /* wait for something in S0OUT */ printf ("Transmitted a %2.2X\n", (unsigned) S0OUT); } }