flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Manos
Is it possible to define local variables
inside of procedure like MASM ? Manos. |
|||
![]() |
|
Manos
OK roticv.
Thanks you. Regards, Manos. |
|||
![]() |
|
Mac2004
Hello!
I use this kind of local labels in my procedures. This way similar procedures can use same local labels. ;*********************** ;procedure Myprocedure ;*********************** Myprocedure: jmp .start ;skip local labels ;--------------------- ;local label definitions .x .y .color .screen_width ;----------------------- .start: ;actual code starts ;here's the code itself ;....... ret ;end of procedure regards Mac2004 |
|||
![]() |
|
pelaillo
But you have local variables inside code and thus you need to have writeable code section.
Local variables are normally located on stack. |
|||
![]() |
|
Mac2004
I just wrote a small skeleton procedure to illustrate my approach. Of course there are several other ways of using local variables. This is my way and makes coding more standard at the stage of writing.
Anybody else using other method?? regards, Mac2004 |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.