flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Cursor resource macro

Author
Thread Post new topic Reply to topic
Dunduk



Joined: 08 Sep 2003
Posts: 38
Location: Russia
Dunduk
Hi all
I made cursor resource macro (actually it's slightly changed icon resource macro from fasmw package Wink):
Code:
macro cursor group,[label,cursor_file] {
  common
      local count
      count = 0
  forward
      local data,size,position
      label dd RVA data,size+4,0,0
    virtual at 0
      file cursor_file:6,16
      load size dword from 8
      load position dword from 12
    end virtual
      data file cursor_file:10,4
      file cursor_file:position,size
      count = count+1
  common
      local header
      align 4
      group dd RVA header,6+count*14,0,0
      header dw 0,2,count
  forward
      local width,height
    virtual at 0
      file  cursor_file:6,2
      load  width  byte from 0
      load  height byte from 1
    end virtual
      dw  width,width+height,1,1
      dd  size+4
      dw  label#.resid
  common
      align 4
}
    
Post 10 Dec 2004, 05:13
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.