wmahfoudh / zigomar

Win32 Assembly language demo of a Binary Clock & a tray icon with date

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zigomar

A Binary Clock written in Win32 assembly language Zigomar

Techniques implemented

  • unique instance using Mutex
  • time reading and interpreting
  • drawing and combining transparent regions
  • context menus
  • loading icons and bitmaps
  • tray icon with date
  • event handling
  • toottip text

Making and Linking

To make obj files and link them, use the masm32 SDK, which you can download here. Masm32 packages Microsoft Macro assembler. The following supposes that you have masm32 installed in d:\masm32 and that binary folder d:\masm32\bin is in your path

  • assemble the source with ml /c /coff /Cp /I "d:\masm32\include" /nologo zigomar.asm, this will generate zigomar.obj
  • compile the resources by typing rc res.rc, this will generate res.RES
  • link /SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /LIBPATH:"D:\masm32\lib" zigomar.obj res.RES will link the generated files

Comments

Certain parts of the program (like the drawing part) could be replaced by functions (PROC) but in assembly we generally give priority to performance over respecting paradigms created later for other languages. The use of macros is a good example of this. Future extensions could implement such changes if justified.

About

Win32 Assembly language demo of a Binary Clock & a tray icon with date

License:GNU General Public License v3.0


Languages

Language:Assembly 100.0%