Skip to content

fix: #31 negative constants - #34

Open
Neptunium931 wants to merge 3 commits into
RubixDev:mainfrom
Neptunium931:negative
Open

fix: #31 negative constants#34
Neptunium931 wants to merge 3 commits into
RubixDev:mainfrom
Neptunium931:negative

Conversation

@Neptunium931

@Neptunium931 Neptunium931 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

fix: #31

movq $-1, %eax

beffor:

(program [0, 0] - [1, 0]
  (instruction [0, 0] - [0, 14]
    kind: (word [0, 0] - [0, 4])
    (ERROR [0, 5] - [0, 6]
      (ERROR [0, 5] - [0, 6]))
    (int [0, 6] - [0, 8])
    (ident [0, 10] - [0, 14]
      (reg [0, 10] - [0, 14]))))

affter:

(program [0, 0] - [1, 0]
  (instruction [0, 0] - [0, 14]
    kind: (word [0, 0] - [0, 4])
    (int [0, 5] - [0, 8])
    (ident [0, 10] - [0, 14]
      (reg [0, 10] - [0, 14]))))

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.

Support negative constants

1 participant