projects
/
fw
/
sdcc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a0b6db
)
(createInterruptVect): don't append 7(5) padding bytes for last interrupt vector...
author
frief
<frief@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 9 Jan 2004 20:20:07 +0000
(20:20 +0000)
committer
frief
<frief@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 9 Jan 2004 20:20:07 +0000
(20:20 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3103
4a8a32a2
-be11-0410-ad9d-
d568d2c75423
src/SDCCglue.c
patch
|
blob
|
history
diff --git
a/src/SDCCglue.c
b/src/SDCCglue.c
index 47584b541fdcdbad0a014a3fdabfcaef069159d7..e0f6834317db377117e020d2ef17c9a1450a70a5 100644
(file)
--- a/
src/SDCCglue.c
+++ b/
src/SDCCglue.c
@@
-1354,14
+1354,21
@@
createInterruptVect (FILE * vFile)
fprintf (vFile, "\tljmp\t__sdcc_gsinit_startup\n");
-
/* now for the other interrupts */
for (; i < maxInterrupts; i++)
{
if (interrupts[i])
- fprintf (vFile, "\tljmp\t%s\n\t.ds\t5\n", interrupts[i]->rname);
+ {
+ fprintf (vFile, "\tljmp\t%s\n", interrupts[i]->rname);
+ if ( i != maxInterrupts - 1 )
+ fprintf (vFile, "\t.ds\t5\n");
+ }
else
- fprintf (vFile, "\treti\n\t.ds\t7\n");
+ {
+ fprintf (vFile, "\treti\n");
+ if ( i != maxInterrupts - 1 )
+ fprintf (vFile, "\t.ds\t7\n");
+ }
}
}
}