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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Assembler on Raspberry Pi

29 点作者 cpp_frog将近 2 年前

7 条评论

neonate将近 2 年前
<a href="http:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20230727203123&#x2F;https:&#x2F;&#x2F;imomath.com&#x2F;index.cgi?page=asmMain" rel="nofollow noreferrer">http:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20230727203123&#x2F;https:&#x2F;&#x2F;imomath.co...</a>
ksaj将近 2 年前
I did some experimenting with RPi assembler a handful of years back, since I used to do a lot of x86 assembler throughout the 90&#x27;s. If you&#x27;re interested, here are 6 completely different ways to print Hello World in Assembler for the Raspberry Pi.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;ksaj&#x2F;helloworld">https:&#x2F;&#x2F;github.com&#x2F;ksaj&#x2F;helloworld</a><p>I kept the code as close to each other in format and style as possible, so comparisons are easier to make. I don&#x27;t really know the benefits and drawbacks to each method, but they are there and available, so I sleuthed them out and got them working.
评论 #36924389 未加载
评论 #36925341 未加载
markx2将近 2 年前
<a href="https:&#x2F;&#x2F;www.chibiakumas.com&#x2F;z80&#x2F;AmstradCPC.php" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.chibiakumas.com&#x2F;z80&#x2F;AmstradCPC.php</a><p>Oh wow, memories!<p>Had an Amstrad CPC6128 in the mid-80s and for the life of me I just could not &#x27;get&#x27; BASIC. &quot;Syntax error&quot; in everything, even those multi-page type-in games that Amstrad Action would print each month.<p>Then I discovered the MAXAM ROM - along with Protext. That, a copy of the CPC Firmware Guide, and I was away.<p>BASIC stumped me but the Z80 language just clicked.<p>Loved writing code, learnt the importance of backups, learned how to find cheats in games and so much more. Good times.
self_awareness将近 2 年前
<a href="https:&#x2F;&#x2F;www.assemblytutorial.com" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.assemblytutorial.com</a>
unwind将近 2 年前
Wait what there is no integer division instruction? That sounds very weird and [1] disagrees by describing SDIV and UDIV. What?<p>[1]: <a href="https:&#x2F;&#x2F;developer.arm.com&#x2F;documentation&#x2F;den0024&#x2F;a&#x2F;The-A64-instruction-set&#x2F;Data-processing-instructions&#x2F;Multiply-and-divide-instructions" rel="nofollow noreferrer">https:&#x2F;&#x2F;developer.arm.com&#x2F;documentation&#x2F;den0024&#x2F;a&#x2F;The-A64-in...</a>
molticrystal将近 2 年前
&gt;hw-rpi3-5 Hello World bypassing clib altogether, and talking direcly to the hardware.<p>&gt;Apparently this is a no-no, even if it is theoretically more efficient. The bare-metal and OS dev folk are pretty much limited to using this method<p><pre><code> mov r7, #4 &#x2F;\* raw system call for write *&#x2F; swi #0 &#x2F;* print without using clib \*&#x2F; </code></pre> This seems to be just a call into the linux kernel, not bare metal, essentially what the clib does itself. You have to do this to do functions the kernel supports but haven&#x27;t been ported to clib yet.<p>I haven&#x27;t really looked deep into it but a google search came up with this for bare metal text printing <a href="https:&#x2F;&#x2F;github.com&#x2F;bztsrc&#x2F;raspi3-tutorial&#x2F;tree&#x2F;master&#x2F;0A_pcscreenfont">https:&#x2F;&#x2F;github.com&#x2F;bztsrc&#x2F;raspi3-tutorial&#x2F;tree&#x2F;master&#x2F;0A_pcs...</a>
评论 #36926373 未加载
codewritinfool将近 2 年前
Minor nit (for me, at least): An assembler is a tool. Assembly is a language.<p>Though not assembly language, I think that www.ultibo.org is a cool embedded development environment for the Pi.