Skip to content
Snippets Groups Projects
Select Git revision
  • sugoi-2
  • Sugoi-2
  • SRB2_Discord
  • SRB2-Stuff
  • patch-refactor
  • delfile2
  • fruits-clipper
  • improve-download-refuse-message
  • kill-hud-feetoffset
  • raise-side-limits
  • next default protected
  • renderhitbox-nightsitems
  • any-resolution
  • udmf-nophysicsequation
  • master
  • sector-portals
  • 2213
  • 2_2_12
  • maretimers
  • quick-intro
  • SRB2_release_2.2.13
  • SRB2_release_2.2.12
  • SRB2_release_2.2.11
  • SRB2_release_2.2.10
  • SRB2_release_2.2.9
  • SRB2_release_2.2.8
  • SRB2_release_2.2.7
  • SRB2_release_2.2.6
  • SRB2_release_2.2.5
  • SRB2_release_2.2.4
  • SRB2_release_2.2.3
  • SRB2_release_2.2.2
  • SRB2_release_2.2.1
  • SRB2_release_2.2.0
  • SRB2_release_2.1.25
  • SRB2_release_2.1.24
  • SRB2_release_2.1.23
  • SRB2_release_2.1.22
  • SRB2_release_2.1.21
  • SRB2_release_2.1.20
40 results

asm_defs.inc

Blame
  • Forked from STJr / SRB2
    4995 commits behind, 5 commits ahead of the upstream repository.
    asm_defs.inc 1.45 KiB
    // SONIC ROBO BLAST 2
    //-----------------------------------------------------------------------------
    // Copyright (C) 1998-2000 by DooM Legacy Team.
    // Copyright (C) 1999-2020 by Sonic Team Junior.
    //
    // This program is free software distributed under the
    // terms of the GNU General Public License, version 2.
    // See the 'LICENSE' file for more details.
    //-----------------------------------------------------------------------------
    /// \file  asm_defs.inc
    /// \brief must match the C structures
    
    #ifndef __ASM_DEFS__
    #define __ASM_DEFS__
    
    // this makes variables more noticable,
    // and make the label match with C code
    
    // Linux, unlike DOS, has no "_" 19990119 by Kin
    // and nasm needs .data code segs under linux 20010210 by metzgermeister
    // FIXME: nasm ignores these settings, so I put the macros into the makefile
    #ifdef __ELF__
    #define C(label) label
    #define CODE_SEG .data
    #else
    #define C(label) _##label
    #define CODE_SEG .text
    #endif
    
    /* This is a more readable way to access the arguments passed from C code   */
    /* PLEASE NOTE: it is supposed that all arguments passed from C code are    */
    /*              32bit integer (INT32, long, and most *pointers)               */
    #define ARG1      8(%ebp)
    #define ARG2      12(%ebp)
    #define ARG3      16(%ebp)
    #define ARG4      20(%ebp)
    #define ARG5      24(%ebp)
    #define ARG6      28(%ebp)
    #define ARG7      32(%ebp)
    #define ARG8      36(%ebp)
    #define ARG9      40(%ebp)      //(c)tm ... Allegro by Shawn Hargreaves.
    
    #endif