You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.9KB

  1. variant=$1
  2. rm -rf build/compare
  3. mkdir -p build/compare
  4. #
  5. # create a RAM image with KERNAL in $9d80-9fff and $bf40-$fe7f
  6. #
  7. # from our version
  8. dd if=/dev/zero bs=1 count=40320 of=build/compare/kernal.bin 2> /dev/null
  9. cat build/$variant/kernal/kernal.bin /dev/zero | dd bs=1 count=25216 skip=19840 >> build/compare/kernal.bin 2> /dev/null
  10. # from reference version
  11. dd if=/dev/zero bs=1 count=40320 of=build/compare/kernal_reference.bin 2> /dev/null
  12. cat reference/$variant/lokernal.bin /dev/zero | dd bs=1 count=8640 >> build/compare/kernal_reference.bin 2> /dev/null
  13. cat reference/$variant/kernal.bin >> build/compare/kernal_reference.bin
  14. dd if=/dev/zero bs=1 count=49152 of=build/compare/kernal2.bin 2> /dev/null
  15. cat build/$variant/kernal/kernal2.bin >> build/compare/kernal2.bin
  16. dd if=/dev/zero bs=1 count=49152 of=build/compare/kernal2_reference.bin 2> /dev/null
  17. cat reference/$variant/kernal2.bin >> build/compare/kernal2_reference.bin
  18. #
  19. # create RAM images of Wheels "new kernal" extensions at $5000
  20. #
  21. for i in 0 1 2 3 4 5 6 7 8 9 10 11 x; do
  22. if [ -e build/$variant/kernal/reu$i.bin ]; then
  23. # from our version
  24. dd if=/dev/zero bs=1 count=16192 of=build/compare/reu$i.bin 2> /dev/null
  25. cat build/$variant/kernal/reu$i.bin >> build/compare/reu$i.bin
  26. # from reference version
  27. dd if=/dev/zero bs=1 count=16192 of=build/compare/reu${i}_reference.bin 2> /dev/null
  28. cat reference/$variant/reu$i.bin >> build/compare/reu${i}_reference.bin
  29. fi
  30. done
  31. for file in kernal kernal2 reu0 reu1 reu2 reu3 reu4 reu5 reu6 reu7 reu8 reu9 reu10 reu11 reux; do
  32. if [ -e build/compare/$file.bin ]; then
  33. echo $file
  34. hexdump -v -C build/compare/$file.bin > build/compare/$file.txt
  35. hexdump -v -C build/compare/${file}_reference.bin > build/compare/${file}_reference.txt
  36. diff --suppress-common-lines -y build/compare/${file}_reference.txt build/compare/${file}.txt | head -n 40
  37. #diff --suppress-common-lines -y build/compare/${file}_reference.txt build/compare/${file}.txt
  38. fi
  39. done