Mercurial > lcfOS
view util/test_patterns.txt @ 374:72a3b646d543
Added if statement sample
author | Windel Bouwman |
---|---|
date | Fri, 21 Mar 2014 15:27:18 +0100 |
parents | 98ff43cfdd36 |
children | 19eacf4f7270 |
line wrap: on
line source
mov r4, #100 === mov sp, #0x6000 === mov r3, sp mov pc, lr mov pc, r2 mov sp, r4 mov r5, r6 === yield === push {r11,r5,r4,lr} === pop {r4,r5,r6} === sub r4,r5,#23 blt x x: mul r4,r5,r2 === str r9, [r2, #33] === ldr r5, [r3, #87] === ldr r5, lab1 ldr r11, lab1 ldr r10, lab1 lab1: .word 0x12345566 === cmp r4, r11 cmp r5, #0x50000 === adr r5, cval adr r9, cval adr r8, cval cval: adr r11, cval adr r12, cval adr r1, cval pop {r2} === adr r3, pc, #1024 === lsl r11, r5, r3 lsl r4, r8, r6 === lsr r9, r0, r2 lsr r4, r8, r6 === and r9, r0, r2 and r4, r8, r6 === mcr p15, 0, r1, c2, c0, 0 mcr p14, 0, r1, c8, c7, 0 === mrc p15, 0, r1, c2, c0, 0 mrc p14, 0, r1, c8, c7, 0 === ; mov sp, =a ; a: ; .word 0