Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 679 Bytes

File metadata and controls

29 lines (23 loc) · 679 Bytes

Environment variables

Environment variables are typeless variables that are defined within the .newasm/env_vars.ini file. Let's take a look:

.newasm/env_vars.ini:

testenv = "hello from env var"

index.asm:

.start
    mov tlr, * / testenv
    mov fdx, 1
    sysenter "ios"
    syscall
  • NOTE: You must use */ before the environment variable name so the program knows you are using an environment variable and not a standard variable, which means this wouldn't work:
.start
    mov tlr, testenv
    mov fdx, 1
    sysenter "ios"
    syscall

You can also easily add, modify and remove environment variables inside the shell mode.