OpenCores
URL https://opencores.org/ocsvn/or2k/or2k/trunk

Subversion Repositories or2k

[/] [or2k/] [trunk/] [analysis-data/] [find-branch-len.awk] - Blame information for rev 10

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 10 jeremybenn
# Print out a list of jump distances for l.bf and l.bnf (in bytes)
2
 
3
# For now we ignore l.j and l.jal, since these more generally refer to
4
# external names and will need relocating. Apply to the full disassembly
5
# listing, where lines are of the form:
6
 
7
#       e4:     10 00 00 39     l.bf 1c8 <_wait_input+0x140>
8
 
9
/(l\.bf)|(l\.bnf)/ {
10
    src = strtonum (sprintf ("0x%s", substr ($1, 0, 8)))
11
    dst = strtonum (sprintf ("0x%s", $7))
12
 
13
#   printf ("%s %d %d %d\n", $6, src, dst, dst - src)
14
    printf ("%d\n", dst - src)
15
 
16
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.