Skip to content

Instantly share code, notes, and snippets.

@winocm
Created January 29, 2014 04:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save winocm/8681816 to your computer and use it in GitHub Desktop.
Save winocm/8681816 to your computer and use it in GitHub Desktop.
Mispy's assembly.
/* 0x00000000 */ 0x26000618, /* cpsid if, #0x13 */
/* 0x00000004 */ 0x0204202a, /* mov r1, #(0x10 << 8) */
/* 0x00000008 */ 0x0002206a, /* mov r3, #0x8 (.LmispWrite) */
/* .LmispWrite: */
/* 0x0000000C */ 0x0013600a, /* mov r0, #('M') */
/* 0x00000010 */ 0x021a6009, /* orr r0, #('i') << 08 */
/* 0x00000014 */ 0x041ce009, /* orr r0, #('s') << 16 */
/* 0x00000018 */ 0x061c2009, /* orr r0, #('p') << 24 */
/* 0x0000001C */ 0x02046027, /* cmp r1, #(0x11 << 8) */
/* 0x00000020 */ 0x20002217, /* strne r0, [r1, #0!] */
/* 0x00000024 */ 0x08000072, /* bxne r3 */
/* 0x00000028 */ 0x04001210, /* beq +4 */
/* 0x0000002C */ 0x03fff010, /* b . */
/* .LhappyBirthday */
/* 0x00000030 */ 0x00122089, /* orr r4, #('H') */
/* 0x00000034 */ 0x02186089, /* orr r4, #('a') << 8 */
/* 0x00000038 */ 0x041c2089, /* orr r4, #('p') << 16 */
/* 0x0000003C */ 0x061c2089, /* orr r4, #('p') << 24 */
/* 0x00000040 */ 0x001e60a9, /* orr r5, #('y') */
/* 0x00000044 */ 0x020820a9, /* orr r5, #(' ') << 8 */
/* 0x00000048 */ 0x0418a0a9, /* orr r5, #('b') << 16 */
/* 0x0000004C */ 0x061a60a9, /* orr r5, #('i') << 24 */
/* 0x00000050 */ 0x001ca0c9, /* orr r6, #('r') */
/* 0x00000054 */ 0x021d20c9, /* orr r6, #('t') << 8 */
/* 0x00000058 */ 0x041a20c9, /* orr r6, #('h') << 16 */
/* 0x0000005C */ 0x061920c9, /* orr r6, #('d') << 24 */
/* 0x00000060 */ 0x001860e9, /* orr r7, #('a') */
/* 0x00000064 */ 0x021e60e9, /* orr r7, #('y') << 8 */
/* 0x00000068 */ 0x040860e9, /* orr r7, #('!') << 16 */
/* 0x0000006C */ 0x0602a0e9, /* orr r7, #('\n') << 24 */
/* 0x00000070 */ 0x00002297, /* str r4, [r1, #0!] */
/* 0x00000074 */ 0x000022b7, /* str r5, [r1, #0!] */
/* 0x00000078 */ 0x000022d7, /* str r6, [r1, #0!] */
/* 0x0000007C */ 0x000022f7, /* str r7, [r1, #0!] */
/* 0x00000080 */ 0x001de0ea, /* mov r7, #('w') */
/* 0x00000084 */ 0x021a60e9, /* orr r7, #('i') << 8 */
/* 0x00000088 */ 0x041ba0e9, /* orr r7, #('n') << 16 */
/* 0x0000008C */ 0x061be0e9, /* orr r7, #('o') << 24 */
/* 0x00000090 */ 0x000022f7, /* str r7, [r1, #0!] */
/* 0x00000094 */ 0x03fff010, /* b . */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment