ユーザ用ツール

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
フルーツフィールド_for_pc-6001mkii [2022/09/15 09:29] – [キー入力とジョイパッド] arakiフルーツフィールド_for_pc-6001mkii [2022/09/15 09:40] (現在) – [キー入力とジョイパッド] araki
行 737: 行 737:
         call    gamekey         call    gamekey
         and     a         and     a
-        ret     nz+        ret     nz        ; キー入力があったら戻る
  
-        ld      a,1+        ld      a,1       ; ジョイパッド#1からの入力を見る
         call    joystick         call    joystick
         and     a         and     a
-        ret     z+        ret             ; 何も押されてなければ戻る
         push    bc         push    bc
         ld      b,0         ld      b,0
         ld      c,a         ld      c,a
-        rlc     c+        rlc             ; 左に1bitローテートして 10hでマスクして→を取り出す。  |-|-|-|-|→|-|-|-|
         ld      a,10h         ld      a,10h
         and     c         and     c
         ld      b,a         ld      b,a
-        rlc     c+        rlc             ; 左に1bitローテートして 0chでマスクして↑↓を取り出す。 |-|-|↑|↓|-|-|-|-|
         ld      a,0ch         ld      a,0ch
         and     c         and     c
         or      b         or      b
         ld      b,a         ld      b,a
-        rlc     c+        rlc             ; 左に1bitローテートして 0a3hでマスクして←とABを残す。 |B|-|-|-|-|←|-|A|
         ld      a,0a3h         ld      a,0a3h
         and     c         and     c
-        or      b+        or      b                                                              |B|-|↑|↓|→|←|-|A|
         pop     bc         pop     bc
         ret         ret

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information