Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Use hardware.inc 5.0 constants

オープン
#125 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞

調査の方向性

Hello World と Unbricked のチュートリアルセクションを見つけ、それらの定数を hardware.inc 5.0 と比較します。issue に示されている古い名前とハードコードされたハードウェア数量を置き換え、その後、更新された例で新しい命名規則と定数が一貫して使用されていることを確認します。

索引モデルが issue の本文から書いたものです。

説明

Right from the very beginning with Hello World, the tutorial uses constants from hardware.inc. Version 5.0, released 2025-06-22, changed the naming convention for bit number and mask constants, and also added a number of new constants for more hardware-related quantities that are currently hard-coded in the tutorial.

A few of the examples in Hello World:

  • ld a, LCDCF_ON | LCDCF_BGON would now be ld a, LCDC_ON | LCDC_BG_ON ... and could explicitly specify more of the flag bits, like LCDC_BG_9800
  • WaitVBlank: ld a, [rLY] :: cp 144 :: jp c, WaitVBlank can use LY_VBLANK for 144
  • ld hl, $9800 can be ld hl, TILEMAP0

And some of the ones in Unbricked:

  • ld b, 160 :: ld hl, _OAMRAM would now be ld b, OAM_SIZE :: ld hl, STARTOF(OAM)
  • ld a, 128 + 16 and ld a, 16 + 8 would now be ld a, 128 + OAM_Y_OFS and ld a, 16 + OAM_X_OFS
  • ld a, P1F_GET_BTN would now be ld a, JOYP_GET_BUTTONS (and [rP1] would be [rJOYP])
  • [_OAMRAM + 5] could be [STARTOF(OAM) + 1 * OBJ_SIZE + OAMA_X] (i.e. the X coord of OBJ 1)
  • etc
主要言語
Assembly
スター
179
フォーク
64
平均マージ
7日 22時間
マージ済み PR(30日)
1

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

gbdev/gb-asm-tutorial のほかの issue

gbdev/gb-asm-tutorial の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。