TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Commodore 64 Assembly

3 点作者 harel18 天前

1 comment

jll2918 天前
Enjoy coding!<p>Real coding on 8-bit machines was a bit more scary than using QEMU since you had to remember to save your assebly sources after each edit, as running your machine code often crashed the machine.<p>You may want to also use:<p><pre><code> (global-set-key [(C-f5)] &#x27;compile) (global-set-key [(f5)] &#x27;recompile) </code></pre> in your .[x]emacs file to save pressing M-x M-c or ESC + &#x27;x&#x27; + &#x27;compile&#x27; + ENTER (4-10 keys) to run make&#x2F;compile with 1 keystroke instead.<p>Popular execises for beginners on the C64 were:<p>- write a loop that reads from A000 to C000 and writes to the same address. This seemingly useless exercise makes a copy of the CBM BASIC from ROM to RAM (the C64 has addresses multiple times in parallel &quot;banks&quot;), in order to subsequently edit the appearance of the characters (screen font) or to rename BASIC keywords.<p>- jump to a subroutine (&quot;SYS&quot; in BASIC) or write code to jump (&quot;JSR&quot;&#x2F;&quot;JMP&quot;) to an arbitrary address, and then discover why the machine behaves as it does when you do so, by reading the RAM or ROM code located there with a disassembler or HEX monitor (try &quot;SYS 64738&quot; versus &quot;SYS 4222&quot;).
评论 #43802388 未加载