Share via


Hitachi Assembler Directive Example

The following code sample shows how to use Hitachi SH-x assembler directives when you cannot use the assembler macros.

START_REGION NameBegin
.global NameBegin
NameBegin:

END_REGION NameEnd
.global NameEnd
NameEnd:

NESTED_ENTRY Name
.section .text,code
.align 4
.global Name
Name: .entry

LEAF_ENTRY Name
.section .text,code
.align 4
.global Name
Name: .entry
.prolog

NESTED_BIGENTRY Name
.section .text,code
.align 4
.global Name
Name: .bigentry

LEAF_BIGENTRY Name
.section .text,code
.align 4
.global Name
Name: .bigentry
.prolog

ALTERNATE_ENTRY Name
.global Name
Name:

ENTRY_END Name
.endf
EXCEPTION_HANDLER Handler
.pdata Handler

EXCEPTION_HANDLER_DATA Handler,HandlerData
.pdata Handler,HandlerData

PROLOG_END
.prolog

See Also

SH-3 Calling Sequence Specification | SH3-DSP Calling Sequence Specifications | SH-4 Calling Sequence Specification

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.