Category:ASM Libraries and Add-Ons

From MCS Wiki AVR
Jump to: navigation, search

ASM Libs are libraries that are used by the compiler.
They contain machine language statements for various statements and functions.

A library can also be used to modify an existing function.

For example when you use a conversion routine num<>string with a byte variable only, the routine from the MCS.LIB has some overhead as it can also convert integers,word and longs.

You can specify the MCSBYTE.LIB or MCSBYTE.LBX library then to override the function from MCS.LIB.

When you write a user sub/function that calls a user lib and passed parameters, you must include some code to restore the frame protection.

In the bcd.lib you can find code like :

#IF _FPROTECT
Out sreg,r3  ; restore I flag
#ENDIF

The bcd.lib and bin2bcd.bas demonstrate how to write a user lib.

Subcategories

This category has the following 11 subcategories, out of 11 total.

A

B

C

D

F

I

L

  • [×] LCD(10 P)

P

S

  • [×] SPI(1 P)

U

  • [×] USB(1 P)
Personal tools
Namespaces
Variants
Actions
Navigation
Language