Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

There is no other programming...

Name: Anonymous 2009-07-20 17:20

than FUNCTIONAL PROGRAMMING!

Name: Anonymous 2009-07-20 17:36

>>1 IS RIGHT! TRY WRITING A PROGRAM (NOT TOY) THAT DOESN'T MAKE USE OF AT LEAST ONE FUNCTION!

Name: Anonymous 2009-07-20 17:43

>>2
section .data
    msg: db 'Hello, world!',10
    msgL: equ $-msg

section .text
    global _start

_start:
    mov rax,1
    mov rdi,1
    mov rsi,msg
    mov rdx,msgL
    syscall

    mov rax,60
    mov rdi,0
    syscall


What now, fucker?

Name: Anonymous 2009-07-20 17:48

>>3
syscall

Name: Anonymous 2009-07-20 18:06

>>4
But that's not a function, it's a procedure.

Name: Anonymous 2009-07-20 18:08

>>4
That's an instruction.
Alternatively:
section .data
    msg: db 'Hello, world!',10
    msgL: equ $-msg

section .text
    global _start

_start:
    mov eax,4
    mov ebx,1
    mov edx,msg
    mov ecx,msgL
    int 80h

    mov eax,1
    mov ebx,0
    int 80h

Name: Anonymous 2009-07-20 18:48

Name: Anonymous 2009-07-20 18:49

Those interrupts and syscalls do invoke some code which ends up executing a handler and returning a value, thus it is a function

Name: Anonymous 2009-07-21 0:44

>>1
U MENA HASKAL?

Name: Anonymous 2010-12-24 9:42

Name: Anonymous 2011-01-31 21:09

<-- check em dubz

Name: tray 2012-03-14 15:49

you better be

Name: Anonymous 2013-09-01 10:17



                    .|
      _,,....  __ _          |  ご  温
    ,. '" ,.ィ二7___!_`r-、.       |  
  ., ' /7'´   `   `!-ゝ_    |  ざ  州
  i   !/  /  ハ i    `ヽ!.   .|  
  i  /! ./ /-/-! ハ__ i !.    |  い  蜜
  ノイ レイ /,.-=、 !/ レ'iハ ,ゝ   | 
  i   ノ iイ"     . ´`!イ´    |  ま  柑
 ノ   !ハYト、.  、__ , "ハ〉   ∠
.〈r、  /ゝ- 、!>.、 __,,.インi      !.  す  で
  !ヘレ'/   `ヽ7ヽ!ヽ.Y)ヽ〉     ヽ、____________
    ,!     〉:ム:::}><{
へ___/!ゝk'-‐ヘ':::!_ハ」i_!ヘ!、
「 /::::::::`ヽ.  ヽ、:イ-ヽ.. ヽ. ,.- 、___,.--、
kヽ/:::::::::::::::::>、.  ヽ、__.ヽ、_,.'--'、: : ヽ-:、)、
:::`>、_二ゝ、ニr-'ヽ、   r'二 ̄ ̄ ̄ ̄ ̄ ̄フ
::/:::::::::!Y  r‐─‐'‐`'ー--‐'´ ̄ ̄ ̄ ̄ ̄ ̄
/::::::::::::)(   \ 
::::::/::::::Y)   ',|ヽ二二二二二二二二二二二

Don't change these.
Name: Email:
Entire Thread Thread List