Skip to content

Commit

Permalink
変数(v_)を全てゼロページへ移動
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoji Suzuki committed Dec 25, 2018
1 parent d9af0c7 commit 6741296
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions README.md
Expand Up @@ -42,16 +42,6 @@ NESのプログラミングを勉強するためシンプルなSTGを作って
make
```

## Usage of WRAM area

|address|usage|
|---|---|
|$0000〜$00FF (zero page)|高速にアクセスしたい変数を格納|
|$0100〜$01FF (stack)|push/pullで使う (今の所使ってない)|
|$0300〜$03FF|スプライトのDMA転送用の領域|
|$0400〜$040F|自機のショット構造体 (4byte × 4)|
|$0410〜$042F|敵機の構造体 (4byte x 8)|

## TIPS

### ポエム
Expand Down
4 changes: 0 additions & 4 deletions stg.asm
Expand Up @@ -1362,16 +1362,13 @@ v_sc1000: .byte $00 ; スコア(1000の位)
v_sc10000: .byte $00 ; スコア(10000の位)
v_sc100000: .byte $00 ; スコア(100000の位)
v_sc1000000:.byte $00 ; スコア(1000000の位)

.org $0400
v_shot0_f: .byte $00 ; ショットの生存フラグ
v_shot0_x: .byte $00 ; ショットのX座標
v_shot0_y: .byte $00 ; ショットのY座標
v_shot0_i: .byte $00 ; 未使用 (バウンダリ)
v_shot1: .byte $00, $00, $00, $00
v_shot2: .byte $00, $00, $00, $00
v_shot3: .byte $00, $00, $00, $00

v_eshot0_f: .byte $00 ; 敵ショットの生存フラグ
v_eshot0_x: .byte $00 ; 敵ショットのX座標
v_eshot0_y: .byte $00 ; 敵ショットのY座標
Expand All @@ -1383,7 +1380,6 @@ v_eshot4: .byte $00, $00, $00, $00
v_eshot5: .byte $00, $00, $00, $00
v_eshot6: .byte $00, $00, $00, $00
v_eshot7: .byte $00, $00, $00, $00

v_enemy0_f: .byte $00 ; 敵の生存フラグ(兼種別判定フラグ)
v_enemy0_x: .byte $00 ; 敵のX座標
v_enemy0_y: .byte $00 ; 敵のY座標
Expand Down

0 comments on commit 6741296

Please sign in to comment.