tic-tac-toe.asm

tic-tac-toe.asm - UFO Sea Monsters Break It Down Rebuild...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
* UFO / Sea Monsters / Break It Down / Rebuild / Shoot (with variations) * APF MP1000 Cartridge * Disassembly Version .003 * ------------------------ * * Disassembly and comments by Adam Trionfo * * Revisions * --------- * Version .003 (October 2, 2010) * - Separated more graphic characters * - Figured out that $8855-$887A is program code (not data) * - Used DAMX to convert $8FEA-$8FFF to program code, but * I'm not sure if this is valid since the code has no way * to return to the main program. * * Version .002 (October 1, 2010) * - Separated many graphic characters * - Added additional comments to the graphics area * * Version .001 (September 9, 2010) * - Full disassembly using DASMX * - Added comments on how the Menu Choice is made * - Broke-up UFO Graphic into four parts * - Commented Cartridge Menu String * Misc Equates * EOS EQU $FF ; End of String BIOSSTART EQU $4053 ; Start of APF System ROM Setup B ORG $8000 FCB $BB ; Tell BIOS a cart is present FDB MENUSTR ; Points to Menu string on cartridge FCB '8' ; Eight Choices for Start-Up Menu FCB $00 ; Must be $00 L8005 LDAA $0000 ; Get User's Choice as Stored by System ROM CMPA #$05 ; Is the User's Choice 5 or Less? BLS L8012 ; Yes, it is, so branch SUBA #$05 ; Update User's Choice of "Shoot" version 6-8 STAA $0000 ; Store update of User's Choice JMP L8CB7 ; L8012 CMPA #$02 ; Is the User's Choice 1 or 2? BHI L8017 ; No, the User's Choice is NOT a UFO Game DECA ; L8017 CMPA #$05 ; Is the game Choice 4 or 5? BLS L801E ; Yes, it is "Shoot It Down" or "Rebuild" JMP BIOSSTART ; User Choice not on Menu, redisplay choices L801E STAA $01C4 LDAA $2002 ANDA #$3F ORAA #$80 STAA $2002
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
LDAA $2001 ANDA #$C7 ORAA #$38 STAA $2001 CLR $01C7 LDX #$0181 CLR $00,X STX $01E6 INX LDAB #$42 JSR $42F0 INC $0194 CLR $01F9 LDAA #$0E STAA $018B LDAA #$08 STAA $018C STAA $01AD STAA $01B5 LDX #$887B STX $01E6 LDX #$0200 LDAB #$E0 BSR L80CD LDX #$895B STX $01E6 LDAB #$90 LDX #$02E0 BSR L80CD LDX #$89EB STX $01AA STX $01A8 STX $01E6 LDAB #$10 LDX #$0370 BSR L80CD LDX #$89EB STX $01BD STX $01BF STX $01E6 LDAB #$10 LDX #$0210 BSR L80CD CLRA CLRB LDX #$0000 L80A1 STAA $00,X INX INCB BNE L80A1 LDAB #$80 L80A9 STAA $00,X INX DECB BNE L80A9 LDAA #$01 STAA $0001 STAA $0002 LDAA #$17
Background image of page 2
STAA $001D STAA $001E LDX #$896B LDAA $01C4 BEQ L80D3 CMPA #$01 BEQ L80D0 CMPA #$03 BHI L80D8 BRA L80D5 L80CD JMP $42F0 L L80D0 LDX #$8ACB L80D3 BSR L811D L80D5 JMP L813A L L80D8 LDAB #$55 LDX #$0230 STAB $00,X STX $01E6 INX LDAB #$0F BSR L80CD LDAB #$12 CMPA #$05 BNE L80EF LDAB #$0D L80EF LDX #$8B8B BSR L80F7 JMP L81A9 L80F7 STX $0188 LDAA $00,X CMPA #$FF BEQ L811C LDX #$00A0 JSR $411D STAB $00,X LDX $0188 INX CPX #$8BA4 BNE L80F7 LDAA $01C4 CMPA #$05 BEQ L80F7 LDAB #$03 BRA L80F7 L811C RTS L L811D STX $0188 STX $01E6 LDAB #$30 LDX #$0250 JSR $42F0 LDX $0188 STX $01E6 LDAB #$30 LDX #$02F0 JSR $42F0
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
RTS L813A LDAA $01C4 CMPA #$03 BEQ L8146 BSR L8190 JMP L81BA L8146 LDX #$8AFB LDAB #$30 BSR L8186 BSR L8190 LDX #$0020 BSR L8166 LDX #$002C BSR L8166 LDX #$0038
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 34

tic-tac-toe.asm - UFO Sea Monsters Break It Down Rebuild...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online