*---------------------------------------------------------------------- * File Name: mdcon.mac * * Copyright (c) 1994 Sega of America, Inc. All Rights Reserved. * BASED ON MACROS FOUND IN ANDY ONIONS demo LOGODEMO * * Author(s): Andy Onions * Date: 6-16-94 * Description: Contains general macros used by console routine * * History: *---------------------------------------------------------------------* ************************************************************************* * MACROS FOR CONSOLE ROUTINE * ************************************************************************* ALIGNODD macro ;to align PC to odd boundary ifeq (*-lbeven)&1 dc.b 1 endc endm C_STOP macro ;to tell console to stop ALIGNODD dc.b 0 endm C_SCR macro ;to set console active screen ALIGNODD dc.b 2 dc.w \1 endm C_POS macro ;to set console x and y positions dc.b 3,\1,\2 endm C_ATTR macro ;to set console character attribute ALIGNODD dc.b 4 dc.w \1 endm C_CALL macro ;to call code from console ALIGNODD dc.b 5 dc.l \1 endm