projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
[fw/sdcc]
/
support
/
regression
/
tests
/
sfr16.c
diff --git
a/support/regression/tests/sfr16.c
b/support/regression/tests/sfr16.c
index 81ea7ad844540b7439a227991898f24e2d28cb8a..669f805eb8dfd6cb1199bf63390f7ba3cd09f6f6 100644
(file)
--- a/
support/regression/tests/sfr16.c
+++ b/
support/regression/tests/sfr16.c
@@
-9,6
+9,7
@@
sfr at 0x8A TL0; //timer 0 low byte
sfr at 0x8C TH0; //timer 0 high byte
sfr16 at 0x8C8A TMR0; //timer 0
+sfr32 at 0x8C8ACDCC TIMERS; //timer 0 & 2
#endif
void
@@
-29,5
+30,9
@@
test_sfr(void)
TL0++;
ASSERT (TMR0 == 0x0101);
+
+ TIMERS = 0x12345678;
+ TIMERS -= 0x02040608;
+ ASSERT (TIMERS == 0x10305070);
#endif
}