Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 10 ; PGE2 GR5 - TEST PROGRAM
- 20 ; WRITTEN BY>JOHAN ROOS TIBBELIN
- 30 ; DATE: 2020-06-04
- 40 ; LAST CHANGED:2020-06-04
- 50 ;
- 55 .OPT OBJ
- 56 .OPT NO LIST
- 60 *= $3000
- 65 ; CLEAR FPS COUNTER
- 66 LDA #0
- 67 STA $F9
- 68 STA $FA
- 70 ; INIT DISPLAY LIST
- 80 LDA #$00
- 90 STA 560
- 0110 LDA #$38
- 0120 STA 561
- 0130 LDA #$00
- 0140 STA $0200
- 0150 LDA #$37
- 0160 STA $0201
- 0170 ; SET VBI
- 0180 LDX #$36
- 0190 LDY #$00
- 0200 LDA #7
- 0210 JSR $E45C
- 0220 DLOOP JSR RGFX
- 0230 JMP DLOOP
- 0497 ;
- 0498 ; DLI
- 0499 ;
- 0500 *= $3700
- 0510 DLI
- 0520 PHA
- 0530 TXA
- 0540 PHA
- 0600 PLA
- 0610 TAX
- 0620 PLA
- 0630 RTI
- 0697 ;
- 0698 ; VBI
- 0699 ;
- 0700 *= $3600
- 0710 VBI
- 0720 LDA $FA
- 0730 CMP #50
- 0740 BNE N50
- 0750 ;STA $FB
- 0760 LDA #0
- 0770 STA $FA
- 0780 LDA $FB
- 0781 AND #$0F
- 0782 CLC
- 0783 ADC #$10
- 0785 STA $39C7
- 0786 LDA $FB
- 0787 LDX #4
- 0788 SHIFT4 LSR A
- 0789 DEX
- 0790 BNE SHIFT4
- 0791 CLC
- 0792 ADC #$10
- 0793 STA $39C6
- 0794 LDA $FC
- 0795 AND #$0F
- 0796 CLC
- 0797 ADC #$10
- 0798 STA $39C5
- 0800 LDA #0
- 0810 STA $FB
- 0812 STA $FC
- 0820 N50
- 0830 INC $FA
- 0835 ; LDA $FB
- 0840 ; CLC
- 0842 ; SED
- 0845 ; ADC #1
- 0847 ; STA $FB
- 0850 ; BCC NCVBI
- 0853 ; CLD
- 0855 ; LDA $FC
- 0856 ; STA $FC
- 0860 ; ADC #0
- 0870 NCVBI
- 0880 CLD
- 0890 JMP $E462
- 0900 *= $39C1
- 0910 .BYTE "fps",$1A
- 0997 ;
- 0998 ; DISPLAY LIST (MODE E)
- 0999 ;
- 1000 *= $3800
- 1005 ; 8 BLANKS - LINE 0-31
- 1010 .BYTE $70,$42,$A0,$39
- 1015 .BYTE $47,$E6,$39
- 1020 .BYTE $4A,$00,$40
- 1030 .BYTE $0A,$0A,$0A
- 1040 .BYTE $0A,$0A,$0A,$0A
- 1050 .BYTE $0A,$0A,$0A,$0A
- 1060 .BYTE $0A,$0A,$0A,$0A
- 1070 .BYTE $0A,$0A,$0A,$0A
- 1080 .BYTE $0A,$0A,$0A,$0A
- 1090 .BYTE $0A,$0A,$0A,$0A
- 1100 .BYTE $0A,$0A,$0A,$0A
- 1105 ; LINE 32-63
- 1110 ; LINES 32-64
- 1120 .BYTE $0A,$0A,$0A
- 1130 .BYTE $0A,$0A,$0A
- 1140 .BYTE $0A,$0A,$41,$00
- 1150 .BYTE $38,$0E,$0E,$0E
- 1160 .BYTE $0E,$0E,$0E,$0E
- 1170 .BYTE $0E,$0E,$0E,$0E
- 1180 .BYTE $0E,$0E,$0E,$0E
- 1190 .BYTE $0E,$0E,$0E,$0E
- 1200 .BYTE $0E,$0E,$0E,$0E
- 1210 ; LINE 64-95
- 1220 .BYTE $4E,$00,$50
- 1230 .BYTE $0E,$0E,$0E
- 1240 .BYTE $0E,$0E,$0E,$0E
- 1250 .BYTE $0E,$0E,$0E,$0E
- 1260 .BYTE $0E,$0E,$0E,$0E
- 1270 .BYTE $0E,$0E,$0E,$0E
- 1280 .BYTE $0E,$0E,$0E,$0E
- 1290 .BYTE $0E,$0E,$0E,$0E
- 1300 .BYTE $0E,$0E,$0E,$0E
- 1310 ; LINE 96-127
- 1320 .BYTE $4E,$00,$55
- 1330 .BYTE $0E,$0E,$0E
- 1340 .BYTE $0E,$0E,$0E,$0E
- 1350 .BYTE $0E,$0E,$0E,$0E
- 1360 .BYTE $0E,$0E,$0E,$0E
- 1370 .BYTE $0E,$0E,$0E,$0E
- 1380 .BYTE $0E,$0E,$0E,$0E
- 1390 .BYTE $0E,$0E,$0E,$0E
- 1400 .BYTE $0E,$0E,$0E,$0E
- 1410 ; LINE 128-159
- 1420 .BYTE $4E,$00,$60
- 1430 .BYTE $0E,$0E,$0E
- 1440 .BYTE $0E,$0E,$0E,$0E
- 1450 .BYTE $0E,$0E,$0E,$0E
- 1460 .BYTE $0E,$0E,$0E,$0E
- 1470 .BYTE $0E,$0E,$0E,$0E
- 1480 .BYTE $0E,$0E,$0E,$0E
- 1490 .BYTE $0E,$0E,$0E,$0E
- 1500 .BYTE $0E,$0E,$0E,$0E
- 1510 ; LINE 160-192
- 1520 .BYTE $4E,$00,$65
- 1530 .BYTE $0E,$0E,$0E
- 1540 .BYTE $0E,$0E,$0E,$0E
- 1550 .BYTE $0E,$0E,$0E,$0E
- 1560 .BYTE $0E,$0E,$0E,$0E
- 1570 .BYTE $0E,$0E,$0E,$0E
- 1580 .BYTE $0E,$0E,$0E,$0E
- 1590 .BYTE $0E,$0E,$0E,$0E
- 1600 .BYTE $0E,$0E,$0E,$0E
- 1610 ; LINE 192-224
- 1620 .BYTE $41,$00,$48
- 1630 .BYTE $0E,$0E,$0E
- 1640 .BYTE $0E,$0E,$0E,$0E
- 1650 .BYTE $0E,$0E,$0E,$0E
- 1660 .BYTE $0E,$0E,$0E,$0E
- 1670 .BYTE $0E,$0E,$0E,$0E
- 1680 .BYTE $0E,$0E,$0E,$0E
- 1690 .BYTE $0E,$0E,$0E,$0E
- 1700 .BYTE $0E,$0E,$0E,$0E
- 1710 .BYTE $41,$00,$48
- 1900 *= $39E6
- 1910 TEXT .BYTE $00,$30,"ixel",$27,"ame",$25
- 1920 .BYTE "ngine",$00,$12,$0E,$10
- 1997 ;
- 1998 ; RANDOM GRAPHICS
- 1999 ;
- 2000 *= $3100
- 2005 RGFX
- 2010 LDY #$14
- 2020 LDX #$28
- 2050 RGFXLOOP
- 2059 ; GET RANDOM BYTE (POKEY)
- 2060 LDA $D20A
- 2070 SM STA $4000
- 2080 INC SM+1
- 2090 BNE NC
- 2100 INC SM+2
- 2110 NC
- 2130 DEY
- 2140 BNE RGFXLOOP
- 2145 LDY #$14
- 2150 DEX
- 2160 BNE RGFXLOOP
- 2165 ; RESTORE ADDRESS
- 2170 LDA #$40
- 2180 STA SM+2
- 2190 LDA #$00
- 2200 STA SM+1
- 2201 SED
- 2202 LDA $FB
- 2203 CLC
- 2204 ADC #$01
- 2205 STA $FB
- 2206 BCC NCFC1
- 2207 LDA $FC
- 2208 ADC #0
- 2209 STA $FC
- 2210 NCFC1 CLD
- 2220 RTS
- 9999 .OPT LIST
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement