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
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 <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).
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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 01:07:12 |
Calls: | 10,387 |
Calls today: | 2 |
Files: | 14,061 |
Messages: | 6,416,725 |