I've been using PBP3 for awhile now, but I'm trying to learn simple Assembly routines.
To start, it seemed wise to learn how to just configure a port for digital I/O, and set a few pins HI.
My breadboard has a 16F1518 and I have great control of the pins using PBP3, ie, yes the outputs are all good.
But I must be missing something when doing the same with Assembly.
Page 106 of the 16F1518 manual shows how to configure ANSEL and TRIS for port A and placing their routine within a PBP3 program compiles without issue.

asm

BANKSEL PORTA ;
CLRF PORTA ;Init PORTA
BANKSEL LATA ;Data Latch
BANKSEL ANSELA ;
CLRF ANSELA ;digital I/O
BANKSEL TRISA ;
MOVLW B'11100001' ;Set RA<4:1> as outputs, the rest inputs
MOVWF TRISA
MOVLW B'00011110' ;Set RA<4:1> HI
MOVWF PORTA


endasm

I added the last 2 lines, ie move literal to W and then move W to the file register hoping to see the pins A1-A4 go HI.
But it didn't work. The problem must be with moving the config data to the port.

Does anyone know what I am doing wrong here? I've been searching the web for ideas and it seems I'm doing things correctly by what I'm finding but this routine isn't working.
Any help would be appreciated.

Ed