private int fixOrphans()
    {
        //For each orphanned label reference...
        for(Label o : m_orphans)
        {
            boolean bFound = false; // was this orphan's label found?
            if (m_verbose)
                System.out.print("Searching for orphan label: " + o.name + " among: ");

            //...find the corresponding label
            for(Label l : m_labels)
            {
                if (m_verbose)
                    System.out.print(l.name + " ");
                
                if (o.name.equals(l.name))
                {
                    Integer intAddr = new Integer(l.addr);
                    m_prog.set(o.addr, intAddr);
                    bFound = true;
                }
            }//for

            if (m_verbose)
                System.out.println();

            //If the label wasn't found then report an error
            if (!bFound)
            {
                System.out.println("\nERROR: label " + o.name + " was referenced but never defined.");
                return -1;
            }
        }//for
        return 0;
    }//fixOrphans