![]() |
ARM Assembler Help Requested... - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: ARM Assembler Help Requested... (/thread-167153.html) |
ARM Assembler Help Requested... - Bill Zimmerly - 05-12-2010 I copied the listing from this post... ...and made the modification to Claudio Lapilli's code suggested by Cyrille de Brébisson. The problem is, every time I put it on the stack and execute the ASM command, it aborts with "asm Error: Invalid File". (Note: it ends with <CR><CR>@ as it should AND it fails like this whether I use either of the ASM or asm commands.)
Does anyone see anything wrong with the listing?
Re: ARM Assembler Help Requested... - BruceH - 05-13-2010 I think it should end <nl>@ not <cr>
Re: ARM Assembler Help Requested... - cyrille de Brébisson - 05-13-2010 hello, can you post the exact string that you are trying to compile?
cyrille
Re: ARM Assembler Help Requested... - Bill Zimmerly - 05-13-2010 Hi Cyrille! Here is the exact string:
"CODE (Everything between the double-quote marks.) Also, Cyrille, do you know of any ARM code more advanced than the simple examples presented in the AUR Manual? I would really like to know how to do I/O with the keyboard, display, and serial port with ARM code - but haven't been able to find anything at all on this.
- Bill
Re: ARM Assembler Help Requested... - Han - 05-13-2010 CODE ... ENDCODE is a SysRPL object. Perhaps you need to incude:
!NO CODE Either include that at the top of your source code, or make sure to have flag -92 set (so that MASD assumes SysRPL mode). The other possibility is to remove 'CODE' and 'ENDCODE'
Han Edited: 13 May 2010, 10:12 p.m.
Re: ARM Assembler Help Requested... - Bill Zimmerly - 05-14-2010 Quote:Hi Han!
Per your instructions, I did each of those steps and still got the same error each time. :( It's very puzzling...
Re: ARM Assembler Help Requested... - Bill Zimmerly - 05-14-2010 Quote: Hi Bruce!
Either way, the code I meant was produced on the HP-50G with the Right-Shift-Period key combination. ;)
Re: ARM Assembler Help Requested... - BruceH - 05-14-2010 Hi Bill, This code that you have posted works just fine for me provided flag -92 is set. If not then it gives the invalid file error that you have been seeing.
In case there is something else, my flags are:
Version HP50-C Revision #2,08
Re: ARM Assembler Help Requested... - David Hayden - 05-14-2010 Bill,
Rather than coding in ARM assembly, consider coding in C with HPGCC instead. This will compile into native ARM code and it's really fast. Libraries let you access the keyboard and display, though I'm not sure about the serial port.
Re: ARM Assembler Help Requested... - Bill Zimmerly - 05-14-2010 BruceH and Han, It works now when I set flag -92. Thanks for your help! (Han - I don't know why it didn't work before when I was doing what you said to do, but I re-entered the program, set flag -92 and it assembled to a "Code" object. Possibly a character I didn't see?) Anyway - it works and I'm grateful for everyone's help. :)
Sincerely,
Quote: Hi David! Since my goal is to port my ARM zForth system to the HP50G, I prefer to stick to ARM assembler exclusively. But I do agree with what you wrote about HPGCC - it's fast and quite useful! ;)
- Bill
Re: ARM Assembler Help Requested... - Bill Zimmerly - 05-14-2010 Quote:I don't know why I missed this before, but the HPGCC source modules have a lot of good stuff to study in there. Cool! |