File: modify_output_file.lst.awk

package info (click to toggle)
mcu8051ide 1.4.9-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 18,820 kB
  • sloc: tcl: 94,956; xml: 2,122; sh: 2,113; asm: 246; ansic: 96; awk: 18; makefile: 5
file content (23 lines) | stat: -rw-r--r-- 469 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /usr/bin/gawk -f

# --------------------------------------------------------------------------
# Auxiliary script for regression testing environment
#
# Modify code listing files generated by assembler, file extension is `.lst'
# --------------------------------------------------------------------------


# Remove the firts line in the code listin
1 == NR {
	next
}

# Remove symbol table
/ASSEMBLY COMPLETE/ {
	exit(0)
}

# Keep everyting else ...
{
	print($0)
}