uint8,uint16,uint32???
uint8,uint16,uint32???
What are these?
Are those a C feature or should we define it, for example unsigned short int uint8.
i find those most of the code in osdev.
Re: uint8,uint16,uint32???
They're typedefs, often used for portability.
EDIT: Added semicolons (Oops! I'm not much of a C guy, more into ASM)
Code: Select all
typedef unsigned char uint8;
typedef unsigned short int uint16;
typedef unsigned int uint32;
typedef unsigned long int uint64;
Not sane
Just remember, FIND Is Not DOS
Just remember, FIND Is Not DOS
Re: uint8,uint16,uint32???
What are they usedfor and can we use unsigned int instead of unsigned short int?
Re: uint8,uint16,uint32???
Depends. You in real mode?
EDIT: They are used so that you only really have to use a different compiler and ASM on different platforms. You can change those typedefs as needed in each arch
EDIT: They are used so that you only really have to use a different compiler and ASM on different platforms. You can change those typedefs as needed in each arch
Not sane
Just remember, FIND Is Not DOS
Just remember, FIND Is Not DOS
Re: uint8,uint16,uint32???
Mine is protected mode(32 bit) vey powerful with ATA,IDE,VGA.But i never used these so i wanted to know what are those.
Re: uint8,uint16,uint32???
Then no. Long is twice CPU-bit, Short is half, char is 8 bits (Size of an ASCII character...)
I state it in this thread as well. I doubt you got all those features. A disk image would be good, or source, as proof
I state it in this thread as well. I doubt you got all those features. A disk image would be good, or source, as proof
Not sane
Just remember, FIND Is Not DOS
Just remember, FIND Is Not DOS
Re: uint8,uint16,uint32???
Tell me which driver you want ATA,AHCI,IDE(Comes in AHCI),NTFS(Little Dumb can just read)
Even i kno long is twice.I was showing some i did not kno the number 8 in the uint8 was the niumber of bits.
Even i kno long is twice.I was showing some i did not kno the number 8 in the uint8 was the niumber of bits.
Re: uint8,uint16,uint32???
To be honest id love to see some ntfs code I have some other stuff you don't that we could "trade"
Re: uint8,uint16,uint32???
Just wait for a week I will post it here.Becaz i hav just started.
And also i ahv posted the base of the NTFS Code somewhere the forume today.
Mostly it the Keyboard Topic
And also i ahv posted the base of the NTFS Code somewhere the forume today.
Mostly it the Keyboard Topic
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
Re: uint8,uint16,uint32???
Wow, talk about the blind leading the blind.Unkn0wn1 wrote:Then no. Long is twice CPU-bit, Short is half, char is 8 bits (Size of an ASCII character...)
Re: uint8,uint16,uint32???
http://en.wikipedia.org/wiki/C_data_types, See Fixed width integer types which include (u)intN_t.
Re: uint8,uint16,uint32???
Ooops... Well, I haven't really got into that stuff, and in this case, it is, so I kinda made stupid assumptions...
Not sane
Just remember, FIND Is Not DOS
Just remember, FIND Is Not DOS