Skip to content

Comments

feat: support for register lists (ARMv7)#22

Merged
RubixDev merged 1 commit intoRubixDev:mainfrom
cfung89:feat_lists
Nov 6, 2025
Merged

feat: support for register lists (ARMv7)#22
RubixDev merged 1 commit intoRubixDev:mainfrom
cfung89:feat_lists

Conversation

@cfung89
Copy link
Contributor

@cfung89 cfung89 commented Nov 1, 2025

Hi, would it be possible to add support for ARMv7 lists of registers? The following provides an example of this feature.

For PUSH { V1, V2, LR }:

Before:

(program ; [0, 0] - [1, 0]
  (instruction ; [0, 0] - [0, 17]
    kind: (word) ; [0, 0] - [0, 4]
    (ERROR ; [0, 5] - [0, 6]
      (ERROR)) ; [0, 5] - [0, 6]
    (ident ; [0, 7] - [0, 9]
      (reg ; [0, 7] - [0, 9]
        (word))) ; [0, 7] - [0, 9]
    (ident ; [0, 11] - [0, 13]
      (reg ; [0, 11] - [0, 13]
        (word))) ; [0, 11] - [0, 13]
    (ident ; [0, 15] - [0, 17]
      (reg ; [0, 15] - [0, 17]
        (word)))) ; [0, 15] - [0, 17]
  (ERROR ; [0, 18] - [0, 19]
    (ERROR))) ; [0, 18] - [0, 19]

After:

(program ; [0, 0] - [1, 0]
  (instruction ; [0, 0] - [0, 19]
    kind: (word) ; [0, 0] - [0, 4]
    (list ; [0, 5] - [0, 19]
      (reg ; [0, 7] - [0, 9]
        (word)) ; [0, 7] - [0, 9]
      (reg ; [0, 11] - [0, 13]
        (word)) ; [0, 11] - [0, 13]
      (reg ; [0, 15] - [0, 17]
        (word))))) ; [0, 15] - [0, 17]

Thank you very much!

@RubixDev
Copy link
Owner

RubixDev commented Nov 6, 2025

also looks awesome! thanks again :)

@RubixDev RubixDev merged commit 1dccad3 into RubixDev:main Nov 6, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants