comparison src/list.c @ 49:21ae0fab469b

Added needed infra for useful listing of EQU and ORG type statements
author lost
date Sun, 04 Jan 2009 07:37:19 +0000
parents 804d7465e0f9
children e672232caffe
comparison
equal deleted inserted replaced
48:6de358e7903f 49:21ae0fab469b
65 } 65 }
66 } 66 }
67 67
68 for (l = as -> lineshead; l; l = l -> next) 68 for (l = as -> lineshead; l; l = l -> next)
69 { 69 {
70 fprintf(lf, "%04X ", l -> codeaddr); 70 if (l -> addrset == 1 || l -> codelen > 0 || l -> nocodelen > 0)
71 {
72 fprintf(lf, "%04X ", l -> codeaddr);
73 }
74 else
75 {
76 fprintf(lf, " ");
77 }
71 78
72 for (c = 0; c < l -> codelen && c < 5; c++) 79 for (c = 0; c < l -> codelen && c < 5; c++)
73 { 80 {
74 fprintf(lf, "%02X", l -> bytes[c]); 81 fprintf(lf, "%02X", l -> bytes[c]);
75 } 82 }