In the book 'Raspberry Pi Assembly Language RISC OS Beginners' von Bruce Smith I'M missing the links to the ARM machine code. I want to see the commands in hex or binary values and want to be able to calculate it by myself.
Is there another book or anything else you can recommend?
On 12 Apr 2025 as I do recall,It's a good method!
Alexander Ausserstorfer wrote:
In the book 'Raspberry Pi Assembly Language RISC OS Beginners' von BruceStrongED can disassemble ARM code instructions for you in Dump mode, so technically speaking you can use the BBC BASIC built-in assembler (I
Smith I'M missing the links to the ARM machine code. I want to see the
commands in hex or binary values and want to be able to calculate it by
myself.
Is there another book or anything else you can recommend?
assume the Bruce Smith book gives instructions for that?), save out the
area of memory into which you have assembled your code, and inspect it
in StrongED in order to see the hex values.
If you look inside !Textseek.Resources you will find the file 'detoken',
for example, which is just raw machine code that gets loaded and
executed by the BASIC !RunImage. It doesn't have any kind of executable header or anything, so you can load that directly into Dump mode and
select the ASM button to ask StrongED to interpret it as assembly
language, which will display the assembler instructions in one column
and the raw hex values (and ASCII equivalents) in another. The 0101
button will do the same, but displaying the raw values as binary rather
than hex.
e.g.
0000001C : E92D5FFE : ____ : STMDB R13!,{R1-R12,R14}
00000020 : E24FC024 : ____ : ADR R12,&00000004 ; ADR -> &00000004 00000024 : E28E704C : ____ : ADD R7,R14,#&4C ; ="L"
00000028 : E58C7010 : ____ : STR R7,[R12,#16]
0000002C : E1A0E00C : ____ : MOV R14,R12
00000030 : E59E0004 : ____ : LDR R0,[R14,#4]
00000034 : E5900000 : ____ : LDR R0,[R0,#0]
00000038 : E280C001 : ____ : ADD R12,R0,#1
0000003C : E08CA002 : ____ : ADD R10,R12,R2
00000040 : E59E0014 : ____ : LDR R0,[R14,#20]
00000044 : E590B000 : ____ : LDR R11,[R0,#0]
00000048 : E28BB001 : ____ : ADD R11,R11,#1
0000004C : E1A0600B : ____ : MOV R6,R11
(upper-bit-set characters in the third column blanked out in case it
messes up the formatting)
In the book 'Raspberry Pi Assembly Language RISC OS Beginners' von Bruce Smith I'M missing the links to the ARM machine code. I want to see the commands in hex or binary values and want to be able to calculate it by myself.
Is there another book or anything else you can recommend?
Alexander Ausserstorfer <bavariasound@chiemgau-net.de> wrote:
In the book 'Raspberry Pi Assembly Language RISC OS Beginners' von Bruce
Smith I'M missing the links to the ARM machine code. I want to see the
commands in hex or binary values and want to be able to calculate it by
myself.
Is there another book or anything else you can recommend?
Arm has documentation of the A32 instruction encoding, starting from
the most significant bits and drilling your way down:
Not all instructions are available on all CPUs, of course.
In article <buh*s+0-z@news.chiark.greenend.org.uk>,
Theo <theom+news@chiark.greenend.org.uk> wrote:
Alexander Ausserstorfer <bavariasound@chiemgau-net.de> wrote:
In the book 'Raspberry Pi Assembly Language RISC OS Beginners' von
Bruce Smith I'M missing the links to the ARM machine code. I want to
see the commands in hex or binary values and want to be able to
calculate it by myself.
Is there another book or anything else you can recommend?
Arm has documentation of the A32 instruction encoding, starting from
the most significant bits and drilling your way down:
...
Not all instructions are available on all CPUs, of course.
Many thanks! I was not able to see the pages at home, however. I
downloaded a PDF (8 MB) now elsewhere.
I begun to write an introduction
http://home.chiemgau-net.de/ausserstorfer/Temp/2022-05-26/Skript.pdf (5
kB)
in German for me to learn and teach myself. May be that I include the
new 8 bit home computer Mega65 from Trentz Elektronik there later as
well.
A.
An einem Sat, 07 Jun 2025 17:08:01 +0200 schrieb der Meister Alexander Ausserstorfer:
I begun to write an introduction
http://home.chiemgau-net.de/ausserstorfer/Temp/2022-05-26/Skript.pdf (5
kB)
in German for me to learn and teach myself. May be that I include the
new 8 bit home computer Mega65 from Trentz Elektronik there later as
well.
A.
The link doesn't work.
Sebastian Barthel <naitsabes@freenet.de> wrote:
The link doesn't work.
It's 2025 already. This works for me:
http://home.chiemgau-net.de/ausserstorfer/Temp/2025-05-26/Skript.pdf
Sebastian Barthel <naitsabes@freenet.de> wrote:
An einem Sat, 07 Jun 2025 17:08:01 +0200 schrieb der Meister Alexander
Ausserstorfer:
I begun to write an introduction
http://home.chiemgau-net.de/ausserstorfer/Temp/2022-05-26/Skript.pdf
(5 kB)
in German for me to learn and teach myself. May be that I include the
new 8 bit home computer Mega65 from Trentz Elektronik there later as
well.
A.
The link doesn't work.
It's 2025 already. This works for me: http://home.chiemgau-net.de/ausserstorfer/Temp/2025-05-26/Skript.pdf
In article <iKm*CnCeA@news.chiark.greenend.org.uk>,
Theo <theom+news@chiark.greenend.org.uk> wrote:
Sebastian Barthel <naitsabes@freenet.de> wrote:
The link doesn't work.
It's 2025 already. This works for me:
http://home.chiemgau-net.de/ausserstorfer/Temp/2025-05-26/Skript.pdf
Thanks, Theo. I will give it later another place on my web site.
It is to understand, that this is a working process. This means that it
may and may not include mistakes and errors. It is written down by
something who wants to know the stuff in an logical order what he was also missing in the past.
The first I will explore will be the PC (R15). I want to know the
structures of programs at the beginning. So the first command will be
MOV here. (On Mega65 it would be JMP I think).
Is there a program with which I can see the memory of any RISC OS
machine?
StrongEd can only display files, can't it?
In article <5c2cea6fccbavariasound@chiemgau-net.de>,
Alexander Ausserstorfer <bavariasound@chiemgau-net.de> wrote:
Is there a program with which I can see the memory of any RISC OS
machine?
There are commands *Memory, *MemoryA, and *MemoryI to display (and
even modify) memory in different formats.
StrongEd can only display files, can't it?
No - it can also display memory.
See Menu -> Create File -> Grab memory.
Different named areas, and in different formats.
In article <5c2cef85bdNews03@avisoft.f9.co.uk>,
Martin <News03@avisoft.f9.co.uk> wrote:
In article <5c2cea6fccbavariasound@chiemgau-net.de>,
Alexander Ausserstorfer <bavariasound@chiemgau-net.de> wrote:
Is there a program with which I can see the memory of any RISC OS
machine?
There are commands *Memory, *MemoryA, and *MemoryI to display (and
even modify) memory in different formats.
Thanks.
StrongEd can only display files, can't it?
No - it can also display memory.
See Menu -> Create File -> Grab memory.
Different named areas, and in different formats.
I couldn't find the menu entry.
When I click on iconbar ->
!StrongEd -> Menu -> Create -> Dump StrongEd offers me a window
with name Grab in the window title bar. Did you mean that?
In !Zap I can grab a are of memory as I wish.
In article <5c2f3eb0a5bavariasound@chiemgau-net.de>,
Alexander Ausserstorfer <bavariasound@chiemgau-net.de> wrote:
In article <5c2cef85bdNews03@avisoft.f9.co.uk>,
Martin <News03@avisoft.f9.co.uk> wrote:
In article <5c2cea6fccbavariasound@chiemgau-net.de>,
Alexander Ausserstorfer <bavariasound@chiemgau-net.de> wrote:
Is there a program with which I can see the memory of any RISC OS
machine?
There are commands *Memory, *MemoryA, and *MemoryI to display (and
even modify) memory in different formats.
Thanks.
StrongEd can only display files, can't it?
No - it can also display memory.
See Menu -> Create File -> Grab memory.
Different named areas, and in different formats.
I couldn't find the menu entry.
Which version of StrongEd are you using?
Here I am using v4.70a17 (31 May 2025)
When I click on iconbar ->
!StrongEd -> Menu -> Create -> Dump StrongEd offers me a window
with name Grab in the window title bar. Did you mean that?
If the Grab Memory window shows menu icons for ROM Module, RAM Module, Application, ROM Workspace, RAM Workspace and Dynamic Area, then
buttons for Zero Page, Empty Text, CMOS RAM, Close, then yes. If you
are using another version of SE it may be slightly different.
In !Zap I can grab a are of memory as I wish.
I don't think there is an equivalent of !Zap -> Create -> Read Memory
to specify addresses to dump, but that only reads from the specified
task - which is what selecting an application in SE does for the whole application slot.
I put it now here:
http://home.chiemgau-net.de/ausserstorfer/Computer/Kurs.pdf (27 kB)
In article <5c2cea6fccbavariasound@chiemgau-net.de>,
Alexander Ausserstorfer <bavariasound@chiemgau-net.de> wrote:
I put it now here:
http://home.chiemgau-net.de/ausserstorfer/Computer/Kurs.pdf (27 kB)
Because the old provider stopped the service, I put now everything to
https://ausserstorfer.4lima.de/Computer/index.html
(I'm afraid because of the s in the http but this service is for free.)
I have a question to (not finish yet) part 4 of the script.
For writing page four of part 4 I tried to call the SWI Hourglass_On by
GCC. I don't found out to do this. I think I have to make the name
first known to the GCC before calling it but how is to do this? I
already was be able to compile the mnemonic "swi 0x406C0" with GCC.
Assembler is complicate. Because you will need a tool to do that. And
Acorn Assembler (DDE) isn't GCC!
Thanks in advance,
Alex
For writing page four of part 4 I tried to call the SWI Hourglass_On by
GCC. I don't found out to do this. I think I have to make the name
first known to the GCC before calling it but how is to do this? I
already was be able to compile the mnemonic "swi 0x406C0" with GCC.
Assembler is complicate. Because you will need a tool to do that. And
Acorn Assembler (DDE) isn't GCC!
Bonjour Alex
Je ne connais pas suffisamment GCC surtout l'assembleur pour vous
ropondre.
Vous avez le DDE?
On 18/07/2026 14:11, Alexander Ausserstorfer wrote:
For writing page four of part 4 I tried to call the SWI Hourglass_On by
GCC. I don't found out to do this. I think I have to make the name
first known to the GCC before calling it but how is to do this? I
already was be able to compile the mnemonic "swi 0x406C0" with GCC.
Assembler is complicate. Because you will need a tool to do that. And
Acorn Assembler (DDE) isn't GCC!
Just use the OSLib C wrappers for all SWIs, no assembler needed.
In article <eca9b9fa5c.jmb@jmc.bruck.orange.fr>,Merci pour votre Frantais, mais sur la liste il vaut peut ntre mieux
Jean-Michel <jmc.bruck@orange.fr> wrote:
Bonjour Alex
Je ne connais pas suffisamment GCC surtout l'assembleur pour vous
ropondre.
Peut-ntre que OSlib marche avec l'assembleur du GCC. J'ai oublio ta.
Vous avez le DDE?
J'ai le DDE aussi, oui. Mais ce n'est pas une solution pour moi. Le but,
ce n'est pas faire du code pour faire un logiciel qui marche. Le but,
c'est a comprende le code du ARM, le GCC, le DDE et BASIC BBC, en comparasion. J'ocris sur cela qu'on peut trouver sur mes pages du web.
Je suis convaincu pour apprendre quelque chose il faut le faire la
premi*re fois + LA MAIN (ou marcher a pied). Veux dire a la premi*re
fois on ne doit pas utilisier un automatisme comme un compilateur ou
comme une auto. Et c'est pourquoi les gens aujourd'hui ne peuvent pas programmer convenablement.
Alex
Merci pour votre Frantais, mais sur la liste il vaut peut ntre mieux continuer en Anglais.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 74 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 47:44:20 |
| Calls: | 1,100 |
| Files: | 1,339 |
| Messages: | 275,630 |