Skip to content

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

Notifications You must be signed in to change notification settings

diegolrs/MyIO-MASM32-Console-Handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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