Posted By
George on 2013-01-10 18:32:54
| Re: Speed up Routine for Placing A Bitmap
Hi Chicken,
i solved the issue in assembly. It was my second try ever in this language, but i am getting slowly into it. The Basic-Try was helpful, because i know the theoretical-part in TED-graphics now.
I solved the positioning of the crosshair in assembly (crappy code, but it works). Extremly fast.
The problem now is, how to read out the keys when you press Upper-Left, Upper-Right,Down-Left, Down-right:
My code so far:
LDA #$BF STA $FD30 STA $FF08 LDA $FF08 AND #$08 ; Query keyboard for "Right" BEQ weiter_dr LDA #$BF STA $FD30 STA $FF08 LDA $FF08 AND #$01 ; Query keyboard for "left" BEQ weiter_dl LDA #$DF STA $FD30 STA $FF08 LDA $FF08 AND #$08 ; Query keyboard for "up" BEQ weiter_du LDA #$DF STA $FD30 STA $FF08 LDA $FF08 AND #$01 ; Query keyboard for "down" BEQ weiter_dd
|