C64 Türkiye sayı 6, sayfa 23

Bu sayfadaki yazılar

Sayfanın metni

Sayfa 23

sta $d017 sta $d010 sta $d01b lda #$00 sta $d020 txa asl tax lda koor,x sta $d000,x lda koor+1,x sta $d000+1,x jmp key inc_x cmp #$1d ;"RIGHT" tuşu bne dec_x txa asl tax inc $d000,x bne noexb setx ldx sprnum lda $d010 eor eorcode,x sta $d010 noexb jmp set dec_x cmp #$9d ;"LEFT" tuşu bne inc_y txa asl tax dec $d000,x bne noexb jmp setx inc_y cmp #$11 ;"DOWN" tuşu bne dec_y txa asl tax inc $d001,x jmp set dec_y cmp #$91 ;"UP" tuşu bne exb txa asl tax dec $d001,x jmp set exb cmp #$45 ;"E" tuşu bne tekrar lda $d010 eor eorcode,x sta $d010 tekrar jmp set rts

koor .byte $18,$3a,$30,$3a,$48,$3a,$60,$3a .byte $78,$3a,$90,$3a,$a8,$3a,$c0,$3a select .byte $31,$32,$33,$34,$35,$36,$37,$38 sprnum .byte 0 eorcode .byte 1,2,4,8,16,32,64,128 off .byte 254,253,251,247,239,223,191,127 sdata =$02c0 .end

Klavyeyle gezinmek için ← ve → tuşları.