News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Little Endian

Started by spaarkz, October 24, 2007, 07:50:38 PM

Previous topic - Next topic

spaarkz

Hi

I have just started learning assembly language, I am trying to move Hex into registers and display them on the screen. This should appear backwards (little endian) then I am supposed to reverse the input to display the Hex as normal.

Even when I have done some basic arithmetic functions I am struggling to display the contents of a register on the screen to check if the arithmetic is correct, In the code below I only seem to display one character on the screen.

Any help would be appreciated.

Thanks


;io.asm

include c:\masm32\work\headings.inc

;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

.data?
        buffer  db  200 DUP (?)
.data
        array   dword 3efh, 5e5h, 12345678h, 45h, 0

;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
.code

start:

        mov eax,[array]


        invoke StdOut,ADDR array

 

     

;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

end start          ; Tell MASM where the program ends

Mark Jones

"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08