GunnerInc's Profile User Rating: *****

Reputation: 893 Master
Active Posts:
2,463 (1.72 per day)
28-March 11
Profile Views:
Last Active:
User is offline Today, 11:23 AM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Your Car:
Who Cares
Dream Kudos:
Expert In:

Latest Visitors

Icon   GunnerInc Please don't bother PM'ing me for help!! Post your questions in the correct forum for all to benifit from!!!

Posts I've Made

  1. In Topic: Project in 64-bit Nasm assembly

    Posted 28 Feb 2015

    Not sure why you are pushing rbp on line 16, but it is not needed since you are not modifying rbp

    In the 64 bit world, things are very different. For variable argument (varargs) functions, if you are not using SSE (floating point) then al must be set to zero or the number of floating point/SSE arguments being passed otherwise your program will go boom.

    Next is your issue of passing arguments. Arguments do not get passed on the stack anymore, but in registers. Which registers all depend on what OS your program is for.

    Look here:
    34	    mov     rdi, debug
    35	    mov     rsi, [decsave]
    36	    mov     rax,0
    37	    call    printf 

    You have the parameter passing correct, and by using rdi and rsi, I can tell you are using Linux.

    But what goes on here:
    69	        mov     byte [abits+7],'.' ; end of dec. portion string
    70	        mov     byte [abits+8],0   ; end of "C" string
    71	        push    qword abits     ; string to print
    72	        push    qword fmts      ; "%s"
    73	        call    printf
    74	        add     rsp,8

    and here:
    87	        mov     byte [abits+3],10 ; end of "C" string at 3 places
    88	        mov     byte [abits+4],0 ; end of "C" string
    89	        push    qword abits     ; string to print
    90	        push    qword fmts      ; "%s"
    91	        call    printf
    92	        add     rsp,8

    Totally wrong calling convention is used. Even if we did push parameters on the stack, your cleaning it up wrong, you are passing 2 64 bit parameters so it would be add rsp, 8 * 2 (16 bytes)

    I won't knit pick about your coding style for now, but fix the parameter passing issues and that should get you going.
  2. In Topic: how to store a whole string in a register

    Posted 26 Feb 2015

    The most you can store in a 32bit register is 4 characters... 1 char is 8 bits... 4 chars x 8 = 32
  3. In Topic: MASM32

    Posted 25 Feb 2015

    So, what have you tried? Assembly has been around for decades, so there are plenty of examples/tutorials on the Internet. Do some Google searches, read some tutorials, try some code, and when you are stuck, post the code you are having trouble with and a question.

    To start you off, search for "Iczelion tutorials"
  4. In Topic: thermal printing

    Posted 17 Feb 2015

    Please post your questions in the appropriate forum. Tutorial section is not for help
  5. In Topic: Detecting DDoS attack

    Posted 13 Feb 2015

    Can we get back on topic here?

My Information

Member Title:
"Hurry up and wait"
40 years old
June 30, 1974
In my head
Forum Leader:
Full Name:
Years Programming:
Programming Languages:
x86 Win32 Assembly (MASM, FASM, NASM)

Contact Information

Click here to e-mail me
Website URL:
Website URL


Page 1 of 1
  1. Photo

    BenignDesign Icon

    06 May 2013 - 06:44
    How goes things, sunshine?
  2. Photo

    BenignDesign Icon

    02 Nov 2012 - 20:34
  3. Photo

    codeprada Icon

    25 Jun 2012 - 07:11
    Congratz on Mod status. Seems like I'm really late to this party. Better late than never right. =D
  4. Photo

    GunnerInc Icon

    26 May 2012 - 18:21
    Thanks No2, it was totally unexpected! Honored really!
  5. Photo

    no2pencil Icon

    26 May 2012 - 18:12
    Welcome to the team!
  6. Photo

    DimitriV Icon

    20 Nov 2011 - 19:22
    Good on you man, you are a DIC ++. That's skilled.
  7. Photo

    ishkabible Icon

    17 Oct 2011 - 13:33
    congratz!! if you get 15 rep this month(only 5 away!!) you can also get the assembly award!
  8. Photo

    Gungnir Icon

    17 Oct 2011 - 06:42
    Congratulations on becoming an expert!!
  9. Photo

    ishkabible Icon

    12 Oct 2011 - 18:36
    hey, i was about tell you how good a job you were doing then i saw i already had :P
  10. Photo

    GunnerInc Icon

    08 Oct 2011 - 08:04
    HeHe, thanks!
  11. Photo

    ishkabible Icon

    07 Oct 2011 - 21:05
    keep up the awesome work in the assembly forums! you're really doing an awesome job!
Page 1 of 1