Post Reply 
ARM Error Undefined FPTR Name
03-31-2017, 02:09 PM
Post: #2
RE: ARM Error Undefined FPTR Name
(03-31-2017 08:30 AM)sunhp Wrote:  Here is a very simple ARM assembly source.
When I build it and EVAL I get : Error Undefined FPTR Name
Why ?

"!RPL
CODE
SAVE

!ARM
STMDB sp! {R4 R5 R6 R7 R8 LP}
LDMIA sp! {R4 R5 R6 R7 R8 PC}

!ASM
LOADRPL
ENDCODE
;
@"

Not so simple. You can't embed ARM code in Saturn assembler and expect the emulated CPU to switch modes automatically. You have to tell it to execute the ARM code with the ARMSYS and ARMSAT instructions. Also, ARM code must be word-aligned (word=32 bits in this context), therefore you can't simply embed it, it needs to be copied in memory to an aligned position, then executed.
In other words you need a "launcher" like the one discussed here.
You could also install the ARM Toolbox from hpcalc.org and create a string, also as explained on the same old post. The Toolbox will align and launch the code for you, but the small launcher discussed there will do the job well with a lot less overhead for small programs.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
ARM Error Undefined FPTR Name - sunhp - 03-31-2017, 08:30 AM
RE: ARM Error Undefined FPTR Name - Claudio L. - 03-31-2017 02:09 PM
RE: ARM Error Undefined FPTR Name - Han - 03-31-2017, 09:29 PM
RE: ARM Error Undefined FPTR Name - sunhp - 04-01-2017, 08:00 AM



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