⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 emuinit.cmd

📁 DSP仿真 FFT程序 已测试 大家多多支持下
💻 CMD
字号:

halt
reset

mr				; resets the debugger memory map

; Program Memory
ma 0x0000, 0, 0x0080, ram
ma 0x0080, 0, 0x1f80, ram	; DARAM
ma 0x2000, 0, 0x6000, ram ; SARAM1
ma 0x8000, 0, 0x4000, ram ; external
ma 0xc000, 0, 0x4000, ram ; external/on-chip ROM
ma 0x10000, 0, 0x8000, ram ; SARAM1 (OVLY=1)
ma 0x18000, 0, 0x8000, ram ; SARAM2
ma 0x80000, 0, 0x80000, ram ; external flash

; Data Memory
ma 0x0000, 1, 0x0060, ram	; memory-mapped registers
ma 0x0060, 1, 0x0020, ram	; scratch pad DARAM
ma 0x0080, 1, 0x1f80, ram	; DARAM
ma 0x2000, 1, 0x6000, ram ; SARAM1
ma 0x8000, 1, 0x8000, ram ; SARAM2/external

; I/O Memory
ma 0x0000, 2, 0x0008, ioport ; Spectrum Digital EVM UART
ma 0x0080, 2, 0x0008, ioport ; Destiny Designs pEVM CPLD
ma 0x4000, 2, 0x0020, ioport ; Spectrum Digital SSM CS8401

map on				; Enable mapping

eval *(int *)(0x2c)=0x2		; HPIC

; I/O space

; Configure extended program addressing
ext_addr_def 0x8000@prog, 0x1e, 0x7f


; ********************************************
; * DMA Priority and Enable Control Register
; ********************************************
e *0x54=0x0000

; *************************************
; * SST    = 0
; * SMUL   = 0
; * CLKOFF = 0
; * DROM   = 1
; * AVIS   = 0
; * OVLY   = 1
; * MP/MC  = 1
; * IPTR   = 1111_1111_1 = 0FF80h
; *************************************
e PMST=0xffe8

; ********************************************
; * Software Wait-State Register
; * [0:2]   = 111  ; program 00000h-07fffh (7)
; * [3:5]   = 111  ; program 08000h-0ffffh (7)
; * [6:8]   = 111  ; data 00000h-07fffh    (7)
; * [9:11]  = 111  ; data 08000h-0ffffh    (7)
; * [12:14] = 111  ; I/O  00000h-0ffffh    (7)
; * [15]    = 0    ; XPA
; ********************************************
e *0x28=0x7fff

; ********************************************
; * Bank-Switching Control Register
; * [1]     = 0    ; BH      (disable)
; * [2]     = 0    ; HBH     (disable)
; * [3:11]  = xxx  ; reserve
; * [12]    = 0    ; IACKOFF (IACK disabled)
; * [13:14] = 00   ; DIVFCT  (CLKOUT/1)
; * [15]    = 1    ; CONSEC  (3 cycle reads)
; ********************************************
e *0x29=0x8000

reset

use ..\src
use ..\src\mp3sys
use ..\src\ac3sys
use ..\src\aacsys
use ..\src\ac3lasys

⌨️ 快捷键说明

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