Created
October 11, 2012 22:28
-
-
Save jmgrosen/3875942 to your computer and use it in GitHub Desktop.
Display DASM code
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
| ; .file "main.c" | |
| .text | |
| .globl main | |
| ; .align 1 | |
| :main | |
| SET PUSH, Y | |
| SET PUSH, X | |
| SUB SP, 0x1 | |
| SET X, 0x0 | |
| SET Y, X | |
| SET PC, .LBB0_1 | |
| :.LBB0_2 | |
| SET Y, C | |
| ADD Y, 0x1 | |
| SET A, Y | |
| SHL A, 0xc | |
| SET PEEK, A | |
| SET A, .L.str | |
| SET B, 0x0 | |
| JSR puts_mod | |
| :.LBB0_1 | |
| SET C, Y | |
| SET Y, X | |
| IFA C, 0xb | |
| SET PC, .LBB0_1 | |
| SET PC, .LBB0_2 | |
| .data | |
| :.L.str | |
| .short 72 | |
| .short 101 | |
| .short 108 | |
| .short 108 | |
| .short 111 | |
| .short 32 | |
| .short 119 | |
| .short 111 | |
| .short 114 | |
| .short 108 | |
| .short 100 | |
| .short 0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment