News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Solar Assembler location

Started by BogdanOntanu, May 22, 2012, 06:09:59 AM

Previous topic - Next topic

BogdanOntanu

#45
OK, I have restarted the forums in order to have a place to talk about Sol_Asm and assembler programming

link is here: http://www.oby.ro/forum/index.php

Hi Vortex ;)
I have enabled forum attachments
Ambition is a lame excuse for the ones not brave enough to be lazy, www.oby.ro

Vortex

Hi Bogdan,

Great news, thanks :t

avcaballero

Hello, I have had a look to solasm and it has a quite good looking, small as I like :t. A few questions:

* Is there any way to include resources, at least icos for the program?
* Though its syntax seems to be very close to the masm one, is there any doc about it?

Thank you

Vortex

#48
Hi caballero,

Here is the Solar Assembler Manual :

http://www.oby.ro/sol_asm/docs/sol_asm_manual.htm

Chapter 8. Resource compiler :

http://www.oby.ro/sol_asm/docs/sol_asm_manual.htm#8

If you create MS COFF object modules, you can link them with compiled resource files. ( .res )

When generating 32-bit PE files with the option -pe32, you need a resource linker to add icons to your executables :

\SolAsm\bin\sol_asm2.exe Window.asm Window.exe /pe32

rlink32.exe Rsrc.res Window.exe

Attached is a quick example.

To get the resource linker :

http://www.rowalt.de/pc/programming/toolse.htm

avcaballero

thank you, vortex, much appreciated :icon14:

GoneFishing

Hi Bogdan ,

Today I've done a small test on Linux 64 . 
Add to test64_libc.asm following lines:

.data
...
msg_fmt3 db 13,10,'Printf message: float = %f ',13,10,0
test1 real4 10.2345

.text
invoke printf,msg_fmt3, test1
...

Sol_asm assembles it but the output is:
QuotePrintf message: float = 0.000000

Executing objdump -d ./test64_libc shows following disassembly:

Quote
00000000004005f0 <main>:
  4005f0:   48 be 75 11 60 00 00     movabs $0x601175,%rsi
  4005f7:   00 00 00
  4005fa:   48 bf 23 11 60 00 00      movabs $0x601123,%rdi
  400601:   00 00 00
  400604:   b8 00 00 00 00              mov    $0x0,%eax
  400609:   e8 82 fe ff ff                   callq  400490 <printf@plt>
  40060e:   48 bf 77 00 00 00 00     movabs $0x77,%rdi
  400615:   00 00 00
  400618:   e8 a3 fe ff ff                   callq  4004c0 <exit@plt>
  40061d:   c3                                   retq   
  40061e:   66 90                             xchg   %ax,%ax

Here goes my question :

Is it possible to add floating point arguments support to invoke ?

Thanks.

P.S.: Solar Assembler version 0.36.32


BogdanOntanu

Hi GoneFishing,

Yes, I will add floating point arguments to invoke in Sol_Asm.

Thanks for reporting this issue ;)
Ambition is a lame excuse for the ones not brave enough to be lazy, www.oby.ro