Path: csiph.com!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Martin Newsgroups: comp.sys.acorn.programmer Subject: Re: Learning ARM machine code Date: Sun, 02 Nov 2025 17:01:48 +0000 (GMT) Organization: None Lines: 41 Message-ID: <5c758d12a5News03@avisoft.f9.co.uk> References: <5c0c6984e5bavariasound@chiemgau-net.de> <5c294aefcbbavariasound@chiemgau-net.de> <1026m5i$jcpt$4@solani.org> <5c2adc4465bavariasound@chiemgau-net.de> <5c2cea6fccbavariasound@chiemgau-net.de> <5c75805cc6bavariasound@chiemgau-net.de> Injection-Date: Sun, 02 Nov 2025 17:16:51 +0000 (UTC) Injection-Info: dont-email.me; posting-host="91167819d7a6f407d1abd2f0890b5f50"; logging-data="2381882"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HMmEyvZhKieDXFmVdT/oh" User-Agent: Pluto/3.21a (RISC OS/5.31) NewsHound/v1.54 Cancel-Lock: sha1:gN+R/vfoANpL+55XEkbkYkQ8qDw= Xref: csiph.com comp.sys.acorn.programmer:6556 In article <5c75805cc6bavariasound@chiemgau-net.de>, Alexander Ausserstorfer wrote: > You'll find an update now here: > http://home.chiemgau-net.de/ausserstorfer/Temp/2025-11-02/2025-08-31_PHB.pdf > (around 4 megabytes now). I have had a very quick look at your pdf, but I have not translated it. However, I have noticed some possible confusion between the ! and ? indirection BASIC operators... In Listing 2.2.1 you have 4 statements, each of which write 4 bytes to memory - it actually writes 7 bytes! It would be better as 10 ?&9000=&0E 20 ?&9001=&F0 30 ?&9002=&A0 40 ?&9003=&E1 which only writes 4 bytes. But it is even easier to just write 10 !&9000=&E1A0F00E which writes 4 bytes in one go. Listing 2.2.0 could be similarly simplified to 10 READ B% 20 !&9000 = B% 30 DATA &E1A0F00E Another way to display memory from within BASIC is my Reporter, as you can use commands like *ReportDump ~(&9000) (4) and many other things (see www.avisoft.f9.co.uk). Martin -- Martin Avison Note that unfortunately this email address will become invalid without notice if (when) any spam is received.