Zilog Z80380 Manuel d'utilisateur Page 91

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 116
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 90
UM004001-COR1103 A–1
380 C-COMPILER USERS MANUAL
APPENDIX A
INITIALIZATION AND LINK FILES
;--------------------------------------------------------------
INITIALIZATION FILE
The following is the initialization file that is included with the 380 C-comiler installation.
;***********************************************************************
;* Z380Boot: C Runtime Startup
;* Copyright (c) ZiLOG, 1999
;***********************************************************************
;***********************************************************************
.sect ".bss" ; In case no-one else names it
;***********************************************************************
.sect ".startup" ; This should be placed properly
.def _c_int0
.def __exit
.ref _main
.ref .BSS_BASE,.BSS_LENGTH
.ref .TOS
.INITBSS .equ 1 ; Zero the .bss section ?
;**********************************
; Program entry point
;**********************************
_c_int0:
setc xm ; Extended Mode (32-bit pointers)
setc lw ; LongWord Mode(32-bit integers)
ldw.iw sp,.TOS ; Setup SP
.if .INITBSS
;------ Initialize the .BSS section to zero
Vue de la page 90
1 2 ... 86 87 88 89 90 91 92 93 94 95 96 ... 115 116

Commentaires sur ces manuels

Pas de commentaire