Skip to content
  • This project
    • Loading...
  • Sign in

Barry / rf-depot

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • rf-depot
  • sw
  • n64os20l
  • rspsim
  • suregre
  • bin
  • MAKE_IHEX
  • root's avatar
    initial commit · bc83a1ad
    bc83a1ad
    root committed 2020-05-02 05:58:04 +0000
MAKE_IHEX 375 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/usr/sbin/perl
# SCCS: @(#)MAKE_IHEX	1.1 07 Sep 1994
# 
# This program extracts the instructions in ascii hex format from
# the .lst file which is an output of the rspasm.
# 
$alt = 0;
while (<>) {
  chop;
  split;
  if ($_ ne "") {
    if ($_[0] ne "***") {
      printf "%8.8lX", hex($_[2]);
      if ($alt) {
        printf "\n";
      }
      $alt = !$alt;
    }
  }
}