1234567891011121314151617181920212223242526272829303132333435 |
- /*
- * Generic mapper implementation - The TI-NESulator Project
- * genericmapper.h
- *
- * Created by Manoel TRAPIER.
- * Copyright (c) 2003-2008 986Corp. All rights reserved.
- *
- * $LastChangedDate$
- * $Author$
- * $HeadURL$
- * $Revision$
- *
- */
-
- int _InitMapper(NesCart * cart)
- {
-
- set_prom_bank_16k(0xC000,0);
- set_prom_bank_16k(0x8000,-1);
-
- return 0;
-
- }
- int _MapperWriteHook(register word Addr, register byte Value)
- {
-
- if (Addr > 0x7FFF) /* Try to write to the rom */
- {
- set_vrom_bank_8k(0x0000,Value)
-
- return 1;
- }
- return 0;
- }
|