mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-04 13:06:38 +00:00
6 lines
325 B
Plaintext
6 lines
325 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
|
||
|
egrep -v 'ZP|BSS' contiki-labels | perl -n -e 'if(/^al 0000(.+) \.([^@]+)\n/){if($l{$2} eq ""){$l{$2}=$1;print ".exportzp $2\n$2=\$$1\n";}} elsif(/^al 00(.+) \.([^@]+)\n/){if($l{$2} eq ""){$l{$2}=$1;print ".export $2\n$2=\$$1\n";}}' > contiki-labels.s
|
||
|
|
||
|
echo '.segment "EXTZP": zeropage' >> contiki-labels.s
|