macros.inc
changeset 18 79b25e81721f
child 45 7c684d241675
equal deleted inserted replaced
17:a7c668003a19 18:79b25e81721f
       
     1 ; XXX: stupid thing won't parse, and it's right from the README example...
       
     2 ; .ifndef _MACROS_INC_
       
     3 ; .define _MACROS_INC_
       
     4 
       
     5 .macro poke
       
     6 		.message	"No parameters"
       
     7 .endm
       
     8 
       
     9 .macro poke_i_8_i
       
    10 		ldi			@1, @2
       
    11 		sts			@0, @1
       
    12 .endm
       
    13 
       
    14 .macro poke_i_16_i
       
    15 		ldi			@1, low(@3)
       
    16 		sts			@0+0, @1
       
    17 		
       
    18 		ldi			@2, high(@3)
       
    19 		sts			@0+1, @2
       
    20 .endm
       
    21 
       
    22 ; .endif