comparison src/list.c @ 47:804d7465e0f9

Implemented ORG and fixed problems with constants using $, &, or @ to specify base
author lost
date Sun, 04 Jan 2009 07:25:03 +0000
parents be459d69f481
children 21ae0fab469b
comparison
equal deleted inserted replaced
46:b962cee20bf4 47:804d7465e0f9
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 fprintf(lf, "%04X ", l -> codeaddr);
71 71
72 if (l -> codelen > 0) 72 for (c = 0; c < l -> codelen && c < 5; c++)
73 { 73 {
74 for (c = 0; c < l -> codelen && c < 5; c++) 74 fprintf(lf, "%02X", l -> bytes[c]);
75 {
76 fprintf(lf, "%02X", l -> bytes[c]);
77 }
78 } 75 }
79 while (c < 5) 76 while (c < 5)
80 { 77 {
81 fprintf(lf, " "); 78 fprintf(lf, " ");
82 c++; 79 c++;