A low-level programming language providing symbolic representation of machine code.
Questions tagged [assembly]
34 questions
5
votes
1 answer
How do I read the cpuid in aarch64 asm?
In armv7 / 32bit mode I can read the cpuid using
uint32_t arm_cpuid;
__asm__("mrc p15, 0, %0, c0, c0, 0" : "=r"(arm_cpuid));
This gives 0x410FD034 for RPi3 and 0x410FD083 for RPi4.
What is the equivalent for that in aarch64 / armv8…
Goswin von Brederlow
- 441
- 2
- 11
3
votes
1 answer
Disassemble i386 in Raspbian?
I want to disassemble i386 machine instructions into human readable text in Raspbian.
I am a rookie Linux user and don't know the configuration of installed tools, but from what I understand I need an architecture for i386 for objdump.
objdump -D…
Statement
- 203
- 1
- 10
3
votes
1 answer
ASM - how do I write graphics straight to the screen
I have some old RISC OS assembly programmes I wrote a few years back and I want to port them to Raspberry Pi.
I ran Mode 28 and wrote output directly to the screen using the memory address where v-ram started -- i.e., I didn't use an SWI call.
Is…
JohnB
- 51
- 1
3
votes
3 answers
Assembly code on Raspberry Pi
What's the file extension for assembly code? Can it even be written by a text editor?
My plan was to use nano to write the program (for syntax highlighting), so would that work? If not, what do I need to use?
Can you even compile ARM assembly code?
Beta Decay
- 400
- 4
- 14
1
vote
2 answers
Is there a program to execute assembly code and check registers?
In our university we have a computer's technology subject in which we have to program in ARM's assembly language.
We have the chance to use a simulator but I was wondering if I was able to execute them in my own Raspberry Pi and to check how the…
Santiago
- 13
- 5