*---------------------------------------------------------------------* * File Name: io.mac * * Copyright (c) 1994 Sega of America, Inc. All Rights Reserved. * * Author(s): Unni Pillai * Date: 07-05-94 * Description: macros used by the md side IO proccessing routines * * History: * NOTE * These macros are based on macros from LOGODEMO, written by * Andy Onions of RealTime Software. *---------------------------------------------------------------------* TESTHELD macro tst.b KeyTab1+\1*2 ;see if a pad button is currently pressed endm TESTHIT macro bclr.b #0,KeyTab1+\1*2+1 ;see if a pad button has been pressed (since last time) endm CLEARHIT macro sf KeyTab1+\1*2+1 ;flag joystick button has not been pressed endm