Assembly Language... This is a low level programming language which has a direct interaction with the processor. It aims to make you executable files, .com applications, and libraries. It is use to program a robot. You must know how to convert binaries(10101) to decimal(0123456789),
hexadecimal(0123456789ABCEF) to Octal(01234567) vice-versa. You must be careful programming in assembly language because you may ruin your computer. So to avoid damaging your computer, you must use an Emulator.
Ingredients:
- EMU8086 - THE MICROPROCESSOR EMULATOR
and integrated assembler with tutorials for beginners.
The emulator runs programs like the real microprocessor in step-by-step mode.
It shows registers, memory, stack, variables and flags.
All memory values can be investigated and edited by a double click.
The instructions can be executed back and forward.
emu8086 can create a tiny operating system and write its binary code to
a bootable floppy disk. The software package includes several external virtual
devices: robot, stepper motor, led display, and traffic lights intersection.
Additional devices can be created.
you can buy at: http://www.emu8086.com/
Steps:
- Install emu8086
- Run emu80886
- Click New
- Then choose COM Template
- Begin Programming
- Writing hello world we use offset
- To Emulate just press(F5), and click run
- To debug click single step or step back
Copy the opcode below:
mov dx, offset msg ;Place address of msg variable reference into dx for str to print
int 21h ;Execute interrupt call to print the string
mov ah, 8 ;Value 8 into ah, sub-function to wait for character input (pause)
int 21h ;Execute Interupt call
int 20h ;Exit com file
msg db "hellow world! $"
mov ah, 4ch
int 21h
No comments:
Post a Comment