LOAD MEASURE G, MAIN /*--------------------------------------------*/ /* MyStatus shows analog and other values ... */ /*--------------------------------------------*/ FUNC void MyStatus (void) { printf ("=============================\n"); printf (" Analog-Input-0: %f\n", ad0); printf (" Analog-Input-1: %f\n", ad1); printf (" Analog-Input-2: %f\n", ad2); printf (" Analog-Input-3: %f\n", ad3); printf (" Register (DPTR): %04X\n", DPTR); printf (" Program Counter: %06lXH\n", $); printf ("=============================\n"); } /*-------------------------------------------*/ /* Function MyRegs() shows Registers R0...R3 */ /*-------------------------------------------*/ FUNC void MyRegs (void) { printf ("---------- MyRegs() ----------\n"); printf (" R0 R1 R2 R3\n"); printf (" %02X %02X %02X %02X\n"); printf ("------------------------------\n"); }