summaryrefslogtreecommitdiff
path: root/src/SDCCasm.c
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2019-10-25 01:05:12 +0200
committerXavier ASUS <xavi92psx@gmail.com>2019-10-25 01:05:12 +0200
commit4de313f145d3c9bde748306f48443aadef6cf774 (patch)
treeba07672dc4d3c59705957d721c5cb1bad95c2cdb /src/SDCCasm.c
parent9d2f975be4bd8e9d8f15eb0d013944e46b00c8d2 (diff)
downloadsdcc-gas-4de313f145d3c9bde748306f48443aadef6cf774.tar.gz
DWARF2 debugging (almost) working
Stack pointer setup is removed since it is already set to 0x3FF for the STM8S003F3/K3, according to the datasheet.
Diffstat (limited to 'src/SDCCasm.c')
-rw-r--r--src/SDCCasm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/SDCCasm.c b/src/SDCCasm.c
index ef92103..e6db1c8 100644
--- a/src/SDCCasm.c
+++ b/src/SDCCasm.c
@@ -402,7 +402,7 @@ err_no_line:
static const ASM_MAPPING _gas_mapping[] = {
{"labeldef", "%s:"},
- {"slabeldef", "%s:"},
+ {"slabeldef", ".%s:"},
{"tlabeldef", "%05d$:"},
{"tlabel", "%05d$"},
{"immed", "#"},
@@ -449,6 +449,7 @@ static const ASM_MAPPING _gas_mapping[] = {
{"hihihil", "(%05d$ >> 24)"},
{"equ", "="},
{"org", ".org 0x%04X"},
+ {"noload", ", \"\""},
{0}
};
@@ -501,6 +502,7 @@ static const ASM_MAPPING _asxxxx_mapping[] = {
{"hihihil", "(%05d$ >> 24)"},
{"equ", "="},
{"org", ".org 0x%04X"},
+ {"noload", "(NOLOAD)"},
{NULL, NULL}
};
@@ -553,6 +555,7 @@ static const ASM_MAPPING _asxxxx_smallpdk_mapping[] = {
{"hihihil", "(%05d$ >> 24)"},
{"equ", "="},
{"org", ".org 0x%04X"},
+ {"noload", "(NOLOAD)"},
{NULL, NULL}
};
@@ -605,6 +608,7 @@ static const ASM_MAPPING _a390_mapping[] = {
{"hihihil", "((L%09d / 16777216) & 0FFh)"},
{"equ", " equ"},
{"org", ".org 0x%04X"},
+ {"noload", "(NOLOAD)"},
{NULL, NULL}
};