flat assembler
Message board for the users of flat assembler.
Index
> Linux > arrays,size,and so on,basic problems |
Author |
|
Feryno 05 Aug 2005, 13:18
Hello h0,
why you don't try to serach by google with keywords Linux+assembler ? There is a lot of pages, e.g. http://linuxassembly.org with tutorials and samples. If you take a look to example hello.asm included in fasm-x.xx.tgz you can find here how to grab a string_size to register without counting and waste CPU time. Segment prefixes es: and ds: are useless on Linux, you needn't them. You have everything in one 2^32 bit=4GB page, no 2^16=64KB as on 16-bit OS. |
|||
05 Aug 2005, 13:18 |
|
vid 05 Aug 2005, 14:39
arrays are declared just as in DOS, the difference may be that you want to declare arrays of dwords instead of words. be more specific.
look for "protected mode programming" or "protected mode programming in ring0" about the segment registers |
|||
05 Aug 2005, 14:39 |
|
h0 08 Aug 2005, 01:12
Sorry for the delay.
I searched google for hours before posting..However after some more hours i found a lot of nasm source code, which are perfect. I found some articles about protected mode too, without understanding all of it, i got the most importent things(i hope). Until now Linux assembly has been much more fun than dos asm!, its much easier with 32 bit registers, (until now). So, i solved my problems. Thank you for answering. |
|||
08 Aug 2005, 01:12 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.