2005-11-14 01:48 AM
Need help to include files in asm
2005-09-01 08:34 AM
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=falsesci.asm : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0DC&d=%2Fa%2F0X0000000bVS%2FoZREORnRuSK5qa3O2xRan2rmkfi9x2_xRJuxKZbfDA8&asPdf=false2005-11-14 01:48 AM
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=falsemain.asm : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I07g&d=%2Fa%2F0X0000000bVU%2FhmVtn4EltJ2ZoeBotw7zOpXk4_wqqiXhRcMDgDKz3D0&asPdf=false