ASM Frame - V0.1 Copyright (C) 2000 Fred Barnes Released under the terms of the GNU Public License (see frame.c) ASM Frame provides a simple wrapper for assembler programs. It provides simple input and output to the assembler program. It would typically be used when playing around with assembler, not in anything serious! The source file frame.c provides a number of functions, which passes parameters through the EAX register (or 8 and 16 bit counterparts), rather than using the stack like C does. In brief, these functions are: OutChar print the character in AL OutString print the string pointed to by EAX OutInt8 print the 8-bit signed integer in AL OutInt16 print the 16-bit signed integer in AX OutInt32 print the 32-bit signed integer in EAX OutUInt8 print the 8-bit unsigned integer in AL OutUInt16 print the 16-bit unsigned integer in AX OutUInt32 print the 32-bit unsigned integer in EAX OutHex8 print the 8-bit unsigned integer in AL as hex OutHex16 print the 16-bit unsigned integer in AX as hex OutHex32 print the 32-bit unsigned integer in EAX as hex InChar read a character from the keyboard into the address pointed at by EAX. The main code lies in frame.c, which is compiled down to frame.o. The script `mkasm' takes an assembly source file as an argument, and links it with frame.o + usual stuff to create an executable. Look at the .s files included to work out how to do things.