I am now struggling with inserting an ASM chunk to the program. I know only the very basic from ASM (to be able to configure ports etc.) so I am trying to do my best - I received the ASM code from one experienced guy and now I am trying to make it run in Pascal.
Below you can find a start of a procedure I would like to use:
Code: Select all
Procedure Mereni;
var
STRIDAL,STRIDAH,COUNTL,COUNTH : byte; volatile;
Begin
STRIDAL := 0;
STRIDAH := 0;
COUNTL := 0;
COUNTH := 0;
asm
CLRF STRIDAL
CLRF STRIDAH
MOVLW 020h
MOVWF COUNTL
MOVLW 036h
MOVWF COUNTH
BCF 3,2
...code continues...
Code: Select all
Linker error: STRIDAL: not found
Linker error: Bank not found: STRIDAL
Thanks to anyone for your help!