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

📄 dma.def

📁 Welcome to PMOS. PMOS is a set of modules, mostly written in Modula-2, to support multitasking. PMO
💻 DEF
字号:
DEFINITION MODULE DMA;

	(********************************************************)
	(*							*)
	(*	Procedures to deal with Direct Memory Access	*)
	(*		    input and output.			*)
	(*							*)
	(*  Programmer:		P. Moylan			*)
	(*  Last edited:	15 June 1992			*)
	(*  Status:		OK				*)
	(*							*)
	(********************************************************)

FROM SYSTEM IMPORT
    (* type *)	ADDRESS;

PROCEDURE CheckDMAAddress (Address: ADDRESS;  count: CARDINAL): BOOLEAN;

    (* Returns TRUE iff the given address and count values are		*)
    (* suitable for a DMA transfer.  An unsuitable pair is one where	*)
    (* the transfer would cross a 64K boundary in memory - a case which	*)
    (* the DMA hardware cannot handle.					*)

PROCEDURE LoadDMAparameters (channel, operation: CARDINAL;
				Address: ADDRESS;  count: CARDINAL);

    (* Loads the DMA controller with the address and count values	*)
    (* as a preliminary to starting a DMA transfer.			*)
    (* The code for "operation" is 0 for verify, 1 for read (transfer	*)
    (* from external device to memory), and 2 for write (from memory to	*)
    (* external device).  Other values are illegal.			*)

    (* It is the caller's responsibility to know that the specified DMA	*)
    (* channel is not already in use.  This is normally not a problem,	*)
    (* since each channel is permanently dedicated to a single use.	*)

    (* It is also the caller's responsibility to know that the given	*)
    (* address and count do not cause the transfer to cross a 64 Kbyte	*)
    (* boundary in main memory - a case which the DMA hardware cannot	*)
    (* handle.  Beware!							*)

END DMA.

⌨️ 快捷键说明

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