avr-something

Something something AVR side…
git clone git://henryandlizzy.uk/avr-something
Log | Files | Refs | README

binary.s (250B)


      1 .macro usefile name:req file:req
      2 .section .text.\name
      3 
      4 .global \name\()_size
      5 .global \name\()_begin
      6 .global \name\()_end
      7 
      8 \name\()_size:
      9 	.short \name\()_end - \name\()_begin
     10 \name\()_begin:
     11 	.incbin "\file"
     12 \name\()_end:
     13 .endm
     14 
     15 	usefile pi "pi.txt"