Code Monkey home page Code Monkey logo

assembly-string-builder-tool's Introduction

Assembly String builder tool

A program to create assembly 8086 strings to print without using any printing/strings related function but only mov-xchg-int and loops
This software is probably useless in any use case so you should ignore it as it is only a fun project for school and for making assembly project easily using only the instructions we studied yet

Sample program generated by the software that writes "Hello World!"

    mov DS:[ 0 ],0    ;EMPTY
    mov DS:[ 1 ],0    ;EMPTY     
    mov DS:[ 2 ], 11     ;NUMBER OF CHARS
    mov DS:[ 3 ],0    ;CH = 0
    mov DS:[ 4 ], 8     ;START OF CHARS
    mov DS:[ 5 ],0    ;BH = 0
    mov DS:[ 6 ],0    ;DL = 0
    mov DS:[ 7 ],0    ;DH = 0

    mov DS:[ 0 ],AX   ;SAVE AX AND EMPTY IT
    xchg DS:[ 2 ],CX  ;SAVE CX AND LOAD CHAR COUNTER
    xchg DS:[ 4 ],BX  ;SAVE AND LOAD POINTER
    xchg DS:[ 6 ],DX  ;SAVE AND LOAD CHARACTER

    mov DS:[ 8 ], 104  	 ;MOVE CHARS
    mov DS:[ 9 ], 101  	 ;MOVE CHARS
    mov DS:[ 10 ], 108  	 ;MOVE CHARS
    mov DS:[ 11 ], 108  	 ;MOVE CHARS
    mov DS:[ 12 ], 111  	 ;MOVE CHARS
    mov DS:[ 13 ], 32  	 ;MOVE CHARS
    mov DS:[ 14 ], 119  	 ;MOVE CHARS
    mov DS:[ 15 ], 111  	 ;MOVE CHARS
    mov DS:[ 16 ], 114  	 ;MOVE CHARS
    mov DS:[ 17 ], 108  	 ;MOVE CHARS
    mov DS:[ 18 ], 100  	 ;MOVE CHARS

    mov AX,0        ;EMPTY AX
    mov AH,2        ;OUTPUT MODE
loopPrint:
    mov DL,DS:[BX]  ;LOAD CURRENT CHAR IN MEMORY
    int 21h         ;PRINT
    inc BX          ;INCREMENT POINTER
    loop loopPrint

    mov AX,DS:[ 0 ]
    mov CX,DS:[ 2 ]
    mov BX,DS:[ 4 ]
    mov DX,DS:[ 6 ]

assembly-string-builder-tool's People

Contributors

regularrabbit05 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.