⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 misaligned2.ms

📁 gdb-6.8 Linux下的调试程序 最新版本
💻 MS
字号:
# Test LDR instructions with offsets misaligned by 2 bytes. # mach(): all	.macro invalid# This is "undefined" but it's not properly decoded yet.	.word 0x07ffffff# This is stc which isn't recognized yet.	stc 0,cr0,[r0]	.endm	.global _start_start:# Run some simple insns to confirm the engine is at least working.	nop# Skip over output text.	bl do_testpass:	.asciz "pass\n"	.p2align 2do_test:	mov r4, r14	bl continueword1:	.word 0x5555continue:	ldr r6, [r14, #2]	ldr r7, word2	cmp r6, r7	# Failed.	bne doneoutput_next:# Output a character (in arm mode).	mov r0,#3	mov r1,r4	swi #0x123456# Load next character, see if done.	add r4,r4,#1	sub r3,r3,r3	ldrb r5,[r4,r3]	teq r5,#0	bne output_nextdone:	mov r0,#0x18	ldr r1,exit_code	swi #0x123456# If that fails, try to die with an invalid insn.	invalidexit_code:	.word 0x20026word2:	.word 0x55550000

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -