flat assembler
Message board for the users of flat assembler.
Index
> Main > moving stuff into memory |
Author |
|
comrade 09 Mar 2004, 01:31
16-bit code has many limitations:
Code: push 0A000h pop es mov cx,[yPos] shl cx,6 mov di,cx shl cx,2 add di,cx add di,[xPos] stosb |
|||
09 Mar 2004, 01:31 |
|
Laxori666 09 Mar 2004, 03:04
Ah, thanks a lot for that. I'd never have been able to figure that out myself, I'm still a newbie at ASM, but I understand what it's doing =).
Now I just need a random number generator... hmma... _________________ Laxori Shiin, Misguided Fool |
|||
09 Mar 2004, 03:04 |
|
vid 09 Mar 2004, 19:08
read fasm documentation for allowed addressing modes, i think they are there. They also differ for 16 bit code (DOS) and 32 bit code (windoze / linux).
|
|||
09 Mar 2004, 19:08 |
|
asmdemon 09 Mar 2004, 22:37
you need random numbers, here is a link that shows c and asm examples...
http://www.agner.org/random/randoma.htm _________________ It is better to be on the right side of the devil than in his path. |
|||
09 Mar 2004, 22:37 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.