flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
BAiC 28 Jul 2014, 07:05
the type is usually implied by code. i.e., you make a version for each type that you want to support. you can always add dynamic support (pass in a parameter for type) but if you use a macro mechanism (to switch between rb/rd(dd)) then it won't be a procedure anymore.
|
|||
![]() |
|
AsmGuru62 28 Jul 2014, 10:23
I am not sure I understand your question.
The string by definition is an address of its first character. So, you have to pass into procedure that address: Code: String1 rb 256 String2 db 'This is a string.',0 pStr2 dd String2 ... stdcall StringCopy, [pStr2] ; passed address of string 2 stdcall StringCopy, String1 ; passed address of string 1 stdcall StringCopy, String2 ; passed address of string 2 (again) |
|||
![]() |
|
patchariadog 28 Jul 2014, 14:41
I think I got it figured out. Thanks
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.