You are on page 1of 26

BCD Numbers

Packed & Unpacked Unpacked 0000 1001 9 0000 0101 5 Packed 1001 0101 95

BCD Numbers
Packed & Unpacked Unpacked 0000 1001 9 0000 0101 5 Packed 1001 0101 95

BCD Numbers
Packed & Unpacked Unpacked 0000 1001 9 0000 0101 5 Packed 1001 0101 95

Addressing Mode

AVR have 13 distinct addressing modes can be classified into

Using of x, y & z Registers

Using of x, y & z Registers

Using of x, y & z Registers

Using of x, y & z Registers

Using of x, y & z Registers

Using of x, y & z Registers

Using of x, y & z Registers

Using of x, y & z Registers

Macro
Used to perform a group of instructions Reduce error Easy to write Up to 10 parameters can transfer

Biju Peter

Macro

Biju Peter

Macro

Here MYMACRO1.MAC have LOADIO & DELAY


Biju Peter

Macro
When viewing .lst file MACROs will not display To display using .LISTMAC directive

Biju Peter

Macro

Biju Peter

Eg. 10 line macro invoke 10 times, code size becomes 100 Subroutine for 10 times, code size only size of subroutine
Subroutine uses stack, macro did not

Biju Peter

You might also like