Created
March 6, 2018 17:18
-
-
Save bennofs/cfc8fefde4299f52d324f864a3f9e810 to your computer and use it in GitHub Desktop.
r2 testcase
This file contains hidden or 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
This file contains hidden or 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
[36m [0m[32m0x00000260[0m [37m80[37me0[0m [35mldi[36m r24[0m,[36m[36m [33m0x00[0m[0m[31m ; 0x276[31m ; "hello world!"[0m |
This file contains hidden or 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
void do_it(char* str) { | |
} | |
int main() { | |
do_it("hello world!"); | |
} |
This file contains hidden or 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
:100000000C94FE000C941C010C941C010C941C011B | |
:100010000C941C010C941C010C941C010C941C01EC | |
:100020000C941C010C941C010C941C010C941C01DC | |
:100030000C941C010C941C010C941C010C941C01CC | |
:100040000C941C010C941C010C941C010C941C01BC | |
:100050000C941C010C941C010C941C010C941C01AC | |
:100060000C941C010C941C010C941C010C941C019C | |
:100070000C941C010C941C010C941C010C941C018C | |
:100080000C941C010C941C010C941C010C941C017C | |
:100090000C941C010C941C010C941C010C941C016C | |
:1000A0000C941C010C941C010C941C010C941C015C | |
:1000B0000C941C010C941C010C941C010C941C014C | |
:1000C0000C941C010C941C010C941C010C941C013C | |
:1000D0000C941C010C941C010C941C010C941C012C | |
:1000E0000C941C010C941C010C941C010C941C011C | |
:1000F0000C941C010C941C010C941C010C941C010C | |
:100100000C941C010C941C010C941C010C941C01FB | |
:100110000C941C010C941C010C941C010C941C01EB | |
:100120000C941C010C941C010C941C010C941C01DB | |
:100130000C941C010C941C010C941C010C941C01CB | |
:100140000C941C010C941C010C941C010C941C01BB | |
:100150000C941C010C941C010C941C010C941C01AB | |
:100160000C941C010C941C010C941C010C941C019B | |
:100170000C941C010C941C010C941C010C941C018B | |
:100180000C941C010C941C010C941C010C941C017B | |
:100190000C941C010C941C010C941C010C941C016B | |
:1001A0000C941C010C941C010C941C010C941C015B | |
:1001B0000C941C010C941C010C941C010C941C014B | |
:1001C0000C941C010C941C010C941C010C941C013B | |
:1001D0000C941C010C941C010C941C010C941C012B | |
:1001E0000C941C010C941C010C941C010C941C011B | |
:1001F0000C941C010C941C010C941C0111241FBEB6 | |
:10020000CFEFCDBFDFE3DEBF00E00CBF18BE19BEED | |
:100210001ABE1BBE10E2A0E0B0E2E6E7F2E000E0AA | |
:100220000BBF02C007900D92AE30B107D9F71BBECD | |
:100230000E942C010C9439010C940000CF93DF93A1 | |
:100240001F921F92CDB7DEB789839A8300000F906B | |
:100250000F90DF91CF910895CF93DF93CDB7DEB7A5 | |
:1002600080E090E20E941E0180E090E0DF91CF915B | |
:060270000895F894FFCF91 | |
:0E02760068656C6C6F20776F726C64210000FD | |
:00000001FF |
This file contains hidden or 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
MCU=atxmega128a4u | |
CC=avr-gcc | |
OBJCOPY=avr-objcopy | |
CFLAGS+=-DF_CPU=16000000UL -mmcu=$(MCU) -Wall | |
OBJECTS=main.o | |
all: main.elf main.hex main.bin | |
main.elf: $(OBJECTS) | |
$(CC) -mmcu=$(MCU) -o "$@" $(OBJECTS) | |
%.hex: %.elf | |
$(OBJCOPY) -j .text -j .data -O ihex "$<" "$@" | |
%.bin: %.hex | |
$(OBJCOPY) -I ihex -O binary "$<" "$@" | |
.PHONY: clean | |
clean: | |
rm -f $(OBJECTS) main.elf main.hex main.bin |
This file contains hidden or 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
f str.hello 12 @ 0x276 | |
Csa 12 @ str.hello | |
axd str.hello @ 0x260 | |
pd 1 @ 0x260 |
This file contains hidden or 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
- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment