dos33fsprogs/games/peasant/zp.inc
Vince Weaver 738a305897 peasant: hook up game over screen
no animation yet though
2021-10-13 01:04:05 -04:00

283 lines
4.9 KiB
PHP

JS_BUTTON_STATE = $03
JOYSTICK_ENABLED= $04
SOUND_STATUS = $05
SOUND_DISABLED = $80
SOUND_IN_LC = $01 ; sound in language card
SOUND_MOCKINGBOARD = $02 ; mockingboard detected
SOUND_SSI263 = $04 ; SSI-263 speech chip detected
MOCKINGBOARD_SLOT = $06
DISP_PAGE = $07 ; only in videlectrix intro?
DRAW_PAGE = $08
NIBCOUNT = $09
TEMP0 = $10
TEMP1 = $11
TEMP2 = $12
TEMP3 = $13
TEMP4 = $14
TEMP5 = $15
; electric duet
FREQ1 = $10
FREQ2 = $11
DURATION = $12
INSTRUMENT1 = $13
INSTRUMENT2 = $14
MADDRL = $15
MADDRH = $16
LOC4E = $4E
COUNT256 = $4F
HGR_BITS = $1C
CH = $24
CV = $25
GBASL = $26
GBASH = $27
BASL = $28
BASH = $29
MASK = $2E
MASK_COUNTDOWN = $2F
PEASANT_PRIORITY = $30
INVENTORY_MASK = $60
INVENTORY_Y = $61
CURSOR_X = $63
CURSOR_Y = $64
FRAME = $65
ALTFIRE = $66
ALTL = $67
ALTH = $68
SAVED_X = $69
PEASANT_XADD = $6A
PEASANT_YADD = $6B
GAME_OVER = $6C
NEW_LOCATION = $FF
NEW_FROM_DISK = $01
SPEECH_PTRL = $70
SPEECH_PTRH = $71
; pt3 player registers
AY_REGISTERS = $70
A_FINE_TONE = $70
A_COARSE_TONE = $71
B_FINE_TONE = $72
B_COARSE_TONE = $73
C_FINE_TONE = $74
C_COARSE_TONE = $75
NOISE = $76
ENABLE = $77
PT3_MIXER_VAL = $77
A_VOLUME = $78
B_VOLUME = $79
C_VOLUME = $7A
ENVELOPE_FINE = $7B
ENVELOPE_COARSE = $7C
ENVELOPE_SHAPE = $7D
PATTERN_L = $7E
PATTERN_H = $7F
; rest of pt3_player
PT3_TEMP = $80
ORNAMENT_L = $81
ORNAMENT_H = $82
SAMPLE_L = $83
SAMPLE_H = $84
LOOP = $85
MB_VALUE = $86
MB_ADDR_L = $87
MB_ADDR_H = $88
DONE_PLAYING = $89
DONE_SONG = $8A
APPLEII_MODEL = $8B
ESC_PRESSED = $8C
;=======================
; savegame state
;=======================
WHICH_LOAD = $90
PEASANT_X = $91
PEASANT_Y = $92
PEASANT_DIR = $93
PEASANT_DIR_UP = 0
PEASANT_DIR_RIGHT = 1
PEASANT_DIR_LEFT = 2
PEASANT_DIR_DOWN = 3
MAP_X = $94
MAP_Y = $95
MAP_LOCATION = $96
GAME_STATE_0 = $97
BABY_IN_WELL=$00
TURN_WELL_CRANK=$00
TALK_TO_MENDELEV=$00
HALDO_TO_DONGELEV=$00
ARROW_BEATEN=$00
GARY_SCARED=$00
LADY_GONE=$00
TRINKET_GIVEN=$00
GAME_STATE_1 = $98
FISH_FED=$00 ; also implies man gone and inn open
PUDDLE_WET=$00
HAY_BALE=$00
JHONKA_OUT=$00
RAINING=$00
NIGHT=$00
POT_ON_HEAD=$00
WEARING_ROBE=$00
GAME_STATE_2 = $99
ON_FIRE = $00
COTTAGE_ROCK_MOVED=$00
KNUCKLES_BLEED=$00
DRESSER_OPEN=$00
NED_STATUS = $9A
BUSH_STATUS = $9B ; status of bush search
KERREK_STATE = $9C
KERREK_ALIVE = $00
KERREK_DEAD = $01
KERREK_DECOMPOSING = $02
KERREK_SKELETON = $03
ARROW_SCORE = $9D ; bottom=score, top=random num needed 3-5?
SCORE_HUNDREDS = $9E
SCORE_TENSONES = $9F
INVENTORY_1 = $A0
INV1_ARROW = $01
INV1_BABY = $02
INV1_KERREK_BELT = $04
INV1_CHICKEN_FEED = $08
INV1_BOW = $10
INV1_MONSTER_MASK = $20
INV1_PEBBLES = $40
INV1_PILLS = $80
INVENTORY_2 = $A1
INV2_RICHES = $01
INV2_ROBE = $02
INV2_SODA = $04
INV2_MEATBALL = $06
INV2_TRINKET = $10
INV2_TROGHELM = $20
INV2_TROGSHIELD = $40
INV2_TROGSWORD = $80
INVENTORY_3 = $A2
INV3_IMPOSSIBLE = $01
INV3_SHIRT = $02
INV3_MAP = $04
INVENTORY_1_GONE = $A3 ; had item, but now it's gone
INVENTORY_2_GONE = $A4
INVENTORY_3_GONE = $A5
END_OF_SAVE = $A6
CURRENT_VERB = $B0 ; parser
CURRENT_NOUN = $B1
WORD_MATCH = $B2
INPUT_X = $C0
BOX_X1L = $C1
BOX_X1H = $C2
BOX_Y1 = $C3
BOX_X2L = $C4
BOX_X2H = $C5
BOX_Y2 = $C6
SAVED_Y1 = $C7
SAVED_Y2 = $C8
; temp for animations, etc
BABY_COUNT = $C9
; D0-D? used by HGR?
WHICH_SLOT = $DA
CURRENT_DISK = $DC
HGR_COLOR = $E4
HGR_PAGE = $E6
P0 = $F1
P1 = $F2
P2 = $F3
P3 = $F4
P4 = $F5
P5 = $F6
INL = $FC
INH = $FD
OUTL = $FE
OUTH = $FF
; constants
LOAD_VID_LOGO = 0
LOAD_TITLE = 1
LOAD_INTRO = 2
LOAD_COPY_CHECK = 3
LOAD_PEASANT1 = 4
LOAD_PEASANT2 = 5
LOAD_PEASANT3 = 6
LOAD_PEASANT4 = 7
LOAD_TROGDOR = 8
LOAD_ENDING = 9
LOAD_MUSIC = 10
LOAD_CLIFF = 11
LOAD_GAME_OVER = 12
LOAD_SAVE1 = 17
LOAD_SAVE2 = 18
LOAD_SAVE3 = 19
VGI_RCOLOR = P0
VGI_RX1 = P1
VGI_RY1 = P2
VGI_RXRUN = P3
VGI_RYRUN = P4
VGI_RCOLOR2 = P5 ; only for dither
COUNT = TEMP5
; LOCATIONS
LOCATION_POOR_GARY = 0
LOCATION_KERREK_1 = 1
LOCATION_OLD_WELL = 2
LOCATION_YELLOW_TREE = 3
LOCATION_WATERFALL = 4
LOCATION_HAY_BALE = 5
LOCATION_MUD_PUDDLE = 6
LOCATION_ARCHERY = 7
LOCATION_RIVER_STONE = 8
LOCATION_MOUNTAIN_PASS = 9
LOCATION_JHONKA_CAVE = 10
LOCATION_YOUR_COTTAGE = 11
LOCATION_LAKE_WEST = 12
LOCATION_LAKE_EAST = 13
LOCATION_OUTSIDE_INN = 14
LOCATION_OUTSIDE_NN = 15
LOCATION_WAVY_TREE = 16
LOCATION_KERREK_2 = 17
LOCATION_OUTSIDE_LADY = 18
LOCATION_BURN_TREES = 19
LOCATION_HIDDEN_GLEN = 20
LOCATION_CLIFF_BASE = 21
LOCATION_CLIFF_HEIGHTS = 22
LOCATION_TROGDOR_OUTER = 23
LOCATION_TROGDOR_LAIR = 24
LOCATION_INSIDE_LADY = 25
LOCATION_INSIDE_INN = 26
LOCATION_INSIDE_NN = 27
LOCATION_EMPTY = 28