gbdev / gbdev/rgbds

Lists/arrays

Open
#67 21 comments 0 reactions 0 assignees View on GitHub
enhancement rgbasm
Dominant language
C++
Stars
1.6k
Forks
193
Avg merge
22h 17m
Merged PRs (30d)
26

Description

```
MOVES EQU [$24, $3a]

db LENGTH(MOVES)
db MOVES[0], MOVES[1]
```

Is there any chance for something like this to happen at all? Is it even a good idea?

Should be made to work for strings too.

```
POKEMON_NAMES EQU ["BULBASAUR", "IVYSAUR"]

db "So you want ", POKEMON_NAMES[STARTER1], "?@"
```

Contributor guide

Open the contributing guide

Research direction

Start by reviewing how the assembler currently represents constants and handles indexing, then compare the requested numeric and string examples against existing syntax and tests. Done means reaching a documented decision on whether lists and indexed string lists are supported, with behavior and tests covering the proposed forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.