📄 main.inc
字号:
;------------------------------------------------------------------------------
;
; COPYRIGHT (C) 2000, 2001 Intel Corporation.
;
; This software as well as the software described in it is furnished under
; license and may only be used or copied in accordance with the terms of the
; license. The information in this file is furnished for informational use
; only, is subject to change without notice, and should not be construed as
; a commitment by Intel Corporation. Intel Corporation assumes no
; responsibility or liability for any errors or inaccuracies that may appear
; in this document or any software that may be provided in association with
; this document.
; Except as permitted by such license, no part of this document may be
; reproduced, stored in a retrieval system, or transmitted in any form or by
; any means without the express written consent of Intel Corporation.
;
; FILENAME: main.inc
;
; PURPOSE: This file contains the platform dependent startup code definitions.
;
; LAST MODIFIED: $Modtime: $
;------------------------------------------------------------------------------
IF :LNOT: :DEF: _main_inc_
_main_inc_ EQU 1
;
; Default stack location
;
ROM_Base EQU 0x00000000
ROM_Size EQU 0x00180000
RAM_Base EQU 0xA0000000
Globe_Variable_Size EQU 4*32*1024
STACK_SIZE EQU 1024*8
RAM_Source_Base EQU RAM_Base + Globe_Variable_Size +STACK_SIZE
STACK_LOCATION EQU RAM_Source_Base
RELOCATE_ROM EQU 1
;________________________ROM_Base (0x0000,0000)
;| |
;| |
;| |
;| ROM |
;| |
;| |
;________________________ROM_Base + ROM_Size
;| |
;| |
;| |
;| |
;~ ~
;| |
;| |
;| |
;________________________RAM_Base, R9 ---
;| | |
;| Globe | \|/
;| Variable |
;========================RAM_Base + Globe_Variable_Size
;| |
;| Stack | /|\;
;| | |
;________________________RAM_Source_Base
;| |
;| RAM_Source_Base |
;| |
;| |
;________________________
;
; CPSR definitions
;
; 31 30 29 28 27 26................8 7 6 5 4 3 2 1 0
;+---+---+---+---+---+--------------------+---+---+---+----+----+----+----+----+
;| N | Z | C | V | Q | DNM(RAZ) b | I | F | T | M4 | M3 | M2 | M1 | M0 |
;+-----------------------------------------------------------------------------+
; Where:
; N - Negative, Z - Zero, C - Carry, V - Overflow, Q - DSP Overflow
; I - Disables IRQ, F - Disables FIQ, T - Thumb
; M4 - M0 - 10000 - User, 10001 - FIQ, 10010 - IRQ, 10011 - Supervisor
; - 10111 - Abort, 11011 - Undefined, 11111 - System
;
CPSR_Mode_FIQ EQU 0x11
CPSR_Mode_IRQ EQU 0x12
CPSR_Mode_SVC EQU 0x13
CPSR_Mode_ABT EQU 0x17
CPSR_Mode_UND EQU 0x1B
CPSR_Mode_SYS EQU 0x1F
CPSR_Mode_Mask EQU 0x1F
CPSR_I_Bit EQU 0x80
CPSR_F_Bit EQU 0x40
CPSR_Int_Mask EQU 0xC0
ENDIF
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -