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

📄 sal68360.gdb

📁 WaitForSingleObject 摩托罗拉的68k源程序
💻 GDB
字号:
######################################################################       Board setup for SAL Communications Controller card          ######################################################################define initBoardbdm_reset## Step 4: Set up module base address register#set $dpram = 0x0e000000set $mbar = $dpram|0x101set $regb = $dpram+0x1000## I/O is to supervisor program space#set $dfc=5set $sfc=5## Step 7: Deal with clock synthesizer#set {unsigned char}($regb+0x000c) = 0x8fset {unsigned char}($regb+0x0010) = 0xd000set {unsigned short}($regb+0x0014) = 0x8000## Step 8: Initialize system protection#set {unsigned char}($regb+0x0022) = 0x7f## Step 9: Clear parameter RAM and reset communication processor module# Ignore this for now, since all we want to use is the memory controller### Step 10: Write PEPAR#set {unsigned short}($regb+0x0016) = 0x0180## Step 11: Remap Chip Select 0 (CS0}#set {unsigned long}($regb+0x0040) = 0x17940120set {unsigned long}($regb+0x0054) = 0x4ff80004set {unsigned long}($regb+0x0050) = 0x0f000003## Step 12: Initialize the system RAM#set {unsigned long}($regb+0x0064) = 0x0f000001set {unsigned long}($regb+0x0060) = 0x00000001set $ramjnk={unsigned long}0@8## Determine RAM size#set {char}0 = 0if ({char}0x00801000 == 0)	set {char}0 = 1	if ({char}0x000801000 == 1)		set {unsigned long}($regb+0x0040) = 0x178C0120	endend## Step 15: Set module configuration register#set {unsigned long}($regb+0x0000) = 0x00004c7fenddefine hook-runinitBoardend

⌨️ 快捷键说明

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