bootup56.asm

来自「GM5621原代码」· 汇编 代码 · 共 70 行

ASM
70
字号
;/*
;	$Workfile:   bootup56.asm  $
;	$Revision:   1.5  $
;	$Date:   May 17 2006 02:51:28  $
;*/
;//******************************************************************************
;//
;//              Copyright (C) 2003.  GENESIS MICROCHIP INC.
;//      All rights reserved.  No part of this program may be reproduced.
;//
;//     Genesis Microchip Inc., 2150 Gold St
;//     Alviso, CA 95002 
;//	   USA
;//
;//==============================================================================
;//
;// MODULE:      Bootup.asm
;//
;// USAGE:       1) This module contains bootup code for XROM.
;//              	The Boot code address is 0x8010:0000.
;//                 The signature is at 0x8000:00F0
;//
;//******************************************************************************

.186

;//******************************************************************************
;//  E X T E R N A L    F U N C T I O N S
;//******************************************************************************

extrn _XROM_Initialization:far

ifndef SMALL_STACK
;	stackstart = 01400h						; start SP at 0000h:1400h
;	stackstart = 02000h						; start SP at 0000h:2000h
	stackstart = 01C00h						; start SP at 0000h:1C00h 
else
	stackstart = 01096h						; start SP at 0000h:1096h
endif
__OPEN_DATA_SEGMENT	segment para public 'FAR_CONST'
_W_Stackinit	label	word
	 dw stackstart ;
__OPEN_DATA_SEGMENT	ends

public _W_Stackinit
;//******************************************************************************
;//*  C O D E
;//******************************************************************************
;;;
;;; Define the START segment at 0x8000
;;; The START is defined in ExtRom.cfg
;;;
_START_SEGMENT 	segment para	public	'START'
	public __startup
__startup label far

	mov		sp, stackstart				; Stack setup

	mov byte ptr [00000h:08029h], 0Fh			; program EXT_ROM_RD_CTRL in EXT_ROM_RD_CTRL  with 0xf (15) clock wait
										;
	nop                                 ;
	jmp		_XROM_Initialization		; Start RAM initialization
                                        ;
                                       	;
_START_SEGMENT 	ends

end __startup

;//*********************************  END  **************************************

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?