I am trying to print out contents of an array, I can assemble and link my code, but the output is wrong.
Here is my code
.model small
.stack 100h
.data
array8 db 10h,20h,30h,40h
.code
extern Writeint:proc, Crlf:proc
main proc
mov ax, @data
mov ds, ax
mov bx, offset array8
mov ax, [bx]
mov bx,16
call Writeint
mov ax,4c00h
int 21h
main endp
end main
When I run the executable I get 2010. I know this has something to do with byte flipping or somethign like that. Does anyone know how I can fix this?
Thanks for any input