⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asmgen.awk

📁 awk scripts awk scripts awk scripts awk scripts
💻 AWK
字号:
# delete the opcode and comment fields of the output
# from the ASMGEN disassembler

NF < 1 || /^;/   {
    print
    next
}
$1 ~ /^;/ {
    i = 2; 
    printf ("\t%s\t", $1)
    while (i <= NF) {
        printf ("%s ", $i)
        i++
    }
    printf ("\n")
    next
}
{
    if ($0 ~ /^[ \t]/)
        i = 1
    else {
        printf ("%s", $1)
        i = 2
    }
    if (i <= NF) {
        printf ("\t%s\t", $i)
        i++
    }
    while (i <= NF) {
        if ($i ~ /;/)
            break
        printf ("%s ", $i)
        i++
    }
    printf ("\n")
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -