Further experimenation

This commit is contained in:
greg 2016-12-04 21:13:18 -08:00
parent 5fe21fa5a1
commit 8dfef93067

View File

@ -46,12 +46,35 @@ rep #%00010000
sep #%00100000 sep #%00100000
ldx #$0000
- lda UntitledPalette.l, x ; Load palette by writing to $2122
sta $2122 ; $2122 - data for CG RAM write ; .db $00, $00, $E0, $7F, $1F, $00, $FF, $03
inx
cpx #8
bne - lda #$00
sta $2122
lda #$00
sta $2122
lda #$e0
sta $2122
lda #$7f
sta $2122
lda #$1f
sta $2122
lda #$00
sta $2122
lda #$ff
sta $2122
lda #$0a
sta $2122
;ldx #$0000
;- lda UntitledPalette.l, x
;sta $2122 ; $2122 - data for CG RAM write
;inx
;cpx #8
;bne -
lda #33 lda #33
sta $2121 ; address for CG RAM write sta $2121 ; address for CG RAM write
@ -180,24 +203,62 @@ sta $2100
lda #%10000001 ; enable NMI and joypads lda #%10000001 ; enable NMI and joypads
sta $4200 sta $4200
lda #%00011111
sta $2100
mainloop: mainloop:
Spin_Loop Spin_Loop
stz $2121
lda #$00
sta $2122
lda #$00
sta $2122
lda #$e0
sta $2122
lda #$7f
sta $2122
lda #$1f
sta $2122
lda #$00
sta $2122
lda #$ff
sta $2122
lda #$0a
sta $2122
;change brightness
;lda #%00000011 ;lda #%00000011
;sta $2100 ;sta $2100
lda #%00110000 ;lda #%00110000
sta $2105 ;sta $2105
Spin_Loop Spin_Loop
lda #0
sta $2121
lda #$09
sta $2122
lda #$00
sta $2122
lda #$e0
sta $2122
lda #$7f
sta $2122
lda #$1f
sta $2122
lda #$00
sta $2122
lda #$ff
sta $2122
lda #$7f
sta $2122
;lda #$0f ;lda #$0f
;sta $2100 ;sta $2100
lda #%00000000 ;lda #%00000000
sta $2105 ;sta $2105
jmp mainloop jmp mainloop