flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar
Your snippet is compatible with both fasm 1 and fasmg, but I assume that you have fasm in mind. There you can load no more than 8 bytes at a time, so this the best you could do:
Code: repeat len / 8 load x qword from start+(%-1)*8 virtual dbg dq x end virtual end repeat repeat len mod 8 load x byte from start+(len/8)*8+%-1 virtual dbg db x end virtual end repeat Code: load x: len from start virtual dbg emit len: x end virtual |
|||
![]() |
|
Jin X
So, I can't get access to real code inside virtual block?
|
|||
![]() |
|
Tomasz Grysztar
Jin X wrote: So, I can't get access to real code inside virtual block? Code: start = $% ; ... len = $% - start virtual at $100 as 'com' jmp copy dbg:: repeat len load x byte from :start+%-1 db x end repeat copy: end virtual |
|||
![]() |
|
Jin X
Oh but can I write:
Code: start: ; ... startbyte = start-$$ len = $ - start virtual at $100 as 'com' jmp copy dbg:: repeat len load x byte from :startbyte+%-1 db x end repeat copy: end virtual |
|||
![]() |
|
Tomasz Grysztar
No, you need fasm 1.73.21 or higher.
|
|||
![]() |
|
Jin X
Ok, thanks!
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.