kevinpt / opbasm

Open PicoBlaze Assembler
http://kevinpt.github.io/opbasm/
MIT License
60 stars 13 forks source link

Function visibility #22

Open avanlex opened 6 years ago

avanlex commented 6 years ago

Compiler can't see function from another file. main.psm4 file:

...
LOAD PARRAY,  03
LOAD ARR_CNT, 08;  
fn_spi_read_byte_array(PARRAY, ARR_CNT) ; function located in another file
...

turn into this main.gen.psm file:

...
LOAD sB,  03
LOAD sA, 08       ;
fn_spi_read_byte_array(sB, sA)
...

However I can call it like this:

call fn_spi_read_byte_array

But it works not correct