progs/example1b.s
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Mon, 05 Oct 2015 20:42:11 +0100
changeset 395 60f64793266f
child 396 2f4296a0ab21
permissions -rw-r--r--
added assembly programs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
395
60f64793266f added assembly programs
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     1
_foo:   
60f64793266f added assembly programs
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     2
  push    %ebp
60f64793266f added assembly programs
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     3
  mov     %esp,%ebp
60f64793266f added assembly programs
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     4
  sub     $0x10,%esp
60f64793266f added assembly programs
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     5
  movl    $0x64636261,-0x6(%ebp)
60f64793266f added assembly programs
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     6
  movw    $0x65,-0x2(%ebp)
60f64793266f added assembly programs
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     7
  movl    $0x34333231,-0x10(%ebp)
60f64793266f added assembly programs
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     8
  movl    $0x38373635,-0xc(%ebp)
60f64793266f added assembly programs
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     9
  movw    $0x39,-0x8(%ebp)
60f64793266f added assembly programs
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    10
  leave
60f64793266f added assembly programs
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    11
  ret