Skip to content

Support for cast assignment operator =# #116

Closed

Description

@x87

https://gtamods.com/wiki/SCM_language#Compound_assignment

=# Cast assignment expr0 =# expr1 Cast expr1 to any other type and store the result to expr0

VARIABLES ON BOTH SIDES SHOULD BE DECLARED WITH A TYPE (INT OR FLOAT)

Operation Opcode Expression
CSET_VAR_INT_TO_VAR_FLOAT 008C $i =# $f
CSET_VAR_FLOAT_TO_VAR_INT 008D $f =# $i
CSET_LVAR_INT_TO_VAR_FLOAT 008E 0@ =# $f
CSET_LVAR_FLOAT_TO_VAR_INT 008F 1@ =# $i
CSET_VAR_INT_TO_LVAR_FLOAT 0090 $i =# 1@
CSET_VAR_FLOAT_TO_LVAR_INT 0091 $f =# 0@
CSET_LVAR_INT_TO_LVAR_FLOAT 0092 0@ =# 1@
CSET_LVAR_FLOAT_TO_LVAR_INT 0093 1@ =# 0@

Activity

  1. added
    type:feature
    priority:p2
    on Dec 14, 2020
  2. x87 commented on Dec 14, 2020

    @x87
    CollaboratorAuthor

    Could be done with the new binary parser #97

  3. added
    priority:p3
    and removed
    priority:p2
    on Dec 14, 2020
  4. x87 commented on Jul 15, 2023

    @x87
    CollaboratorAuthor

    Also need typing info to resolve correct opcode

  5. added this to the v3.9.0 milestone on Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:p3scope:compilertype:feature

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions