Author Topic: Solar Assembler location  (Read 15127 times)

BogdanOntanu

  • Global Moderator
  • Member
  • *****
  • Posts: 62
    • Solar_OS, Solar_Asm and HE RTS Game
Re: Solar Assembler location
« Reply #45 on: July 08, 2016, 04:42:59 AM »
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

  • Member
  • *****
  • Posts: 1733
Re: Solar Assembler location
« Reply #46 on: July 08, 2016, 05:33:50 AM »
Hi Bogdan,

Great news, thanks :t

caballero

  • Member
  • ****
  • Posts: 784
    • Abre Ojos Ensamblador
Re: Solar Assembler location
« Reply #47 on: July 08, 2016, 05:59:41 PM »
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
En un lugar de la Mancha de cuyo nombre no quiero acordarme

Vortex

  • Member
  • *****
  • Posts: 1733
Re: Solar Assembler location
« Reply #48 on: July 08, 2016, 07:47:41 PM »
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 :

Code: [Select]
\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

caballero

  • Member
  • ****
  • Posts: 784
    • Abre Ojos Ensamblador
Re: Solar Assembler location
« Reply #49 on: July 08, 2016, 07:50:33 PM »
thank you, vortex, much appreciated :icon14:
En un lugar de la Mancha de cuyo nombre no quiero acordarme

GoneFishing

  • Member
  • ****
  • Posts: 967
  • Gone fishing
Re: Solar Assembler location
« Reply #50 on: September 24, 2016, 01:00:29 AM »
Hi Bogdan ,

Today I've done a small test on Linux 64 . 
Add to test64_libc.asm following lines:
Code: [Select]
.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:
Quote
Printf 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

  • Global Moderator
  • Member
  • *****
  • Posts: 62
    • Solar_OS, Solar_Asm and HE RTS Game
Re: Solar Assembler location
« Reply #51 on: September 26, 2016, 01:19:29 AM »
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