Advertisement
Guest User

Untitled

a guest
Oct 16th, 2015
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.49 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.     <head>
  4.    
  5.         <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
  6.         <meta content="utf-8" http-equiv="encoding">
  7.        
  8.         <title>...</title>
  9.        
  10.         <style type="text/css" media="screen">
  11.             #editor {
  12.                 position: absolute;
  13.                 top: 0;
  14.                 right: 0;
  15.                 bottom: 0;
  16.                 left: 0;
  17.             }
  18.         </style>
  19.        
  20.         <script src="scripts/lib/require.js"></script>
  21.         <script>
  22.        
  23.             var ace_root = "scripts/lib/bower_components/ace/lib/ace/";
  24.            
  25.             require.config({
  26.                 baseUrl: window.location.protocol + "//" + window.location.host
  27.                     + window.location.pathname.split("/").slice(0, -1).join("/"),
  28.  
  29.                 paths: {
  30.                     ace: ace_root
  31.                 }
  32.             });
  33.  
  34.             require(["ace/ace"], function (ace) {
  35.                 var editor = ace.edit("editor");
  36.                 editor.setTheme(ace_root + "theme/tomorrow_night_bright");
  37.                 editor.getSession().setMode(ace_root + "mode/assembly_x86");
  38.             });
  39.         </script>
  40.     </head>
  41.     <body>
  42.         <div id="editor">
  43. section .text
  44.     global main         ;must be declared for using gcc
  45.  
  46. main:                   ;tell linker entry point
  47.  
  48.     mov edx, len        ;message length
  49.     mov ecx, msg        ;message to write
  50.     mov ebx, 1          ;file descriptor (stdout)
  51.     mov eax, 4          ;system call number (sys_write)
  52.     int 0x80            ;call kernel
  53.  
  54.     mov eax, 1          ;system call number (sys_exit)
  55.     int 0x80            ;call kernel
  56.  
  57. section .data
  58.  
  59. msg db  'Hello, world!',0xa ;our dear string
  60. len equ $ - msg         ;length of our dear string
  61.         </div>
  62.     </body>
  63. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement