1、内部结构:
2、启动过程:
3、iram和xram的区别
4、8051_isa内部简介
5、hex2bin_8051 script file
#!/usr/bin/perl if(@ARGV==1){ open HEX,"<$ARGV[0]" or die "Can't open $ARGV[0]:$!"; open BIN,">.rom.bin" or die "Can't open .rom.bin:$!"; while(<HEX>){ chomp; if(/^:\s*[\da-f]{2}([\da-f]{4})00([\da-f]+)[\da-f]{2}\s*$/i){ #get the data $data=$2; $addr=hex($1); while($data=~s/(^[\da-f]{2})//i){ printf BIN "\@%x ",$addr; print BIN "$1\n"; $addr++; } } } close HEX; close BIN; rename ".rom.bin" , "rom.bin" if -e ".rom.bin"; unlink ".rom.bin" if -e ".rom.bin"; }
ps: 在linux终端中直接执行 ./hex2bin_8051 ./dw8051.hex
然后在当前目录下就可以rom.bin文件了。