Mercurial > hg > forks > dxa
diff label.c @ 14:84c0facfc43c
Merge changes from upstream v0.1.4.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 14 Oct 2021 01:38:52 +0300 |
parents | 3c00e5162f34 |
children | a2a81589380d |
line wrap: on
line diff
--- a/label.c Fri Oct 08 02:40:00 2021 +0300 +++ b/label.c Thu Oct 14 01:38:52 2021 +0300 @@ -1,7 +1,8 @@ /*\ - * dxa v0.1.1 -- symbolic 65xx disassembler + * dxa -- symbolic 65xx disassembler * * Copyright (C) 1993, 1994 Marko M\"akel\"a + * Copyright (C) 2019 Cameron Kaiser * * 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 @@ -17,16 +18,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * - * Contacting the author: - * - * Via Internet E-mail: - * <Marko.Makela@FTP.FUNET.FI> - * - * Via Snail Mail: - * Marko M\"akel\"a - * Sillitie 10 A - * FIN-01480 VANTAA - * Finland \*/ #define _LABEL_C_ @@ -84,10 +75,11 @@ if (!IsLabeled (address)) { // dirty kludge to allow zero page stuff to still work. this sometimes // guesses wrong - if (admode == zp) + if (admode == zp) { snprintf(defaultlabel, sizeof(defaultlabel), "$%02x", address); - else + } else { snprintf(defaultlabel, sizeof(defaultlabel), "$%04x", address); + } return defaultlabel; }