dlbeer / mspdebug

Debugging tool for MSP430 MCUs
GNU General Public License v2.0
190 stars 81 forks source link

Allow register names in address expressions. #6

Closed inguin closed 8 years ago

inguin commented 8 years ago

The following patch allows using CPU register names in address expressions. One possible use case is displaying the current stack contents with "md @sp".

I'm not sure if "@" is the best prefix character, as it might also be useful for implementing an indirect addressing feature.

dlbeer commented 8 years ago

On Thu, Jan 21, 2016 at 09:42:17AM -0800, Ingo van Lil wrote:

The following patch allows using CPU register names in address expressions. One possible use case is displaying the current stack contents with "md @sp".

I'm not sure if "@" is the best prefix character, as it might also be useful for implementing an indirect addressing feature. You can view, comment on, or merge this pull request online at:

https://github.com/dlbeer/mspdebug/pull/6

-- Commit Summary --

  • Allow register names in address expressions.

-- File Changes --

M mspdebug.man (19)
M util/expr.c (16)

-- Patch Links --

https://github.com/dlbeer/mspdebug/pull/6.patch https://github.com/dlbeer/mspdebug/pull/6.diff


Reply to this email directly or view it on GitHub: https://github.com/dlbeer/mspdebug/pull/6

Done, thanks for that!

Cheers, Daniel

Daniel Beer dlbeer@gmail.com http://dlbeer.co.nz/ PGP: BA6E 0B26 1F89 246C E3F3 C910 1E58 C43A 160A 553B