Bob Blick wrote: > > Hey, Tjaart, does MPC keep hands off inline assembler? > Here's the listing generated by MPC for an in-line assembly delay function: //----------------------------------------------------------------------- /* Clock frequency: 3.6864 MHz Instruction clock: 921.6 kHz Instruction duration: 1.0851 us Instructions per ms: 614.4 Delay is in ms */ void Delay(registerw delay) 0000 { #asm 0AF4 1283 BCF STATUS, RP0 ; 1 0AF5 00A1 MOVWF __WImage ; 1 DLMS2M1 RADIX DEC ; Use decimal values 0AF6 30E6 MOVLW 230 ; 1 0AF7 0084 MOVWF FSR ; 1 DLMS2M2 0AF8 0000 NOP ; 1 0AF9 0B84 DECFSZ FSR ; 1 0AFA 2AF8 goto DLMS2M2 ; 2 0AFB 0BA1 DECFSZ __WImage ; 1 0AFC 2AF6 goto DLMS2M1 ; 2 #endasm 0AFD 0008 RETURN } //----------------------------------------------------------------------- As far as I can see, MPC didn't touch the assembly. This might be because of an option setting, though. --Matt