; Register definitions .def AL=r16 .def AH=r17 .def BL=r18 .def BH=r19 .def CL=r20 .def CH=r21 .def DL=r22 .def DH=r23 .def EL=r24 .def EH=r25 ; Macros ; Load word .macro ldiw ldi @0H, high(@1) ldi @0L, low(@1) .endm ; Load word shifted .macro ldiw2 ldi @0H, high(@1<<1) ldi @0L, low(@1<<1) .endm ; Add immediate .macro adi subi @0, -(@1) .endm .listmac ; Push word .macro pushw push @0H push @0L .endm ; Pop word .macro popw pop @0L pop @0H .endm