Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: debug_register.cpp
- Revision:
 - 14:22a3b68860af
 - Parent:
 - 13:92533bcf6542
 - Child:
 - 15:83d4dced2a28
 
diff -r 92533bcf6542 -r 22a3b68860af debug_register.cpp
--- a/debug_register.cpp	Mon May 13 08:59:45 2019 +0000
+++ b/debug_register.cpp	Mon May 13 11:04:54 2019 +0000
@@ -85,6 +85,9 @@
             pc.printf("\r\e[K\e[12;0H\r\e[K\e[32;40m use l or j to move the cursor, esc to delete value or enter to continue\e[97;40m");
             //pc.printf("\e[6;46H");
             address = modify_value(address, 17); // insert or modify actual address(starting in 17th column) to write register value on that address
+            address -= address%4;
+            pc.printf("\e[6;17H");
+            pc.printf("%8x",address);
             pc.printf("\e[12;0H\r\e[K\e[32;40m use l or j to move the cursor, esc to delete value or enter to continue\e[97;40m");  
             //pc.printf("\e[6;96H");
             reg = *((volatile unsigned int *)address); //read register value from address