; Altirra Acid800 test suite ; Copyright (C) 2010 Avery Lee, All Rights Reserved. ; ; Permission is hereby granted, free of charge, to any person obtaining a copy ; of this software and associated documentation files (the "Software"), to deal ; in the Software without restriction, including without limitation the rights ; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ; copies of the Software, and to permit persons to whom the Software is ; furnished to do so, subject to the following conditions: ; ; The above copyright notice and this permission notice shall be included in ; all copies or substantial portions of the Software. ; ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE ; SOFTWARE. _SAP_HEADER "GTIA: Player overlap" opt h+o+ icl 'library.s' passidx equ $80 scanpos equ $81 org $2000 main: _INITTEST c"GTIA: Player overlap" jsr _screenOff jsr _interruptsOff mva #$00 gractl mva #$aa grafm mva #$80 hposp0 mva #$00 sizem mva #$08 colpm0 mva #$28 colpm1 mva #$18 prior mva #0 passidx pass_loop: ldx passidx mva pass_data_hposm0_start,x scanpos mva pass_data_sizep0,x sizep0 mva pass_data_lo,x scan_addr mva pass_data_hi,x scan_addr+1 ;wait for start of visible region render_loop: lda #16 render_ypos = *-1 cmp:req vcount cmp:rne vcount add #32 cmp #16+32*3 sne:lda #16 sta render_ypos mva #$81 grafp0 mva #$60 hposp0 ldx scanpos stx hposm0 inx stx hposm1 inx stx hposm2 inx stx hposm3 ldx #wide_data_1 dta >wide_data_2 dta >wide_data_3 dta >wide_data_4 dta >wide_data_5 dta >wide_data_6 dta >double_data_1 dta >double_data_2 dta >double_data_3 dta >double_data_4 dta >normal_data_1 dta >normal_data_2 pass_data_hposm0_start: dta $60,$68,$70,$78,$80,$88 dta $60,$68,$70,$78 dta $60,$68 pass_data_sizep0: dta $03,$03,$03,$03,$03,$03 dta $01,$01,$01,$01 dta $00,$00 ;========================================================================== run $2000 end