Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
tarea1
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
;nasm 2.13.02 ;------------------------------------------ ; int slen(String message) ; String length calculation function slen: push ebx mov ebx, eax nextchar: cmp byte [eax], 0 jz finished inc eax jmp nextchar finished: sub eax, ebx pop ebx ret ;------------------------------------------ ; void sprint(String message) ; String printing function sprint: push edx push ecx push ebx push eax call slen mov edx, eax pop eax mov ecx, eax mov ebx, 1 mov eax, 4 int 80h pop ebx pop ecx pop edx ret ;------------------------------------------ ; void exit() ; Exit program and restore resources quit: mov ebx, 0 mov eax, 1 int 80h ret
Show compiler warnings
[
+
]
Show input
edit mode
|
history
|
discussion