Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 980 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 980 Bytes

A86/HYP86-Assembly-Interpreter

Interprets A86 / HYP86 assembly codes.

Registers Supported

16-bit registers: AX, BX, CX, DX, DI, SP, SI, BP.

8-bit registers: AH, AL, BH, BL, CH, CL, DH, DL

Instructions Supported

MOV, ADD, SUB, MUL, DIV, XOR, OR, AND, NOT, RCL, RCR, SHL, SHR, PUSH, POP, NOP, CMP, JZ, JNZ, JE, JNE, JA, JAE, JB, JBE, JNAE, JNB, JNBE, JNC, JC, PUSH, POP, INT 20h, RCL, RCR, SHL, SHR, NOP

Flags Supported

ZF zero flag, CF carry flag, AF auxillary flag, SF sign flag , OF overflow flag.

Usage

program.exe "test-file-path"

Code Quality

This project is an assignment given to the students one of which is me. Thus, the code quality and optimizations might be not ideal. I was sophomore by the time, 2020, fourth term at Boun University.

Tests

The tests are written by Abdüllatif Köksal (https://github.com/akoksal)