diff --git a/.gitignore b/.gitignore index 01459d9d1a37cc12a8c9a14f35f4d09f12d089b2..5f282702bb03ef11d7184d19c80927b47f919764 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1 @@ -################################################################################ -# This .gitignore file was automatically created by Microsoft(R) Visual Studio. -################################################################################ - -/enf + \ No newline at end of file diff --git a/bit b/bit deleted file mode 100644 index c529248dd376e7d3023eb7a45e9c296a5a4aa801..0000000000000000000000000000000000000000 Binary files a/bit and /dev/null differ diff --git a/bit.enf.basop b/bit.enf.basop deleted file mode 100644 index c529248dd376e7d3023eb7a45e9c296a5a4aa801..0000000000000000000000000000000000000000 Binary files a/bit.enf.basop and /dev/null differ diff --git a/bit.flt b/bit.flt deleted file mode 100644 index a99c069b7fcf983d805a5184c965cadfc6b7ed64..0000000000000000000000000000000000000000 Binary files a/bit.flt and /dev/null differ diff --git a/bitnew_sync b/bitnew_sync deleted file mode 100644 index f8d23346c6cce89c38f85908375d76c77b98d4a5..0000000000000000000000000000000000000000 Binary files a/bitnew_sync and /dev/null differ diff --git a/sum_int16.sh b/sum_int16.sh deleted file mode 100644 index 15762f6849f81b1776f471228a0788b3d70fdb9e..0000000000000000000000000000000000000000 --- a/sum_int16.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -# Input binary file -file="$1" - -# Calculate the sum using awk -sum=$(awk ' -BEGIN { - SUM = 0 - RS = "\x02" # Set record separator to 2 bytes (int16 size) -} -{ - # Convert the 2-byte record to a signed integer - # Note: This assumes little-endian byte order. For big-endian, adjust accordingly. - val = ((ORD(substr($0, 2, 1)) * 256) + ORD(substr($0, 1, 1))) - if (val > 32767) { # Check for negative number (int16 range is -32768 to 32767) - val -= 65536 # two complement - } - SUM += val -} -END { - print SUM -}' "$file") - -# Print the sum -echo "Sum of int16 numbers: $sum" \ No newline at end of file diff --git a/syn b/syn deleted file mode 100644 index 3a9af67b5f55781a5534c2068ebfb18ed4bd0ec6..0000000000000000000000000000000000000000 Binary files a/syn and /dev/null differ