A82: Blockbuster bug
[Next][Index][Thread]
A82: Blockbuster bug
Hi. I wrote Blockbuster, originally for Ash, but it also worked fine
under CrASH v1.1. Recently, however, it has caused other games to crash
when I use later versions of CrASH. It always crashes ZTetris whenever
I run Blockbuster first. All I have to do is run the title screen of
Blockbuster, too, I don't have to even play the game, and it crashes
ZTetris immediately. However, if I used the teacher key and saved a
ZTetris game, it will run fine if I restore that game after running
Blockbuster, and then crash when I exit.
Interestingly, when I run Columns v3.0c (even just the title screen)
between Blockbuster and ZTetris, nothing crashes, but since there's no
source available, I can't find out why.
Here's the source to the title screen of Blockbuster. I can't figure
out what it's doing wrong. Perhaps someone more experienced can.
Beginning:
ROM_CALL(CLEARLCD)
set 1,(IY+05)
set 3,(IY+05)
ld hl,0
ld (CURSOR_X),hl
ld hl,Title1
ROM_CALL(D_ZM_STR)
ld hl,Title2
ROM_CALL(D_ZM_STR)
ld hl,Title1
ROM_CALL(D_ZM_STR)
res 3,(IY+05)
ld hl,$0800
ld (CURSOR_X),hl
ld hl,Manticore
ROM_CALL(D_ZM_STR)
ld hl,$0f00
ld (CURSOR_X),hl
ld hl,Author
ROM_CALL(D_ZM_STR)
ld hl,$1600
ld (CURSOR_X),hl
ld hl,Email
ROM_CALL(D_ZM_STR)
ld hl,$1d00
ld (CURSOR_X),hl
ld hl,HighScoreText
ROM_CALL(D_ZM_STR)
ld hl,(HighScore)
call DM_HL_DECI
ld b,0
Menu:
ld a,b
cp 0
jr z,StartIsHighlighted
cp 1
jr z,HelpIsHighlighted
StartIsHighlighted:
set 3,(IY+05)
ld hl,$2a21
ld (CURSOR_X),hl
ld hl,Start
ROM_CALL(D_ZM_STR)
res 3,(IY+05)
ld hl,$3223
ld (CURSOR_X),hl
ld hl,Help
ROM_CALL(D_ZM_STR)
jr Choose
HelpIsHighlighted:
res 3,(IY+05)
ld hl,$2a21
ld (CURSOR_X),hl
ld hl,Start
ROM_CALL(D_ZM_STR)
set 3,(IY+05)
ld hl,$3223
ld (CURSOR_X),hl
ld hl,Help
ROM_CALL(D_ZM_STR)
Choose:
call GET_KEY
cp $01
jr z,DownOrUpKeyIsPressed
cp $04
jr z,DownOrUpKeyIsPressed
cp $09
jr z,EnterIsPressed
cp $37
ret z
ld hl,(RANDSEED)
inc hl
ld (RANDSEED),hl
jr Choose
Thank you for your help!
Doug Torrance
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
Follow-Ups: