-  [JOIN IRC!]


[Return]
Posting mode: Reply
Name
Subject   (reply to 677)
Message
File
Password  (for post and file deletion)
¯\(°_O)/¯
  • Supported file types are: BMP, GIF, JPG, PNG
  • Maximum file size allowed is 10000 KB.
  • Images greater than 400x400 pixels will be thumbnailed.
  • Currently 317 unique user posts. View catalog

  • Blotter updated: 2015-09-02 Show/Hide Show All


File 141608990571.png - (159.88KB , 1920x1080 , 138351928185.png )
677 No. 677
Can anybody help me with this assembly? I'm trying to write a function like memset but instead of copying 1 byte at a time it copies 4. The function appears to have no effect on the array though.

http://pastebin.com/MZq9CGjG
I've tried different conditional jumps on line 13 and it still doesn't do anything.
>> No. 702
Hi anon, you have two problems. The first is that, as you've probably noticed, your loop isn't getting executed.

The second problem is that you have some pointer/value-pointed-to confusion.

Try opening up your program in gdb and `define` the macro:
stepi
info reg
x/20i memset32
to step through memset32.
>> No. 712
Fix your fucking memset you goon
>> No. 713
>at&t syntax

Anyway OP you're telling your memset to copy a dword instead of a byte.
>> No. 714
Why not use SSE (Streaming SIMD)? set 256 bits at a time.

I mean, they are giving us this great tool... why not use it?


Delete post []
Password  
Report post
Reason