This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo: | |
ld.b $r0, ($r0) | |
ret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo: | |
ld.b $r0, ($r0) | |
ret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo: | |
ldi.l $r1, 24 | |
ld.b $r0, ($r0) | |
ashl $r0, $r1 | |
lshr $r0, $r1 | |
ret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unsigned int foo (unsigned char *c) | |
{ | |
return *c; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ moxie-elf-gdb -q hello.elf | |
Reading symbols from hello.elf...done. | |
(gdb) target remote /dev/ttyUSB0 | |
Remote debugging using /dev/ttyUSB0 | |
0x00000000 in ?? () | |
(gdb) load | |
Loading section .text, size 0x3410 lma 0x30050000 | |
Loading section .rodata, size 0x24 lma 0x30053410 | |
Loading section .data, size 0x83c lma 0x30053434 | |
Start address 0x30050000, load size 15472 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
helo |