; *************************************************************************** ; *************************************************************************** ; ; pceas.inc ; ; Helpful macros for using PCEAS for assembly-language development. ; ; Distributed under the Boost Software License, Version 1.0. ; (See accompanying file LICENSE_1_0.txt or copy at ; http://www.boost.org/LICENSE_1_0.txt) ; ; *************************************************************************** ; *************************************************************************** ; ; PCEAS sets "CDROM" to one of these values, or to 0 for HuCARD. ; STANDARD_CD = 1 SUPER_CD = 2 ; ; Define names for macro argument types (\?x). ; ARG_NONE = 0 ARG_REG = 1 ARG_IMMED = 2 ARG_ABS = 3 ARG_ABSOLUTE = 3 ARG_INDIRECT = 4 ARG_STRING = 5 ARG_LABEL = 6 ; ; Function to map an address into MPR3. ; mpr3 .func ($6000 + ($1FFF & (\1))) ; ; Macro to shadow VDC_AR writes because the register is write-only. ; ; Any writes to the VDC_AR register in an IRQ routine should be restored ; using this zero-page shadow. ; vreg .macro lda \1 sta