cbm610-3.html

来自「cc65 的编译器文档」· HTML 代码 · 共 50 行

HTML
50
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML><HEAD> <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.20"> <TITLE>Commodore 610 specific information for cc65: Memory layout</TITLE> <LINK HREF="cbm610-4.html" REL=next> <LINK HREF="cbm610-2.html" REL=previous> <LINK HREF="cbm610.html#toc3" REL=contents></HEAD><BODY><A HREF="cbm610-4.html">Next</A><A HREF="cbm610-2.html">Previous</A><A HREF="cbm610.html#toc3">Contents</A><HR><H2><A NAME="s3">3.</A> <A HREF="cbm610.html#toc3">Memory layout</A></H2><P>cc65 generated programs for the Commodore 610 run in bank 1, the memory bankreserved for BASIC programs. Since there are no ROMs in this memory bank, theprogram has almost full 64K for its own. A disadvantage is that kernalsubroutines cannot be called (at least not in a fast and effective manner), sothe runtime has replace kernal functionality.</P><P>The default memory configuration for the CBM 610 allocates all memory between$0002 and $FFF0 in bank 1 for the compiled program. Some spacein low memory is lost, because a separate hardware stack is set up in page 1,and the kernal replacement functions need some more memory locations. A fewmore bytes are lost in high memory, because the runtime sets up a CBMcompatible jump table at $FF81. The main startup code is located at$0400, so about 63K of the complete bank are actually usable forapplications.</P><P>Special locations:</P><P><DL><DT><B>Stack</B><DD><P>The C runtime stack is located at $FF81 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="cbm610-4.html">Next</A><A HREF="cbm610-2.html">Previous</A><A HREF="cbm610.html#toc3">Contents</A></BODY></HTML>

⌨️ 快捷键说明

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