flat assembler
Message board for the users of flat assembler.
Index
> Main > error: symbol '...' out of scope. |
Author |
|
macomics 09 Aug 2023, 11:08
1)
Code: if (code_byte = $C3 | code_byte = $C2) & exit_addr = 0 ... 2) It is possible to refer to variables declared somewhere ahead only when it is assigned a value only once Code: jne exit_addr_value ; forward reference @after_jmp_on_fail: . . . exit_addr = 0 rept 256 addr:$100 { if addr >= @after_jmp_on_fail-128 & addr <= @after_jmp_on_fail+127 load code_byte byte from addr if code_byte = $C3 & exit_addr = 0 exit_addr = addr end if end if ; addr... } assert exit_addr <> 0 exit_addr_value = exit_addr ; only once |
|||
09 Aug 2023, 11:08 |
|
Jin X 10 Aug 2023, 10:29
Thanks!
|
|||
10 Aug 2023, 10:29 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.