This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

A51 Assembly Translation from Old Code

Hello All,

Total assembly noob here, apologies in advance if my problem is trivial. I am working on a project that requires making an adjustment to code written in '91. The MCU is an OKI/LAPIS 80C31F. I believe the original assembler was a 2500AD. I am currently trying to assemble using the A51. I have had to make a handful of adjustments to the code in order to have the A51 assemble, but I am hung up on one translation.

        MOV     R5,#<M_PPU_DFLT
        MOV     R6,#>M_PPU_DFLT
.
.
.
        MOV     R6,#<20000
        MOV     R7,#>20000

The original author used a ton of these instructions, they are always MOV Rn,#immediate. Sometimes the #immediate is a symbol, other times it is a decimal number. But, they are always preceded by the '<' or '>' operator.

The assembler kicks back a syntax error for these statements. What can I do to alter this code in a way that the A51 will except it without losing the functionality of the instruction?

Thank you for your help.

Parents Reply Children
No data