Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sega_Channel_Demo_Cart_1-Sega_Channel-globals.c
- /****************************************************************************
- * *
- * Project: SEGA CHANNEL *
- * *
- * Module: GLOBALS.C *
- * *
- * Module Creation Date: October 1993 *
- * *
- * Author: J. Fort *
- * *
- * Development System: Sierra C 3.0 *
- * *
- * Copyright (c)1993 Pacific SoftScape Inc. *
- * *
- ****************************************************************************/
- #include <stdio.h>
- #include "genesis.h"
- #include "actor.h"
- #include "objeng.h"
- const INIT_REGISTERS ResetRegisters =
- {
- 0x06, /* ModeSet1: disable H int, stop H&V ctrs */
- 0x64, /* ModeSet2: enable display, enable V int */
- 0x30, /* PatternBaseAddrA: @ $C000 */
- 0x30, /* PatternBaseAddrW: @ $C000 */
- 0x07, /* PatternBaseAddrB: @ $e000 */
- 0x5e, /* SatBaseAddr: @ $bc00 */
- 0x00, /* BkColor: color zero */
- 0x00, /* HInt: */
- #ifdef _DEBUG
- 0x08, /* ModeSet3: enable ext int, full scroll */
- #else
- 0x08, /* ModeSet3: full scroll */
- #endif
- 0x81, /* ModeSet4: h 40 cell mode */
- 0x00, /* HScrollAddr: @ $0000 */
- 0x02, /* AutoIncrement: 2 */
- 0x11, /* ScrollSize: 64 x 64 maps */
- 0x00, /* WindowHpos: */
- 0x00, /* WindowVpos: */
- };
- /***************************************************************************
- FUNCTION: Stub -- do nothing
- DESCRIPTION: .
- RETURNS: .
- PARAMETERS: .
- SIDE EFFECTS: .
- REVISIONS: 10/93 -jf-
- ****************************************************************************/
- void Stub(void)
- {
- }
- HERO Hero;
- OBJECT object[MAX_OBJECTS];
- DWORD WorldXpos; /* 16:16 fixed point world position */
- DWORD WorldYpos; /* 16:16 fixed point world position */
- WORD MinWorldX,MaxWorldX; /* world X limits */
- WORD MinWorldY,MaxWorldY; /* world Y limits */
- WORD CurrentSequence; /* All purpose sequence counter */
- void *pSubmenu; /* Pointer to submenu */
- WORD GameFlags; /* Where ICON's get thier data from */
- BYTE BackdropRate; /* Where we ALWAYS get our backdrop reload from */
- Sega_Channel_Demo_Cart_1-GenLost-unknown1
- MEMORY
- {
- rom: ORG(0x000000) LEN(0x100000)
- ram: ORG(0xff0000) LEN(0x010000)
- }
- SECTIONS
- {
- .text: {} > rom
- .art: ORG(0x10000) {} > rom
- .sound: {} > rom
- .abs: {} > ram
- .bss: ORG(0xff8000) {} > ram
- }
- Sega_Channel_Demo_Cart_1-Sega_Channel-header
- .opt proc=68000
- .file "..\c\header.c"
- .def BYTE\ .scl 13\ .type 0xc\ .endef
- .def WORD\ .scl 13\ .type 0xd\ .endef
- .def DWORD\ .scl 13\ .type 0xf\ .endef
- .def tagGENESIS_HEADER\ .scl 10\ .type 0x8\ .size 256\ .endef
- .def System\ .val 0\ .scl 8\ .type 0x32\ .line 23\ .size 16\ .dim 16\ .endef
- .def ReleaseYearMonth\ .val 16\ .scl 8\ .type 0x32\ .line 24\ .size 16\ .dim 16\ .endef
- .def GameNameDomestic\ .val 32\ .scl 8\ .type 0x32\ .line 25\ .size 48\ .dim 48\ .endef
- .def GameNameOverseas\ .val 80\ .scl 8\ .type 0x32\ .line 26\ .size 48\ .dim 48\ .endef
- .def ProductNumVersion\ .val 128\ .scl 8\ .type 0x32\ .line 27\ .size 14\ .dim 14\ .endef
- .def CheckSum\ .val 142\ .scl 8\ .type 0xd\ .endef
- .def IOusage\ .val 144\ .scl 8\ .type 0x32\ .line 29\ .size 16\ .dim 16\ .endef
- .def RomStart\ .val 160\ .scl 8\ .type 0xf\ .endef
- .def RomEnd\ .val 164\ .scl 8\ .type 0xf\ .endef
- .def RamStart\ .val 168\ .scl 8\ .type 0xf\ .endef
- .def RamEnd\ .val 172\ .scl 8\ .type 0xf\ .endef
- .def ExternalRam\ .val 176\ .scl 8\ .type 0x32\ .line 32\ .size 12\ .dim 12\ .endef
- .def ModemData\ .val 188\ .scl 8\ .type 0x32\ .line 33\ .size 12\ .dim 12\ .endef
- .def Memo\ .val 200\ .scl 8\ .type 0x32\ .line 34\ .size 40\ .dim 40\ .endef
- .def Country\ .val 240\ .scl 8\ .type 0x32\ .line 35\ .size 16\ .dim 16\ .endef
- .def .eos\ .val 256\ .scl 102\ .size 256\ .tag tagGENESIS_HEADER\ .endef
- .def GENESIS_HEADER\ .scl 13\ .type 0x8\ .size 256\ .tag tagGENESIS_HEADER\ .endef
- .def tagINIT_REGISTERS\ .scl 10\ .type 0x8\ .size 15\ .endef
- .def ModeSet1\ .val 0\ .scl 8\ .type 0xc\ .endef
- .def ModeSet2\ .val 1\ .scl 8\ .type 0xc\ .endef
- .def PatternBaseAddrA\ .val 2\ .scl 8\ .type 0xc\ .endef
- .def PatternBaseAddrW\ .val 3\ .scl 8\ .type 0xc\ .endef
- .def PatternBaseAddrB\ .val 4\ .scl 8\ .type 0xc\ .endef
- .def SatBaseAddr\ .val 5\ .scl 8\ .type 0xc\ .endef
- .def BkColor\ .val 6\ .scl 8\ .type 0xc\ .endef
- .def HInt\ .val 7\ .scl 8\ .type 0xc\ .endef
- .def ModeSet3\ .val 8\ .scl 8\ .type 0xc\ .endef
- .def ModeSet4\ .val 9\ .scl 8\ .type 0xc\ .endef
- .def HScrollAddr\ .val 10\ .scl 8\ .type 0xc\ .endef
- .def AutoIncrement\ .val 11\ .scl 8\ .type 0xc\ .endef
- .def ScrollSize\ .val 12\ .scl 8\ .type 0xc\ .endef
- .def WindowHpos\ .val 13\ .scl 8\ .type 0xc\ .endef
- .def WindowVpos\ .val 14\ .scl 8\ .type 0xc\ .endef
- .def .eos\ .val 15\ .scl 102\ .size 15\ .tag tagINIT_REGISTERS\ .endef
- .def INIT_REGISTERS\ .scl 13\ .type 0x8\ .size 15\ .tag tagINIT_REGISTERS\ .endef
- .text
- .align 2
- .globl _header
- _header:
- .byte "SEGA GENESIS\0"
- .space 3
- .byte "(C)T-XX 1994.JAN"
- .byte "Sega Channel \0"
- .space 31
- .byte "Sega Channel \0"
- .space 31
- .byte "GM T-000000 00"
- .word 0x0
- .byte "J\0"
- .space 14
- .long 0x0
- .long 0xfffff
- .long 0xff0000
- .long 0xffffff
- .byte "\0"
- .space 11
- .byte "\0"
- .space 11
- .byte "Developed by Pacific SoftScape Inc.\0"
- .space 4
- .byte "JUE\0"
- .space 12
- .def _header\ .val _header\ .scl 2\ .type 0x8\ .size 256\ .tag tagGENESIS_HEADER\ .endef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement