We're implementing three interrupt handlers and another function in assy language. We'd like to keep the assy source in separate files in order to keep the C source a little cleaner. The only examples I can find for using assy code has the assy source embedded between the #asm-#endasm statements. We've used the #include directive as shown in the source below and it seems to work properly (and the .lst file looks correct).
Is this working purely by dumb luck or is this an approved method? If it's not an approved method I'd be concerned that a later compiler revision may not take kindly to this.
With the 'caveat', that the assembler used will need to be CCS format, not generic assembler, this should work. #include, just behaves as if the file is 'typed in' at the point where it is invoked, so this should be acceptable in most compiler versions.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum