68 lines
1.4 KiB
Plaintext
68 lines
1.4 KiB
Plaintext
;Copyright (C) 1997-2005 ZSNES Team ( zsKnight, _Demo_, pagefault, Nach )
|
|
;
|
|
;http://www.zsnes.com
|
|
;http://sourceforge.net/projects/zsnes
|
|
;
|
|
;This program is free software; you can redistribute it and/or
|
|
;modify it under the terms of the GNU General Public License
|
|
;as published by the Free Software Foundation; either
|
|
;version 2 of the License, or (at your option) any later
|
|
;version.
|
|
;
|
|
;This program is distributed in the hope that it will be useful,
|
|
;but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
;GNU General Public License for more details.
|
|
;
|
|
;You should have received a copy of the GNU General Public License
|
|
;along with this program; if not, write to the Free Software
|
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
bits 32
|
|
section .text
|
|
; Zsnes required macros
|
|
|
|
%define ZVERSION 'Pre 1.43'
|
|
|
|
%ifdef ELF
|
|
|
|
%imacro newsym 1
|
|
GLOBAL %1
|
|
%1:
|
|
%endmacro
|
|
%imacro newsym 2+
|
|
GLOBAL %1
|
|
%1: %2
|
|
%endmacro
|
|
%define EXTSYM EXTERN
|
|
|
|
%else
|
|
|
|
%imacro newsym 1
|
|
GLOBAL _%1
|
|
_%1:
|
|
%1:
|
|
%endmacro
|
|
%imacro newsym 2+
|
|
GLOBAL _%1
|
|
_%1:
|
|
%1: %2
|
|
%endmacro
|
|
%imacro EXTSYM 1-*
|
|
%rep %0
|
|
EXTERN _%1
|
|
%define %1 _%1
|
|
%rotate 1
|
|
%endrep
|
|
%endmacro
|
|
%endif
|
|
|
|
%macro ALIGN32 0
|
|
times ($$-$) & 1Fh nop ; Long word alignment
|
|
%endmacro
|
|
%macro ALIGN16 0
|
|
times ($$-$) & 1Fh nop ; Long word alignment
|
|
%endmacro
|