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

📄 c128-3.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>Commodore 128 specific information for cc65: Memory layout</TITLE> <LINK HREF="c128-4.html" REL=next> <LINK HREF="c128-2.html" REL=previous> <LINK HREF="c128.html#toc3" REL=contents></HEAD><BODY><A HREF="c128-4.html">Next</A><A HREF="c128-2.html">Previous</A><A HREF="c128.html#toc3">Contents</A><HR><H2><A NAME="s3">3.</A> <A HREF="c128.html#toc3">Memory layout</A></H2><P>cc65 generated programs with the default setup run with the I/O area and thekernal ROM enabled. Note that this is a non standard memory layout, and thatthere is no "memory configuration index" for this layout. This means thatspecial case has to be taken when changing the configuration, or calling anycode that does this. The memory configuration register at $FF00 shouldbe saved and restored instead of relying on the memory configuration indexstored in the zero page.</P><P>The setup gives a usable memory range of $1C00 - $CFFF. Havingjust the kernal ROM mapped in means, that kernal entry points may be calleddirectly, but using the BASIC ROM is not possible without additional code.</P><P>Special locations:</P><P><DL><DT><B>Text screen</B><DD><P>The text screen is located at $400 (as in the standard setup).</P><DT><B>Stack</B><DD><P>The C runtime stack is located at $CFFF and growing downwards.</P><DT><B>Heap</B><DD><P>The C heap is located at the end of the program and grows towards the Cruntime stack.</P></DL></P><HR><A HREF="c128-4.html">Next</A><A HREF="c128-2.html">Previous</A><A HREF="c128.html#toc3">Contents</A></BODY></HTML>

⌨️ 快捷键说明

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