IAR assembler

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Anyone using the IAR assember out there?
Found out that it does not accept LDS or STS instructions???

ANybody figure out how to work with the eeprom segment, and
code it so the linker can accept it?

I am also using the librarian, for my code is approaching 7k with
pure assembly!

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Glen,

I have no problem using the LDS and STS instructions with the IAR assembler. Given the following small example:

lds r0,0x400
sts 0x400,r0
END

I get the following result:

C:\Tmp>aa90 -l iarasm.lst iarasm.s90

IAR A90 Assembler V1.51B/W32
Copyright 1999 IAR Systems. All rights reserved.

Errors: 0
Warnings: 0
Bytes: 8

iarasm.lst:

##############################################################################
#
# IAR Systems A90 Assembler V1.51B/W32 22/Feb/2001 11:37:11
# Copyright 1999 IAR Systems. All rights reserved.
#
# Target option = Relative jumps reach entire addr space
# Source file = iarasm.s90
# List file = iarasm.lst
# Object file = iarasm.r90
# Command line = -l iarasm.lst iarasm.s90
#
##############################################################################

1 00000000 90000400 lds r0,0x400
2 00000004 92000400 sts 0x400,r0
3 00000008 END
##############################
# CRC:4E24 #
# Errors: 0 #
# Warnings: 0 #
# Bytes: 8 #
##############################

Dr.M

admin's test signature