Username
Password
login
register
Tweet
new code
recent codes
news
samples
help
about
FAQ
API
Computer geeks!
RecruitCoders.com
choose language
Ada
Assembler
Assembler
AWK (gawk)
AWK (mawk)
Bash
bc
Brainf**k
C
C#
C++
C++0x
C99 strict
CLIPS
Clojure
COBOL
COBOL 85
Common Lisp (clisp)
D (dmd)
Erlang
F#
Factor
Falcon
Forth
Fortran
Go
Groovy
Haskell
Icon
Intercal
Java
JavaScript (rhino)
JavaScript (spidermonkey)
Lua
Nemerle
Nice
Nimrod
Objective-C
Ocaml
Oz
Pascal (fpc)
Pascal (gpc)
Perl
Perl 6
PHP
Pike
Prolog (gnu)
Prolog (swi)
Python
Python 3
R
Ruby
Scala
Scheme (guile)
Smalltalk
SQL
Tcl
Text
Unlambda
VB.NET
Whitespace
run code
private
5s
15s
enter your source code
or
insert
template
or
sample
or
your template
Would you like to manage your submissions?
Sign up
now.
global _start section .data buffer dw 0h section .text _start: mov ecx, buffer mov edx, 02h call read mov cx, word [buffer] cmp cx, 3234h je exit cmp ch, 0ah je one_dig jmp two_dig one_dig: mov ecx, buffer mov edx, 02h call write jmp _start two_dig: mov ecx, buffer mov edx, 02h call write mov edx, 01h mov ecx, buffer call read ; read the 0ah mov ecx, buffer call write ; write the 0ah jmp _start exit: mov eax, 01h ; exit() xor ebx, ebx ; errno int 80h read: mov eax, 03h ; read() mov ebx, 00h ; stdin int 80h ret write: mov eax, 04h ; write() mov ebx, 01h ; stdout int 80h ret
click here to enter input (stdin) or additional note
syntax highlight
What is ideone?
Ideone is something more than a pastebin; it's an online compiler and debugging tool which allows
to compile and run code online in more than 40 programming languages.
How to use ideone?
Choose a programming language, enter your source code and input data into text boxes. Then check or uncheck
run code
(whether to execute your program) and
private
(whether not to list your code in the
recent codes
page) checkboxes, click the submit button and watch your snippet being executed.
Having problems?
Check the
samples
to see how to write a properly working code. To find out more, see the
help
section or the
FAQ
page.
enter your input (stdin)
1 2 10 42 11
enter your note
This web site requires JavaScript
Choose your language:
English
Hindi
Hungarian
Mongolian
Polish
Russian
Spanish
Traditional Chinese
Help us translate Ideone -
click here