Giter VIP home page Giter VIP logo

diegolrs / myio-masm32-console-handler Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3 KB

A library to handle console inputs using MASM32 Assembly. Allows the user to read strings and integers and write on console without use a macro library.

License: MIT License

Assembly 100.00%
assembly assembly-language assembly-language-programming assembly-x64 assembly-x86 assembly-x86-32 assembly-x86-64 computer-architecture computer-architecture-fundamentals console-application

myio-masm32-console-handler's Introduction

MyIO - MASM32 Console Handler

A library to handle console inputs using MASM32 Assembly. Allows the user to read strings and integers and write on console without use a macro library.

How to run

include myIO.inc
  • Second of all, you need to setup MyIO Library to enable console write and read. You can do this with the code:
call _MyIO_Setup
  • After these steps, you will be able to use all MyIO Library functions.

MyIO Library Functions

Write string on console:

Convert integer to ASCII characters and then display on console:
push offset stringVariable
call _MyIO_LogMessage

Write integer on console

Convert integer to ASCII characters and then display on console:
push integerVariable
call _MyIO_LogInteger

Write break line ('/n') on console

Type enter on console:
call _MYIO_BreakLine

Read an string

Read input from console, removing CR(enter) character from the end of the string:
push sizeof stringVariable
push offset stringVariable
call _MyIO_ReadString ; save input readed into string variable

Read a integer

Read string and remove CR(enter), then make conversion to integer:
call _MyIO_ReadInteger
mov integerVariable, eax

Authors

myio-masm32-console-handler's People

Contributors

diegolrs 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.