hi friends,
programming of micro controller in assembly takes more time than it in c,but for the assembly lovers its easier to make the programming more friendly by means of the use of macros;
just see the example
in 8051 assembly programming when we are interfacing an LCD
it is necessary to keep the messages in ROM and access it via DPTR.
but the macro given here eliminates these hazard.
we just have to give the string in the defined syntax;
for example lcd_out<this is a ~ macro example>
the '~' key is used to specify newl ine.
try macros;View attachment 159735
programming of micro controller in assembly takes more time than it in c,but for the assembly lovers its easier to make the programming more friendly by means of the use of macros;
just see the example
in 8051 assembly programming when we are interfacing an LCD
it is necessary to keep the messages in ROM and access it via DPTR.
but the macro given here eliminates these hazard.
we just have to give the string in the defined syntax;
for example lcd_out<this is a ~ macro example>
the '~' key is used to specify newl ine.
try macros;View attachment 159735