Output Functions


IsDigit
It determines whether the character in is a valid decimal digit. It sets the Zero flag if contains a valid decimal digit; otherwise, the flag is clear.

WriteBin
It writes an integer to the console window in ASCII binary format. Pass the integer in .

WriteChar
It writes a single character to the console window. Pass the character in .

WriteDec
It writes a 32-bit unsigned integer to the console window in decimal format with no leading zeros. Pass the integer in .

WriteHex
It writes a 32-bit unsigned integer to the console window in 8-digit hexadecimal format. Leading zeros are inserted if necessary. Pass the integer in .

WriteInt
It writes a 32-bit signed integer to the console window in decimal format with a leading sign and no leading zeros. Pass the integer in .

WriteString
It writes a null-terminated string to the console window. Pass the string’s offset in .

WriteDec WriteHex WriteInt

 INCLUDE Irvine32.inc
 .data
  dummy  WORD  ?
  ; 2**32 = 4294967296
 .code
 main PROC
  mov   eax, -128
  call  WriteDec
  exit
 main ENDP
 END main

 INCLUDE Irvine32.inc
 .data
  dummy  WORD  ?
 .code
 main PROC
  mov   eax, -128
  call  WriteHex
  exit
 main ENDP
 END main

 INCLUDE Irvine32.inc
 .data
  dummy  WORD  ?
 .code
 main PROC
  mov   eax, -128
  call  WriteInt
  exit
 main ENDP
 END main

Output Output Output

 

 

 

 

 

 


      “I’m not arguing, I’m just explaining why I’m right.”    
      ― Unknown