#  >> K-12 >> K-12 For Educators

How to Use Base Assembly Language Coding

Assembly language is the coding language that programmers use to interact directly with computer hardware at the most basic level. In the past, using base assembly language coding was necessary for programmers who wanted to optimize the operational speed of their code or maintain legacy code that more advanced programs rely upon. Currently, programming students study assembly language as an exercise in understanding the architecture of computer systems. Learning to use base assembly language coding can improve a student's general programming knowledge.

Instructions

    • 1

      Draw a sketch of the procedure that you want your code to perform. Designate the input data, output data and how the program should manipulate the input data.

    • 2

      Write out pseudo-code for your program. Describe each step of the program using normal language. Review your flowchart to ensure that you included all steps in your pseudo-code.

    • 3

      Consult an assembly language coding guide for your specific system. Translate your pseudo-code into base assembly language by replacing the normal language with the predefined operational instructions, such as IMUL, which multiplies the integers located at two different locations in the memory.

    • 4

      Compile your code. Run your program and check the output to ensure that it performed all operations correctly and saved the data in the designated area of the memory.

Learnify Hub © www.0685.com All Rights Reserved