Re: Code error - why?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Balakrishnan Ananthanarayanan wrote:
[snip]
>          la $a0, quest
>          li $v0, 4
>          syscall   "
>        
> The error messages are:
>   " Hello.S line 5: illegal operands 'la' 
>     Hello.S line 6: illegal operands 'li'"
> 
> Can anyone help? What is wrong?

The register names are wrong. The software names, if defined in some
assembler header, are 'a0' and 'v0', while the assembler recognized
hardware names are '$4' and '$2'.


Thiemo

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux