flat assembler
Message board for the users of flat assembler.

Index > Main > Newbie question

Author
Thread Post new topic Reply to topic
milan1612



Joined: 18 Jun 2007
Posts: 1
milan1612 18 Jun 2007, 22:07
Hi guys,

I found some code in the Freebasic-Forums.
Code:
#Macro Bloat( Size )
   
   asm
      ' Switch to/Create the specified section
      .section .Bloated
      ' Pad it with chars to inflate the size
      .fill Size, 1, 0
   End asm
   
#EndMacro    


I'm using Purebasic, which uses fasm and allows inline assembler.
Does anybody know how to translate the above code to fasm
(Of course just the 2 asm lines)
I don't know which assembler Freebasic uses, so... Shocked
Post 18 Jun 2007, 22:07
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1904
DOS386 19 Jun 2007, 00:04
> #Macro Bloat( Size )

Publishing M$'s most saint secret ? You'll hang soon Laughing

> I don't know which assembler Freebasic

GAS (like GCC) Crying or Very sad

> I'm using Purebasic, which uses fasm and allows inline assembler.

And the problem is ? Confused

> Does anybody know how to translate the above code to fasm

Code:
db size dup (0)    


Guess ^^^ Shocked

But above "code" is bad (compresses to nothing Crying or Very sad ), there is a better way:

Code:
file 'crap.xxx':0,size    


Download > 10 GiB of public domain crap, put it all together in one file
using TAR, name it crap.xxx ... and use for your "development" Laughing

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 19 Jun 2007, 00:04
View user's profile Send private message 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.