summaryrefslogtreecommitdiff
path: root/src/app/transactiontest/util.S
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-06-04 14:00:47 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2019-06-04 14:00:47 +0200
commitb3451dad765096fd7bb1d2a993da13c1fc373bc8 (patch)
treef88739b64db0ca16ed627109585c8eb8cf47256d /src/app/transactiontest/util.S
parent905fc53cf3ddf0dd9674468a2a8f10c92db41d15 (diff)
transactiontest: MSP430FR5994, avoid inturrupt issues
Diffstat (limited to 'src/app/transactiontest/util.S')
-rw-r--r--src/app/transactiontest/util.S9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/app/transactiontest/util.S b/src/app/transactiontest/util.S
index 9341638..76988e3 100644
--- a/src/app/transactiontest/util.S
+++ b/src/app/transactiontest/util.S
@@ -3,7 +3,7 @@
.global asm_load_mem
#define SRAM_BASE #1c00h
-#define SRAM_SIZE 2048
+#define SRAM_SIZE 4096
; SRAM backup space
sram_backup:
@@ -74,11 +74,12 @@ asm_load_all:
pop r11
ret
+ dint
+
do_load_all:
; restore SRAM from backup
mov #sram_backup, r10
mov SRAM_BASE, r11
- dint
load_sram_word:
mov @r10+, 0(r11)
add #2, r11
@@ -108,9 +109,10 @@ asm_load_mem:
cmp #1234h, r11
jeq do_load_mem
pop r11
- eint
ret
+ dint
+
do_load_mem:
push r10
push r9
@@ -119,7 +121,6 @@ do_load_mem:
mov r1, r9
mov #sram_backup, r10
mov SRAM_BASE, r11
- dint
load_sram_word2:
mov @r10+, 0(r11)
add #2, r11