Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Generated from examples/pangram.rsm
- section_DATA:
- .data
- someString db "This is a string."
- dd 10070783
- .skip 256
- somePointer dd !
- section_DATA_end:
- section_TEXT:
- .text
- anotherValue dw 42
- sub_nocall:
- int 0x80
- mov ax, bx
- ; IF AT : 30
- branch_begin_30:
- ; Branch here is always true.
- branch_code_30:
- cli
- branch_after_30:
- ; IF END : 30
- int 42
- mov [eax], ebx
- mov ebx, [dx + 4]
- ; LOOP AT : 42
- int 0x00
- ; LOOP AT : 48
- add ax, bx
- push ax
- pop bx
- ret
- sub_nocall_end:
- .size nocall, . - nocall
- sub_cdeclconv:
- pop bx
- ; IF AT : 65
- branch_begin_65:
- cmp edx, 5
- jle branch_code_65
- jmp branch_after_65
- branch_code_65:
- add [esi], 5
- branch_after_65:
- ; IF END : 65
- ret
- sub_cdeclconv_end:
- .size cdeclconv, . - cdeclconv
- sub_subwithargs:
- ; LOOP AT : 76
- inc integer
- ret
- sub_subwithargs_end:
- .size subwithargs, . - subwithargs
- section_TEXT_end:
- .ident "RapidASM-compiler"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement