Tutorial Basic - How To Make Character Looping In Programming Language Assembly

in #utopian-io7 years ago (edited)

What Will I Learn?

  • You will learn assembly programming language
  • You will learn how to repeat words
  • You will learn how to repeat the sentence
  • 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

As we know with assembly language is machine language that is language used by machine in facilitate their job and even more this language is one of programming language most easily mastered and most easy to understand because that can be done in programming language this simple work, On this occasion I will give tutorial to you all about how to make letters using looping and also how to make word using loopig if you want to make it 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 you should type the following syntax for the occurrence of repetition of letters in programming machine and the syntax will be described in detail

Tt is intended as an outlet for an archived title and where in each title it does not accept the word space that is used only is the bottom line (_) and the macro term is another term of the word.

Cetak_Kar MACRO Kar

The 'Repeat' label is Local as the center of the loop

    LOCAL Ulang      

Syntax 'MOV' aims to move the functionality under CX5 and for CX 5 by itself is a command to repeat letters 5 times the iteration

    MOV CX,5     

This syntax aims to move the above command to the letter that will continue to pass next

    MOV AH,02 
    MOV DL,Kar

Serves as a place for character printing in ASCII code and the corresponding looping and attains the MACRO declaration function.

    Ulang:              ;  
    INT 21h         ; 
    LOOP Ulang      ; 
    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

Syntax below is intended as a character printers letters and letters that will be printed is the author's own name is "rickymaulana" and printed in 5 times iteration and pengakiran syntax printer character

Proses:
    Cetak_Kar 'R'    
    Cetak_Kar 'I'   
    Cetak_Kar 'C'
    Cetak_Kar 'K'   
    Cetak_Kar 'Y'
    Cetak_Kar 'M'
    Cetak_Kar 'A'
    Cetak_Kar 'U'
    Cetak_Kar 'L'
    Cetak_Kar 'A'
    Cetak_Kar 'N'
    Cetak_Kar 'A'
    Cetak_Kar 20h 
 
END Proses 
  • After writing the above syntax press the compiler button and the program will be automatically executed and the results are in can, as shown below:

  • All syntax for character looping
Cetak_Kar MACRO Kar 
LOCAL Ulang       
    MOV CX,5      
    MOV AH,02 
    MOV DL,Kar
     
Ulang:             
    INT 21h       
    LOOP Ulang     
    ENDM           

.MODEL SMALL 
.CODE 
ORG 100h 
Proses:
    Cetak_Kar 'R'    
    Cetak_Kar 'I'   
    Cetak_Kar 'C'
    Cetak_Kar 'K'   
    Cetak_Kar 'Y'
    Cetak_Kar 'M'
    Cetak_Kar 'A'
    Cetak_Kar 'U'
    Cetak_Kar 'L'
    Cetak_Kar 'A'
    Cetak_Kar 'N'
    Cetak_Kar 'A'
    Cetak_Kar 20h 
 
END Proses 



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Your contribution cannot be approved because it does not follow the Utopian Rules.

Hi, these are the reasons your tutorial was rejected

  • Basic programming concepts (variables, operators, loops, etc.) will not be accepted.
  • The linked repository is wrong (it's just a repository containing simple assembly language programs based on 8086).

For future tutorials I recommend you find an open-source project that you can contribute to, and create a less trivial tutorial that is relevant to the linked repository.

You can contact us on Discord.
[utopian-moderator]

why? alwasy you guys
i very hate you, damm i so hate you

Hahahaha she hate you bro @amosbastian

can you give a corect repository?-.

Coin Marketplace

STEEM 0.16
TRX 0.13
JST 0.027
BTC 57941.45
ETH 2579.63
USDT 1.00
SBD 2.39