Squelette du projet

This commit is contained in:
Olivier Muller
2025-11-03 11:00:11 +01:00
commit ff440776bb
41 changed files with 2522 additions and 0 deletions

27
common/fix_mem.awk Normal file
View File

@@ -0,0 +1,27 @@
BEGIN {
addr = 0
first = 1
}
# Ligne adresse : @xxxx
/^@/ {
newAddr = strtonum("0x" substr($0, 2))
if (first) {
print $0 # garde le premier @xxxx (normalement @0000)
first = 0
} else {
while (addr < newAddr) {
print "00000000"
addr++
}
}
next
}
# Ligne(s) de données
{
for (i = 1; i <= NF; i++) {
print $i
addr++
}
}