load_effective_address.py revision 5081:2ccce8600a9d
110260SAndrew.Bardsley@arm.com# Copyright (c) 2007 The Hewlett-Packard Development Company
210260SAndrew.Bardsley@arm.com# All rights reserved.
310260SAndrew.Bardsley@arm.com#
410260SAndrew.Bardsley@arm.com# Redistribution and use of this software in source and binary forms,
510260SAndrew.Bardsley@arm.com# with or without modification, are permitted provided that the
610260SAndrew.Bardsley@arm.com# following conditions are met:
710260SAndrew.Bardsley@arm.com#
810260SAndrew.Bardsley@arm.com# The software must be used only for Non-Commercial Use which means any
910260SAndrew.Bardsley@arm.com# use which is NOT directed to receiving any direct monetary
1010260SAndrew.Bardsley@arm.com# compensation for, or commercial advantage from such use.  Illustrative
1110260SAndrew.Bardsley@arm.com# examples of non-commercial use are academic research, personal study,
1210260SAndrew.Bardsley@arm.com# teaching, education and corporate research & development.
1310315Snilay@cs.wisc.edu# Illustrative examples of commercial use are distributing products for
1410260SAndrew.Bardsley@arm.com# commercial advantage and providing services using the software for
1510260SAndrew.Bardsley@arm.com# commercial advantage.
1610260SAndrew.Bardsley@arm.com#
1710260SAndrew.Bardsley@arm.com# If you wish to use this software or functionality therein that may be
1810513SAli.Saidi@ARM.com# covered by patents for commercial use, please contact:
1910260SAndrew.Bardsley@arm.com#     Director of Intellectual Property Licensing
2010260SAndrew.Bardsley@arm.com#     Office of Strategy and Technology
2110513SAli.Saidi@ARM.com#     Hewlett-Packard Company
2210315Snilay@cs.wisc.edu#     1501 Page Mill Road
2310260SAndrew.Bardsley@arm.com#     Palo Alto, California  94304
2410260SAndrew.Bardsley@arm.com#
2510260SAndrew.Bardsley@arm.com# Redistributions of source code must retain the above copyright notice,
2610260SAndrew.Bardsley@arm.com# this list of conditions and the following disclaimer.  Redistributions
2710260SAndrew.Bardsley@arm.com# in binary form must reproduce the above copyright notice, this list of
2810260SAndrew.Bardsley@arm.com# conditions and the following disclaimer in the documentation and/or
2910513SAli.Saidi@ARM.com# other materials provided with the distribution.  Neither the name of
3010513SAli.Saidi@ARM.com# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
3110260SAndrew.Bardsley@arm.com# contributors may be used to endorse or promote products derived from
3210260SAndrew.Bardsley@arm.com# this software without specific prior written permission.  No right of
3310260SAndrew.Bardsley@arm.com# sublicense is granted herewith.  Derivatives of the software and
3410260SAndrew.Bardsley@arm.com# output created using the software may be prepared, but only for
3510260SAndrew.Bardsley@arm.com# Non-Commercial Uses.  Derivatives of the software may be shared with
3610260SAndrew.Bardsley@arm.com# others provided: (i) the others agree to abide by the list of
3710260SAndrew.Bardsley@arm.com# conditions herein which includes the Non-Commercial Use restrictions;
3810260SAndrew.Bardsley@arm.com# and (ii) such Derivatives of the software include the above copyright
3910260SAndrew.Bardsley@arm.com# notice to acknowledge the contribution from this software where
4010260SAndrew.Bardsley@arm.com# applicable, this list of conditions and the disclaimer below.
4110260SAndrew.Bardsley@arm.com#
4210260SAndrew.Bardsley@arm.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
4310260SAndrew.Bardsley@arm.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
4410260SAndrew.Bardsley@arm.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
4510260SAndrew.Bardsley@arm.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
4610260SAndrew.Bardsley@arm.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
4710260SAndrew.Bardsley@arm.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
4810260SAndrew.Bardsley@arm.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
4910260SAndrew.Bardsley@arm.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
5010260SAndrew.Bardsley@arm.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
5110260SAndrew.Bardsley@arm.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
5210260SAndrew.Bardsley@arm.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5310260SAndrew.Bardsley@arm.com#
5410260SAndrew.Bardsley@arm.com# Authors: Gabe Black
5510260SAndrew.Bardsley@arm.com
5610260SAndrew.Bardsley@arm.commicrocode = '''
5710315Snilay@cs.wisc.edudef macroop LEA_R_M {
5810260SAndrew.Bardsley@arm.com    lea reg, seg, sib, disp
5910315Snilay@cs.wisc.edu};
6010260SAndrew.Bardsley@arm.com
6110260SAndrew.Bardsley@arm.comdef macroop LEA_R_P {
6210260SAndrew.Bardsley@arm.com    rdip t7
6310260SAndrew.Bardsley@arm.com    lea reg, seg, riprel, disp
6410260SAndrew.Bardsley@arm.com};
6510260SAndrew.Bardsley@arm.com'''
6610260SAndrew.Bardsley@arm.com