News:

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

basic question

Started by t48605, August 31, 2006, 01:45:04 AM

Previous topic - Next topic

t48605

Why we can move directly a number or content of a memory to segment register ???

sinsi

You can move memory contents into a segment register (mov es,[002ch]) but you can't move an immediate value.

  mov es,1000h      <--- doesn't work

must be done

  mov ax,1000h
  mov es,ax

Light travels faster than sound, that's why some people seem bright until you hear them.

t48605

well thanks !
now I want to create a random number , anyone know how to do it ???

ninjarider

you need a random number generator. theres a few posted in the forum if you look.