📄 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
;
STACK_SIZE EQU 32*1024*4
STACK_LOCATION EQU ((v_cbSDRAM + s_cbSDRAM) - s_TTableBASE)
;STACK_LOCATION EQU 0x00100000
RAM_BASE EQU v_cbSDRAM
ROM_BASE EQU v_xxBOOTROM
;
; Default page table offsets
;
Level1tab EQU 0
;
; Force DM to use IRQ. Angel uses FIQ.
;
HANDLE_INTERRUPTS_ON_IRQ EQU 1
;
; 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 + -