flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
LiuJunfeng 02 Apr 2004, 08:30
I think this is not cared for programming, but do we know it?
|
|||
![]() |
|
S.T.A.S. 02 Apr 2004, 11:38
There is no "left" or "right" when we speak about bits.
There are (D0..D7 for byte) D0..D31 for DWORD pins on CPU |
|||
![]() |
|
Intrinsic 02 Apr 2004, 13:24
7...0 for intel
|
|||
![]() |
|
JohnFound 02 Apr 2004, 13:52
It is simply human way of thinking that most significant digits (in every radix) are most "left" and less significant are most "right". (Hm, interesting how the people from arabian countries think?
![]() Though these directions have phisical meaning only on the sceen and on piece of paper. Regards. |
|||
![]() |
|
S.T.A.S. 02 Apr 2004, 16:09
gorshing wrote: multiple bytes the order would be different. Yes, x86 (Intel and AMD) are Little Endian CPUs, they place first the least significant byte in memory: 00h,FFh Other CPUs (like Motorola 68XX0) are Big Endian, so they use another order: FFh,00h Also there are CPUs which can use both modes, but they are not so cool, because of incompatibility with FASM ![]() |
|||
![]() |
|
pelaillo 02 Apr 2004, 18:22
JohnFound wrote: (Hm, interesting how the people from arabian countries think? Just the same as we do, because numerical system we use was developed by them. ![]() They write right to left but they do arithmetic in the same way we do (only the characters are different) |
|||
![]() |
|
Tomasz Grysztar 02 Apr 2004, 19:13
And that's why we write numbers from right to left...
![]() |
|||
![]() |
|
Madis731 03 Apr 2004, 10:04
Very interesting thoughts I admit, on the writing side, shouldt my age be written 9 and 1, so the least significant numbers go first. Hmm, 0000001 one million:D
It seems confusing, but got used to *-hand traffic and reading/writing L2R or R2L so why wouldn't we start getting used to left 2 right writing of numbers ![]() |
|||
![]() |
|
Cas 05 Apr 2004, 05:11
Intel microps do not handle numbers directly in bigendian, but you have these instructions:
xchg ah,al ; invert 16bit number bswap eax ; invert 32bit number which can be very useful. ![]() |
|||
![]() |
|
vid 05 Apr 2004, 18:38
liu: i think you really could use my tutorial
http://board.flatassembler.net/topic.php?t=1178 this is one of things answered there |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.