What Will I Learn?
- You will learn assembly programming language
- You will learn how to make macro program
- You will learn ASCII code
- You will learn the machine language
Requirements
- You need the intention to learn
- You need basic assembly programming
- You need to understand ASCII code
Difficulty
- Basic
Tutorial Contents
indeed there is not much difference with the previous post just replace the repeating character by repeating a sentence but there is one thing that can cause a striking error when combined words, and on this occasion I will give a little tutorial how to repeat the sentence in programming assembly and you should follow the steps below:
First you have to install the Emulator8086 application you can dowload Here, Because besides the capacity is not heavy and easy to use.
Then, before I start writing syntax I will show the ASCII code that I had a previous language and codenya is divided into two parts namely in binary code printing and printing regular numbers and usually simple programming using only binary code as the training and ASCII code as below:
ASCII Code in numbers
ASCII Code In Biner
- Then you should type the following syntax for the occurrence of repetition of letters in programming machine and the syntax will be described in detail
In the syntax below it is explained that printing macro characters can be explained in the syntax
MOV AH, 02
which MOV brings the AH variable to the binner number 02 and forMOV DL,Kar
bring the DL variable into a character as a macro printe
Cetak_Kar MACRO Kar
LOCAL Ulang
MOV AH,02
MOV DL,Kar
In the syntax below can be explained that the integer used is 21H which means using binner number in macro character printing and also pengakirhan MOV syntax declaration
Ulang:
INT 21h
ENDM
This directive mark is used to tell the assembler the form of memory used by our program and In the COM program this command will always be used. This command is used to notify the assembler so that the program at run time (loaded into memory) is put starting at offset to 100h (256) bytes.
.MODEL SMALL
.CODE
ORG 100h
On this syntax brings the BL variable to 05
MOV BL, 05
At this stage is the formation of macro characters that will be printed with a call letter that is inputted in
Cetak_Kar
so that the macro program can be executed
Ulang2:
Proses:
Cetak_Kar 'R'
Cetak_Kar 'I'
Cetak_Kar 'C'
Cetak_Kar 'K'
Cetak_Kar 'Y'
Cetak_Kar 20h
In this syntax serves as a closed ASCII code declaration that makes macros characters
INT 21h
DEC BL
JNZ Ulang2
END Proses
- All Syntax Here
Cetak_Kar MACRO Kar
LOCAL Ulang
MOV AH,02
MOV DL,Kar
Ulang:
INT 21h
ENDM
.MODEL SMALL
.CODE
ORG 100h
MOV BL, 05
Ulang2:
Proses:
Cetak_Kar 'R'
Cetak_Kar 'I'
Cetak_Kar 'C'
Cetak_Kar 'K'
Cetak_Kar 'Y'
Cetak_Kar 20h
INT 21h
DEC BL
JNZ Ulang2
END Proses
- And after writing the above syntax will get the results as shown below:
Posted on Utopian.io - Rewarding Open Source Contributors
Your contribution cannot be approved because it does not follow the Utopian Rules.
Rule Says The linked Github repository must always contain code, a README and a license
You can contact us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit