Post Reply 
ASM Programming with HP50g
05-09-2021, 05:51 PM
Post: #13
RE: ASM Programming with HP50g
I have to admit, I didn't write ARM assembly code in MASD for quite a while, and didn't check the documentation. Apparently it's doing a bit more than I gave it credit for (or claiming to, anyway), because as simple as it is compared to many modern compilers and assemblers, I just assumed it wouldn't convert instructions into other instructions to make them work at all.
It's not a constant in MASD terms, that's some stuff around the DCCP macro. So just a frustrating MASD bug.

I just had another idea what may be causing it though: since this is clearly just an excerpt from your program, could it be that there's enough stuff inbetween for the TEXT label to be out of range from the LDR instruction? A lack of range validation would be a bug, to be sure, but it would at least explain why MASD is producing garbage.
Or maybe your program gets corrupted in some way between compilation and execution.
You could also try using the 50g's builtin tools to look at what MASD spat out, like \->H for a hex dump (mind the endianness) and ARM\-> to disassemble (though the latter is going to need some address calculations from you to make it disassemble the right piece of memory).
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
ASM Programming with HP50g - Helge P - 12-04-2020, 01:18 PM
RE: ASM Programming with HP50g - hth - 12-04-2020, 07:49 PM
RE: ASM Programming with HP50g - 3298 - 12-05-2020, 12:24 PM
RE: ASM Programming with HP50g - Helge P - 12-07-2020, 10:38 AM
RE: ASM Programming with HP50g - 3298 - 12-08-2020, 02:38 PM
RE: ASM Programming with HP50g - Helge P - 12-10-2020, 09:13 PM
RE: ASM Programming with HP50g - ijabbott - 12-13-2020, 12:38 PM
RE: ASM Programming with HP50g - Helge P - 05-09-2021, 02:55 PM
RE: ASM Programming with HP50g - 3298 - 05-09-2021, 04:12 PM
RE: ASM Programming with HP50g - Helge P - 05-09-2021, 05:04 PM
RE: ASM Programming with HP50g - 3298 - 05-09-2021 05:51 PM
RE: ASM Programming with HP50g - Helge P - 05-10-2021, 04:59 PM
RE: ASM Programming with HP50g - 3298 - 05-10-2021, 06:24 PM
RE: ASM Programming with HP50g - Helge P - 05-19-2021, 05:40 PM
RE: ASM Programming with HP50g - TRS80 - 11-16-2023, 10:55 AM
RE: ASM Programming with HP50g - TRS80 - 11-27-2023, 11:27 AM
RE: ASM Programming with HP50g - 3298 - 11-27-2023, 08:16 PM



User(s) browsing this thread: 1 Guest(s)