Musíš ten datasheet přečíst, ne z něho “něco” vzít.
• TRIS register (data direction register)
• PORT register (reads the levels on the pins of the
device)
• LAT register (output latch)
• ANSEL register (analog input control)
V C do ASM se už pouštět nebudu:
PORTA = 0; // Neni potreba, ale delam to
ANSELA = 0; // Vse digitalni
TRISA = 0xF8; // Nastavit vstupy/vystupy
LATA = 0x03; // Nastavit vystup RA0/1 do 1
Doporučuju stáhnout XC8 ze stránek Microchipu a začít se učit v tom. V ASM z toho budeš akorát nešťastnej.