• Jump To … +
    cnibbles.c nibbles.S start.S
  • start.S

  • ¶
    .text
  • ¶

    _start

  • ¶

    The _start symbol. Calls start_game with “reasonable parameters”.

    .global _start
    _start:
  • ¶

    n_apples

    	pushl $10
  • ¶

    len

    	pushl $3
  • ¶

    start_game(int len, int n_apples)

    	call start_game
    	addl $4*2, %esp
  • ¶

    Exit cleanly with an exit code of 0

    	pushl $0
    	call _exit