Advertisement
Treyzania

examples/pangram.rsm (RapidASM-compiler @ be3d423)

Mar 20th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Generated from examples/pangram.rsm
  2.  
  3. section_DATA:
  4.     .data
  5.    
  6.     someString db "This is a string."
  7.     dd 10070783
  8.     .skip 256
  9.     somePointer dd !
  10. section_DATA_end:
  11.    
  12. section_TEXT:
  13.     .text
  14.    
  15.     anotherValue dw 42
  16. sub_nocall:
  17.    
  18.     int 0x80
  19.     mov ax, bx
  20.    
  21.     ; IF AT : 30
  22. branch_begin_30:
  23.     ; Branch here is always true.
  24. branch_code_30:
  25.     cli
  26. branch_after_30:
  27.     ; IF END : 30
  28.    
  29.     int 42
  30.     mov [eax], ebx
  31.     mov ebx, [dx + 4]
  32.     ; LOOP AT : 42
  33.     int 0x00
  34.     ; LOOP AT : 48
  35.     add ax, bx
  36.     push ax
  37.     pop bx
  38.     ret
  39.    
  40. sub_nocall_end:
  41.     .size nocall, . - nocall
  42.    
  43. sub_cdeclconv:
  44.    
  45.     pop bx
  46.    
  47.     ; IF AT : 65
  48. branch_begin_65:
  49.     cmp edx, 5
  50.     jle branch_code_65
  51.     jmp branch_after_65
  52. branch_code_65:
  53.     add [esi], 5
  54. branch_after_65:
  55.     ; IF END : 65
  56.    
  57.     ret
  58.    
  59. sub_cdeclconv_end:
  60.     .size cdeclconv, . - cdeclconv
  61.    
  62. sub_subwithargs:
  63.    
  64.     ; LOOP AT : 76
  65.     inc integer
  66.     ret
  67.    
  68. sub_subwithargs_end:
  69.     .size subwithargs, . - subwithargs
  70.    
  71. section_TEXT_end:
  72.     .ident "RapidASM-compiler"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement