asm started

This commit is contained in:
2024-09-27 18:36:11 -06:00
parent 95dc84024b
commit 0207a5c3df
14 changed files with 66 additions and 5 deletions
+33
View File
@@ -0,0 +1,33 @@
xtensa-esp32-elf-as --warn --fatal-warnings first.s -o first.o
xtensa-esp32-elf-objdump -d second.o
second.o: file format elf32-xtensa-le
Disassembly of section .text:
00000000 <_start>:
0: 000021 l32r a2, fffc0000 <_start+0xfffc0000>
3: 0002a0 jx a2
jx-addr.o: file format elf32-xtensa-le
Disassembly of section .text:
00000000 <_start>:
0: f03d nop.n
2: f03d nop.n
4: f03d nop.n
6: 000021 l32r a2, fffc0008 <_start+0xfffc0008>
9: 0002a0 jx a2
c: f03d nop.n
e: f03d nop.n
10: f03d nop.n
nop.n
\xF0\x3D
full sequence:
\xF0\x3D\xF0\x3D\xF0\x3D\x00\x00\x21\xF0\x3D\xF0\x3D\xF0\x3D
+2
View File
@@ -0,0 +1,2 @@
xtensa-esp32-elf-as --warn --fatal-warnings first.s -o first.o
xtensa-esp32-elf-objdump -d second.o
Binary file not shown.
+2
View File
@@ -0,0 +1,2 @@
_start:
j 400011a0
Binary file not shown.
+9
View File
@@ -0,0 +1,9 @@
_start:
nop
nop
nop
l32r a2, 400011a0
jx a2
nop
nop
nop
Binary file not shown.
Binary file not shown.
+9
View File
@@ -0,0 +1,9 @@
second.o: file format elf32-xtensa-le
Disassembly of section .text:
00000000 <_start>:
0: 000021 l32r a2, fffc0000 <_start+0xfffc0000>
3: 0002a0 jx a2
+3
View File
@@ -0,0 +1,3 @@
_start:
l32r a2, 400011a0
jx a2
+3
View File
@@ -0,0 +1,3 @@
_start:
l32r a2, 400011a0
jx a2