flat assembler
Message board for the users of flat assembler.
Index
> Main > what is difference between big-endian and little-endian? |
Author |
|
antos 16 Jul 2016, 15:05
what is difference between big-endian and little-endian?
_________________ V0.01 |
|||
16 Jul 2016, 15:05 |
|
CandyMan 16 Jul 2016, 18:40
see there: https://en.wikipedia.org/wiki/Endianness
to reverse the byte order of a 32/64-bit register is BSWAP instruction _________________ smaller is better |
|||
16 Jul 2016, 18:40 |
|
antos 17 Jul 2016, 11:58
CandyMan wrote: see there: https://en.wikipedia.org/wiki/Endianness Well, i want to develop a OS for Intel X86_64 architecture, what i need to notice about Endianness? _________________ V0.01 |
|||
17 Jul 2016, 11:58 |
|
antos 17 Jul 2016, 15:12
Think i wrote a driver for USB 2.0, if i want to write memory to HDD, will i need to use BSWAP Instruction for converting memory to Big-Endian? Or if i want to read data from HDD, will i need to use BSWAP Instruction for converting data to Little-Endian?
And what is Offsets and Segment registers? |
|||
17 Jul 2016, 15:12 |
|
Trinitek 17 Jul 2016, 19:03
No, you don't need to use BSWAP unless you're reading something like a file header that uses big endian values.
A segment register selects a 64 kilobyte block of memory that you can then access with a general purpose register containing the offset into that block. I admire your willingness to learn, but you should probably read some documentation and tutorials first instead of asking us a million questions. |
|||
17 Jul 2016, 19:03 |
|
antos 17 Jul 2016, 22:10
Which tutorial? I find a Assembly tutorial on documentations, but it is was pretty old and so, writed for DOS.
Can you advice an up-to-date source? |
|||
17 Jul 2016, 22:10 |
|
Trinitek 17 Jul 2016, 22:25
If you're asking about segment registers, then 16-bit development in DOS would be appropriate. See the sticky post in the DOS forum: http://board.flatassembler.net/topic.php?t=9473
Unless you would rather target newer systems, in which case there are sticky posts in the other forums as well. |
|||
17 Jul 2016, 22:25 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.