;**************************************************************** ; MARS Check Program ; SH2 Constant & Macro ; ; Copyright SEGA ENTERPRISES,LTD. 1994 ; SEGA ENTERPRISES,LTD. ; CS Hardware R&D Dept. ; T.Okawa ;---------------------------------------------------------------* ; ;**************************************************************** .radix D ;---------------------------------------------------------------* ; Register Name workbase: .reg (r14) flugbase: .reg (r13) vdpreg: .reg (r12) ;---------------------------------------------------------------* ; Assemble Switch ;---------------------------------------------------------------* BOARDVERSION: .assignc "2.0" ;---------------------------------------------------------------* ; Constants ;---------------------------------------------------------------* ;---------------------------------------------------------------* ; MACRO ;---------------------------------------------------------------* ;--------------------------------------- ; PUSH ;--------------------------------------- .macro push from=0,to=14 mov.l r\from,@-r15 count0 .assigna \from+1 .awhile \&count0 le \to mov.l r\&count0,@-r15 count0 .assigna \&count0+1 .aendw .endm ;--------------------------------------- ; POP ;--------------------------------------- .macro pop from=0,to=14 mov.l @r15+,r\to count1 .assigna \to-1 .awhile \&count1 ge \from mov.l @r15+,r\&count1 count1 .assigna \&count1-1 .aendw .endm ;**************************************************************** ; end of file ;****************************************************************