flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Manos 23 May 2004, 14:01
Is it possible to define local variables
inside of procedure like MASM ? Manos. |
|||
![]() |
|
Manos 23 May 2004, 16:55
OK roticv.
Thanks you. Regards, Manos. |
|||
![]() |
|
Mac2004 01 Jun 2004, 12:06
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 01 Jun 2004, 13:05
But you have local variables inside code and thus you need to have writeable code section.
Local variables are normally located on stack. |
|||
![]() |
|
Mac2004 03 Jun 2004, 06:08
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.