]> git.sur5r.net Git - cc65/commitdiff
shorter code 431/head
authorStefan <stefan.haubenthal@gmail.com>
Thu, 18 May 2017 21:58:10 +0000 (23:58 +0200)
committerGitHub <noreply@github.com>
Thu, 18 May 2017 21:58:10 +0000 (23:58 +0200)
libsrc/c128/joy/c128-stdjoy.s

index 119d3784f5b25aef7778e67fb7e3c8fe4facc057..a2caead1a17228f9f4a6071b6e64e35fb25846de 100644 (file)
@@ -104,7 +104,7 @@ joy1:   lda     #$7F
         sei
         sta     CIA1_PRA
         lda     CIA1_PRB
-        cli
+back:   cli
         and     #$1F
         eor     #$1F
         rts
@@ -118,9 +118,4 @@ joy2:   ldx     #0
         sta     CIA1_DDRA
         lda     CIA1_PRA
         sty     CIA1_DDRA
-        cli
-        and     #$1F
-        eor     #$1F
-        rts
-
-
+        jmp     back