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

📄 dio-2.html

📁 cc65 的编译器文档
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML><HEAD> <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.20"> <TITLE>Diskette Sector I/O Routines: Reading and writing sectors</TITLE> <LINK HREF="dio-3.html" REL=next> <LINK HREF="dio-1.html" REL=previous> <LINK HREF="dio.html#toc2" REL=contents></HEAD><BODY><A HREF="dio-3.html">Next</A><A HREF="dio-1.html">Previous</A><A HREF="dio.html#toc2">Contents</A><HR><H2><A NAME="s2">2.</A> <A HREF="dio.html#toc2">Reading and writing sectors</A></H2><P>The read and write functions are:</P><P><BLOCKQUOTE><CODE><PRE>    unsigned char __fastcall__ dio_read (dhandle_t handle,                                         sectnum_t sect_num,                                         void *buffer);</PRE></CODE></BLOCKQUOTE></P><P>This function will read the sector specified by sect_num into the memorylocation at buffer.</P><P><BLOCKQUOTE><CODE><PRE>    unsigned char __fastcall__ dio_write (dhandle_t handle,                                          sectnum_t sect_num,                                          const void *buffer);</PRE></CODE></BLOCKQUOTE></P><P>This function will write the memory contents at buffer to the sector specifiedby <CODE>sect_num</CODE>. No verify is performed.</P><P><BLOCKQUOTE><CODE><PRE>    unsigned char __fastcall__ dio_write_verify (dhandle_t handle,                                                 sectnum_t sect_num,                                                 const void *buffer);</PRE></CODE></BLOCKQUOTE></P><P>This function will write the memory contents at buffer to the sector specifiedby <CODE>sect_num</CODE>. A verification is performed.</P><P>All these functions will return 0 for success and an OS specific error code incase of failure.</P><HR><A HREF="dio-3.html">Next</A><A HREF="dio-1.html">Previous</A><A HREF="dio.html#toc2">Contents</A></BODY></HTML>

⌨️ 快捷键说明

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