flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Help with virtual

Author
Thread Post new topic Reply to topic
Bicyclist



Joined: 06 Jul 2009
Posts: 18
Bicyclist 09 Jul 2009, 01:55
I downloaded the help files, but only saw it mentioned without any details.

I am trying to find info on the "virtual" I saw in some code that BitRAKE
provided.

FShell_explodeOS:
.hb equ rcx

virtual at .hb
.sh SHELL
end virtual

I use masm.

Thanks.
Post 09 Jul 2009, 01:55
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 09 Jul 2009, 02:07
It is like a super set of ASSUME (much more powerful actually). In that code you could suppose it is something like "ASSUME rcx:SHELL", but instead of using "rcx.field" you use [.sh.field] and fasm will automatically know it is [rcx+SHELL.field].

If you will use MASM then you can't start the name with a dot like bitRAKE did (he did that to limit the scope of the symbol but in MASM you can't do that way).
Post 09 Jul 2009, 02:07
View user's profile Send private message Reply with quote
Bicyclist



Joined: 06 Jul 2009
Posts: 18
Bicyclist 09 Jul 2009, 03:17
LocoDelAssembly wrote:
It is like a super set of ASSUME (much more powerful actually). In that code you could suppose it is something like "ASSUME rcx:SHELL", but instead of using "rcx.field" you use [.sh.field] and fasm will automatically know it is [rcx+SHELL.field].

If you will use MASM then you can't start the name with a dot like bitRAKE did (he did that to limit the scope of the symbol but in MASM you can't do that way).


Thanks for the explanation.

I would like to convert the code fix that Bitrake supplied to something that Masm could handle.

The code makes a pretty neat fireworks display.

It ran fine through Win XP, but when I ran it on Vista, it claimed that it was broken. Smile

I have attached the masm source code and the executable.


Description:
Download
Filename: Fireworks.zip
Filesize: 9.8 KB
Downloaded: 396 Time(s)

Post 09 Jul 2009, 03:17
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4043
Location: vpcmpistri
bitRAKE 09 Jul 2009, 03:34
That snippet was an attempt to convert the program to 64-bit --- the whole program would need the same treatment. Currently, I'm trying to convert/fix the "swirl" program to 64-bit, and will happily share it once finished. Sorry, I really can't help with MASM64 as I've haven't kept up with the changes, but I have heard they are significant.
Post 09 Jul 2009, 03:34
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.