This procedure dispatches application defined event handlers and alternately executes default process for both standard or sub/super classed windows.
Map is defined as follows. In most cases I define this table in .data, but in can be in .const also. I choose writeable memory as application...
(Read More) Hey guys.. need some help with this; I'm pulling my hair out.. i've trawled these boards but can't find anything that answers my question.
I, like many others before me (so it seems!) am trying to create a program to check for a palindrome.. this is what I have so far.
In the compare part.....
(Read More) This is a program I wrote for my x86 assembly class which computes the sum of n numbers. It uses Irvine32.inc which came with the textbook.
(Read More) This is a program I wrote for my x86 assembly class which is basically the Spade Invaders game in all its glory. It uses Irvine32.inc which came with the textbook.
(Read More) This is somewhat a simple project I wrote by getting help from google groups I always recommend.
assemble this code using this command:
(Read More) Assembles under NASM 16-bit,
invoke INT 0x65 to display message.
(Read More) compile using A86 assembler however you can adapt it for any other one easily... It just draws out a 3D like shape. It was annoying to get the angles right but suggestions on improvement to code is appreciated. :)
Adequately commented so it is understandable not fully as it is very repetitive.....
(Read More) First it is in RosAsm style.
Sorry I am addicted to its simplicity of use.
The Proc is called from Dialog initiation
; Call for the first ToolTip
Call SetTTip D$hdlg, ; H Dialog Handle of Dialog or Window
(Read More) This is a very simple program that uses text mode to display a boucing "ball." The ball is just a character that moves across the screen, erasing all in its path. It is coded to work like a screensaver, so the program ends when any key is hit.
NOTE: I am in no ways an assembly guru, if anything...
(Read More) This is a program I wrote for my x86 assembly class which revolves a "roulette wheel" around. Wait about a minute and it will eventually slow down to a stop. It uses Irvine32.inc which came with the textbook.
(Read More) I use GetTickCount in a lot of my applications, so I built this snippet to convert to hours minutes and seconds. Leading extraneous data is excluded from output.
(Read More) User can enter an ascii string of up to 48 characters consisting of 1's or 0's, with randomly interspersed whitespace.
IE: 1011111001011110 will be evaulated equally to
Algorithm parses from right to left so will be truncated at 16 position
Purpose is to give all those still...
(Read More) This is a program I wrote for my x86 assembly class which generates matrices, multiplies them, and computes how long the arithmetic took. It uses Irvine32.inc which came with the textbook.
(Read More) This is a program I wrote for my x86 assembly class which bounces an ASCII ball across the screen. It uses Irvine32.inc which came with the textbook.
(Read More) FASM can output an executable PE directly, but sometimes you want to output an object file for linking with modules in other languages. The following program can be used to link with the C library of the GCC compiler with the following commands:
C:\>fasm hello.asm hello.obj
C:\>gcc hello.obj -o...
(Read More) Some languages are hard to get started in. FASM appears to be one of these languages because the documentation is not detailed enough for a beginner. That's a shame because FASM is (in my opinion) one of the better assemblers. The following snippet is a simple Hello, world! program which FASM will...
(Read More) There are numerous calls to Win32 API that return detailed information as to failure via GetLastError (). I've devised a method by which to get the textual information corresponding to error and the address of the call that caused the violation. If GetLastError () returns null, then it can serve...
(Read More) A test program that will call the PROC findGCD, passing in the integer values input by the user and then it will display the results to the screen.
(Read More) A program that will test the Nonrecursive Factorial procedure using a value passed in by the program user and will also do a time comparision of the Nonrecursive and Recursive Factorial functions.
(Read More) Will demonstrate dumping the registers.
(Read More) I've often wondered why M$ didn't make creating a window a simple as registering a class in that only one 32 bit value need be passed to calling routine. Although this is not ground breaking code design it does facilitate calling code only set EBX to point to all values required by CreateWindowEx.
(Read More) Additional features will be added to this section of code such as fixing window size proportial to monitors resolution and subclassing the single edit control of this program. You'll notice I don't call ShowWindow here as WS_VISIBLE in windows style is defined.
(Read More) These are a pair of routine I use quite often. I know MemSet is virtualy the same as ZeroMemory in kernel32.dll, but there may be a time I want to use these in an embedded system where this dll won't be avaliable.
(Read More) I prefer to use this method as it doesn't clutter a windows procedure with dozens of conditionals and it address my primary objective of coding as tight as possible . If you think my method can be improved upon in size and/or speed please post your solution.
Note: I have not tested this...
(Read More) The next few posts will be what's required to get a window to display on the monitor. The code between Main & Pump will probably change as time goes on, but for now this is all that is required. I choose this method or placement because only 28 bytes of stack are used at this point. Nesting pump...
(Read More) As part of a larger hobby project that I'm undertaking being a doubly linked list for 95/98/XP, this is the first in a series that I will be posting.
Upon completion, I will have a complete application written in assembly for the Windows platform. Compiled with NASM
(Read More)