cancel
Showing results for 
Search instead for 
Did you mean: 

Need help to include files in asm

adib
Associate II
Posted on November 14, 2005 at 10:48

Need help to include files in asm

2 REPLIES 2
adib
Associate II
Posted on September 01, 2005 at 17:34

Hi,

Can someone please let me know how to include a file in asm.

I attached a small file called ''sci.asm'' and my build file.

I would like to call the sci routine found in ''sci.asm'' from my main file.

I will appreciate if you can modify my build to include the sci file and also what I need to add in my main file.

Thanks.

________________

Attachments :

build.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0DH&d=%2Fa%2F0X0000000bVW%2F43o6khUB5CbLTFI3lFoPZ.X8cgJ2TjSCgomp4dr_Exk&asPdf=false

sci.asm : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0DC&d=%2Fa%2F0X0000000bVS%2FoZREORnRuSK5qa3O2xRan2rmkfi9x2_xRJuxKZbfDA8&asPdf=false
robertjamier9
Associate II
Posted on November 14, 2005 at 10:48

Hi,

Sorry for the late answer.

In your main file, you have to declare your routine as external:

extern xmit_byte

and then you can call it:

call xmit_byte

here is the modified build file:

del cbe.err

asm st72Fasm -li

asm sci.asm -li

asm adc.asm -li

lyn st72Fobj+sci.obj+adc.obj,adc.cod;

asm st72F264 -sym -fi=adc.map

asm sci -sym -fi=adc.map

asm adc -sym -fi=adc.map

obsend adc.cod,f,adc.s19,s

I have also attached the files.

Regards,

Robert

________________

Attachments :

build2.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I09H&d=%2Fa%2F0X0000000bVT%2Fma7T2CbEqPxna9rdNRYg_I_e6ne6uEC4uAPyAErUqEo&asPdf=false

main.asm : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I07g&d=%2Fa%2F0X0000000bVU%2FhmVtn4EltJ2ZoeBotw7zOpXk4_wqqiXhRcMDgDKz3D0&asPdf=false