A Binary Clock written in Win32 assembly language
- 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
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 generatezigomar.obj
- compile the resources by typing
rc res.rc
, this will generateres.RES
link /SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /LIBPATH:"D:\masm32\lib" zigomar.obj res.RES
will link the generated files
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.