*-----------------------------------------------------------------------------* * A 'onsprite' request was received from the input handler. * * This causes us to turn sprites back on so the user can see * * the pointer again (if we turned them off in the first place) * *-----------------------------------------------------------------------------* btst.b #FLAGB_Blanked,gb_flags2(gbl) ; did we turn sprites off ? beq main040 ; no, don't turn them on far data move.w #DMAF_SPRITE+DMAF_SETCLR,_dmacon ; sprites on near data bra main040 main030 cmp.w #req_offsprite,LN_NAME(a2) ; request to turn sprites off ? bne main040 ; no, branch *-----------------------------------------------------------------------------* * An 'offsprite' request was received from the input handler. This * * causes us to turn off sprites to remove the pointer from the * * view during menu operations. If sprites are already turned off, * * we do nothing. * *-----------------------------------------------------------------------------* bclr.b #FLAGB_Blanked,gb_flags2(gbl) far data btst.b #DMAB_SPRITE,_dmaconr+1 ; are sprites on ? near data beq main040 ; no, branch Call WaitTOF,gb_IBase(gbl) ; wait for the proper time far data move.w #DMAF_SPRITE,_dmacon ; turn sprites off clr.w _spr+sd_dataa clr.w _spr+sd_dataB near data bset.b #FLAGB_Blanked,gb_flags2(gbl) ; remember we turned sprites off
@peceha, post #1
@teh_KaiN, post #2
@peceha, post #4