X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=altoslib%2FAltosHexsym.java;h=a2ba6935f0ee58ac895ef6ed477bffc99449566a;hp=52eb81db0354e1a0cea00dd4ba627277f7b67853;hb=e38e1a2f735a1bb4aebf0817cdd99a05567c6340;hpb=bd440afc2a6e37b74fffcf1b977e149485095316 diff --git a/altoslib/AltosHexsym.java b/altoslib/AltosHexsym.java index 52eb81db..a2ba6935 100644 --- a/altoslib/AltosHexsym.java +++ b/altoslib/AltosHexsym.java @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -15,7 +16,7 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -package org.altusmetrum.altoslib_5; +package org.altusmetrum.altoslib_13; public class AltosHexsym { String name; @@ -23,8 +24,12 @@ public class AltosHexsym { final static long invalid_addr = 0xffffffff; + public String toString() { + return String.format("%s:0x%x", name, address); + } + public AltosHexsym(String name, long address) { this.name = name; this.address = address; } -} \ No newline at end of file +}