ntr_bootrom/trunk/IrisSubp/IrisSubpMon/IrisSubpMonDefine.h

48 lines
1.9 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//======================================================================
// IRISサブプロセッサ・モニタプログラム用定義
//======================================================================
#ifndef _IRIS_SUBP_MON_DEFINE_H
#define _IRIS_SUBP_MON_DEFINE_H
#include "IrisSubpMonTarget.h"
//----------------------------------------------------------------------
// DMA割り当て
//----------------------------------------------------------------------
#define V_DMA_NO 2
#define M_DMA_NO 3
//----------------------------------------------------------------------
// モニタ専用SPIコントロール定義
//----------------------------------------------------------------------
#define MON_SPI_CONTINUOUS_ON 0x1800 // コンティニュアスモード
#define MON_SPI_TARGET_FLASH 0x2100 // フラッシュメモリ選択
//----------------------------------------------------------------------
// レジスタ&RAM リセット システムコール
//----------------------------------------------------------------------
#define RESET_ALL_FLAGS 0xff // 全リセット
#define RESET_ALL_REG_FLAGS 0xe0 // 全レジスタ リセット
#define RESET_REG_FLAG 0x80 // レジスタ(下記以外)リセット
#define RESET_REG_SOUND_FLAG 0x40 // サウンドレジスタ リセット
#define RESET_REG_SIO_FLAG 0x20 // SIOレジスタ リセット
#define RESET_ALL_RAM_FLAGS 0x1f // 全RAM クリア
#define RESET_MMEM_FLAG 0x01 // メインメモリ クリア
#define RESET_CPU_WRAM_FLAG 0x02 // CPU内部RAM クリア
#define RESET_PLTT_FLAG 0x04 // パレット クリア
#define RESET_VRAM_FLAG 0x08 // クリア
#define RESET_OAM_FLAG 0x10 // クリア
#endif // _IRIS_SUBP_MON_DEFINE_H