📄 merge
字号:
#! /usr/bin/perl# MP3 Player, Merge Intel Hex Files, http://www.pjrc.com/tech/mp3# Copyright (c) 2000, PJRC.COM, LLC# This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License# as published by the Free Software Foundation; either version 2# of the License, or (at your option) any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.foreach $arg (@ARGV) { if ($arg eq '-0') { print ":020000020000FC\n"; next; } if ($arg eq '-1') { print ":020000021000EC\n"; next; } if (-r "$arg") { open(F, $arg); while (<F>) { next if /^:00000001FF/; next unless /^:/; print; } } else { die "Can't read \"$arg\"\n"; }}print ":00000001FF\n";#echo ":020000020000FC" > mp3player.hex#grep -v ":00000001FF" player.hex >> mp3player.hex#grep -v ":00000001FF" off.hex >> mp3player.hex## grep -v ":00000001FF" erase.hex >> mp3player.hex#echo ":020000021000EC" >> mp3player.hex#grep -v ":00000001FF" drivers.hex >> mp3player.hex#grep -v ":00000001FF" p02_0609.hex >> mp3player.hex#grep -v ":00000001FF" nodram.mcs >> mp3player.hex#echo ":020000020000FC" >> mp3player.hex#echo ":00000001FF" >> mp3player.hex
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -