I need support to implement a double buffering routine that I would like to use in my frames per second counter / monitor program.
Please see my other post.
My thought on this routine is this.
Main loop:
3D calculations with plotting to a memory area for example $4000-$4FFF
Copy data from memory $4000-$4FFF to screen bitmap $1000-$1FFF
Delete memory area $4000-$4FFF
Jump to the beginning
Trying out the process was unsuccessful. See attached Video (~560kB)
Could it be because the screen arrangement is not regular? My screen has a resolution of x=168 and y=192 pixels.
Code: Select all
On: ; Set the characters on the right place
CLC ; CLC
LDA #$04 ; LDA #$10 = 16
TAY ; TAY
On_00:
STA $01FC,Y ; STA $0FF0,Y = 4080
ADC #$0C ; ADC #$0C = 12
BCC On_01 ; BCC On_01
SBC #$FB ; SBC #$EF = 239
On_01:
INY ; INY
BNE On_00 ; BNE On_00
Best regards
Sven