Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - bogdanontanu

Pages: 1 [2]
Sol_Asm / Re: writing to data or bss section variables
« on: July 27, 2016, 07:25:06 PM »
Yes, I will check this too ;)

Sol_Asm / Re: writing to data or bss section variables
« on: July 26, 2016, 11:46:57 PM »
Hi mineiro,

Thanks for testing this.

I will check it out and fix it ;)

Sol_Asm / Re: Some questions
« on: July 12, 2016, 07:45:23 PM »

 Thanks for testng sol_asm ;)

Addressing a struct without using a register should work.

Something like this:

Code: [Select]

struc point
x rd 1
y rd 1
z rd 1

my_point rs point,1

mov [my_point.x],eax
mov [my_point.y],2
mov [my_point.z],3

Size of a structure is:

Code: [Select]
    mov eax,size point

I will check the other issues and fix them.

Sol_Asm / Re: RIP addressing
« on: July 09, 2016, 11:37:47 AM »
Nice to hear that you enjoy sol_asm ;)

Yes, RIP relative addressing does involve some displacement even if that displacement is zero ;)

Sol_Asm / Re: RIP addressing
« on: July 08, 2016, 11:12:58 PM »
Hi mineiro,

Thanks for testing Sol_Asm and for caching the error in the manual ;)

What is the source code for that output in yasm and sol_asm?

As I have said before sol_asm does NOT know the symbol "rip" as a register.
This "rip" register does not have an encoding for x64 CPU.

It just appears written like that in disassembly in order to make the reader aware that the encoding is "rip relative" even for data access in x64.
This is a "new" thing in x64 and people like to put emphasis on it.

However it was available for JMP and CALL even for x32 CPU but nobody made a big issue about it.
It helps writing position independent code but that is all about it.

Sol_asm does generate RIP relative addressing by default when in 64 bits ...
if that is what you are after.

Just try with any variable in x64, something like this:
Code: [Select]


    my_var dq 1234h

    mov rax,[my_var]

and sol_asm will generate a:
Code: [Select]
    MOV RAX,[RIP+relative_offset_of_my_var_to_current_rip]

Nothing special needs to be done in order to use RIP addressing in Sol_Asm.
RIP addressing is enabled by default in x64 mode.

Sol_Asm / Sol Asm new versions
« on: July 07, 2016, 08:44:42 PM »
Hi all,

There is a new version for Sol_Asm v0.36.32 here:

It fixes the .bss issue for ELF64 on Linux.

General Discussion / Restarted the forums
« on: July 07, 2016, 08:38:39 PM »
I have restarted the forums for Sol_Asm, SOL_OS and HE_RTS Game

Pages: 1 [2]