flat assembler
Message board for the users of flat assembler.
Index
> Main > Using 'virtual' to move the func's data into data section |
Author |
|
revolution 18 May 2023, 12:34
You have defined the base address of data8 as "virtual at 0x00", so the value in rax is null.
You can define a label before the repeat line and use that label for the table address. Code: some_label: ; <--- your data is here repeat data8.size ; ... |
|||
18 May 2023, 12:34 |
|
hellomachine 18 May 2023, 12:44
revolution wrote: You have defined the base address of data8 as "virtual at 0x00", so the value in rax is null. Well I have too many functions and each function has its own jmp-table and in each function, I need a local name (for each function) to call that jmp-table so defining a name before the repeat is just like to not working with virtual and putting the jmp-tables in data section directly ... |
|||
18 May 2023, 12:44 |
|
revolution 18 May 2023, 12:48
You can use the label as an offset.
Code: mov rax, .func_data + some_label ;... mov rax, .func2_data + some_label |
|||
18 May 2023, 12:48 |
|
hellomachine 18 May 2023, 12:57
revolution wrote: You can use the label as an offset. Nice Solution, thank you. I'm going to use it, but isn't there any clean solution for this problem? For example, how about Code: 'virtual at some_label' |
|||
18 May 2023, 12:57 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.