Assembly Language is a low level language, hence it is little more difficult to learn as compared to any other High level language, but unlike any high level language, it is much faster and allows us to observe and implement our code much closer to the hardware level. As we will see further that, it is one the most impressive language when it comes to programming viruses, or decoding an existing software for the purpose of creating patches etc. Hence our main focus here will be on using an assembly language for various purposes. But in order to make the learning process simpler it is much advised to use HLA or High Level Assembly, which is much simpler as compared to any other assembly language.

What is HLA?

High Level Assembly is an assembly language, which was developed by Randall Hyde. It incorporates the use of higher-level language

constructs to aid both beginners and advanced assembly developers. It fully supports advanced data types and object-oriented assembly language programming. It uses a syntax loosely based on several high-level languages (HLL), such as Pascal, Ada, Modula-2, and C++, to allow creating readable assembly language programs, and to allow HLL programmers to learn HLA as fast as possible.

Structure of an HLA Program

program Identifier
{
Initiations
}
begin Identifier
{
Body
}
end Identifier

Identifier

Identifiers specify the name of the program, they must all be the same.

Initiations

The Initiations section is where you declare constants, types, variables, procedures, and other objects in an HLA program.

Body

The Body section is where you place the executable statements for your main program

The Hello World Program

program helloWorld;
#include( “stdlib.hhf” );

begin helloWorld;

stdout.put( “Hello, World of Assembly Language”, nl );

end helloWorld;

Setting up an HLA environment and running your code.
Follow these steps to set up an HLA environment and run your first code.
  • Download HLA setup.
  • Make a new, Projects folder in the C:/hla directory.
  • Open a text editor(notepad) and write your code in it and then save it in the C:\hla\Projects folder with the exension .hla
  • The HLA compiler is a traditional command-line compiler, which means that you need to run it from a Windows command-line prompt or a Linux/ FreeBSD/Mac OS X shell.
  • Open Command Prompt in the administrator mode and change your directory to C:\hla\Projects using the command cd C:\hla\Projects
  • Using the command “HLA -v HelloWorld.hla” compile your code to generate an exe file.
  • Now execute your code using the command HelloWorld

Leave a Reply