Posted Mon Mar 28, 2005 11:45 PM
Posted Tue Mar 29, 2005 12:06 AM
Posted Tue Mar 29, 2005 9:15 PM
Posted Tue Mar 29, 2005 9:24 PM
xian106 said:
Posted Tue Mar 29, 2005 11:02 PM
Posted Tue Mar 29, 2005 11:54 PM
Posted Wed Mar 30, 2005 12:00 AM
LDY TopDelay ;TopDelay =0 at the beginning INY ;machine cycles X1: STA Wsync; 0 DEY ; 2 BNE X1; 3--5 LDY #4 ; 2--7 X2: DEY ; BPL X2; 5*4+5=25 ; 25--32 LDA #9; 2 --34 STA LoopCount; 3--37 JMP (DelayPTR);5--42 ;JMP TO $f241 JNDelay: byte $c9,$c9,$c9,$c9,$c9,$c9,$c9,$c9,$c9 byte $c9,$c9,$c9,$c9,$c9,$c9,$c9,$c9,$c9 byte $c9,$c9,$c9,$c9,$c9,$c9,$c9,$c9,$c9 byte $c9,$c9,$c9,$c9,$c9,$c9,$c9,$c9,$c9 byte $c9,$c5; $f241 is here. C9=2 c5=3 5 --47 NOP ; 2 --49 X3: NOP ; 2 --51 NOP ; 2 --53 NOP ; 2 --55 LDY LoopCount;3--58 LDA (s1),Y ; 5 --63 STA GRP0 ; 3 --66 LDA (s2),Y ; 5 --71 STA GRP1 ; 3 --74 LDA (s3),Y ; 5 --79(3) STA GRP0 ; 3 --6 LDA (s6),Y ; 5 --11;;;;;;;;;;;;;;;;;;;;;;;; STA Temp ; 3 --14 LDA (s5),Y ; 5 --19 TAX ; 2 --21 LDA (s4),Y ; 5 --26 LDY Temp ; 3 --29 STA GRP1 ; 3 --32 STX GRP0 ; 3 --35 STY GRP1 ; 3 --38 STA GRP0 ; 3 --41 DEC LoopCount;5--46 BPL X3 ; 4 --50 ; JMPX3 :NOP 2 --52 ;The problem is when p1 and p0 displayed?Could you label it behind the code? ; In the X3 loop, there is 77 machine cycles?????[/code]
Posted Wed Mar 30, 2005 7:19 AM
Posted Thu Mar 31, 2005 10:08 AM
LDX #$00;x =0,1,2,3,4 pattern =b c d,e f LDA #30 JSR SetPatPos ---------------------------------------------------------------- SetPatPos SEC STA wsync .1 SBC #$0F;2 BCS .1;3 EOR #$07;2 ASL ;2 ASL ;2 ASL ;2 ASL ;2 14+(a/$0f+1)*5 machine cycles STA hmp0,X;4 B C D E or F fine position STA resp0,X; pattern B,C,D,E,F position RTS
Posted Thu Mar 31, 2005 12:57 PM
SetPatPos sec sta WSYNC .1 sbc #$0F ;2 bcs .1 ;2/3 eor #$07 ;2 asl ;2 asl ;2 asl ;2 asl ;2 sta HMP0,x ;4 sta RESP0,x;4 = 18+n*5-1 rtsSo with a value of 30, hitting RESP0 happens at 18+3*5-1 = 32 (not 29).
Posted Thu Mar 31, 2005 1:11 PM
xian106 said:
lda pdata_g,x ;4--25 tax ;2--27 ldy pdata_r,x ;4--31So you're overwriting your index with the sprite data.
Posted Thu Mar 31, 2005 10:06 PM
Posted Fri Apr 1, 2005 4:49 AM
xian106 said:
Quote
Quote
0 members, 0 guests, 0 anonymous users