Skip to content

Calculator written in Assembler based on processor Intel 8080. Operations: addition, subtraction and logical negation.

Notifications You must be signed in to change notification settings

Vlad32cj/Assembly-i8080-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Intel 8080 Assembly calculator

Hello

This program was created to understand how conditional jumps and arithmetic operations(for four-digit hexadecimal numbers) work in Assembler i8080. Possible operations: addition, subtraction and logical negation.

It is desirable to use step-by-step execution (debugger).

I have used "Symulator MCS-8".

The code contains commands of a specific simulator, such as:

  • RST1 - Print character from register A to the console.
  • RST2 - Input (a character) from the keyboard to the accumulator register.
  • RST3 - Print a string from memory, from HL register to '@' to the console.
  • RST4 - Print two hexadecimal characters(numbers) from the accumulator register to the console.
  • RST5 - Keyboard input of four hexadecimal characters to the DE register.

If necessary, change these instructions to adapt code for your simulator or remove them(the result will be in HL register or in BC register(only for negation)).

Using the program is quite simple, as it assures the prompts at every step and comments.

=========================================================================

Good luck to everyone in learning programming.

About

Calculator written in Assembler based on processor Intel 8080. Operations: addition, subtraction and logical negation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published