No, this is not the main reason why your code is wrong. The main reason is that characters and strings are different things and you ignore that.NunoLava1998 wrote:I realized this is beacuse i put the thing in a loop.
What is assignment makes pointer from integer without a cast
Re: What is assignment makes pointer from integer without a
-
- Member
- Posts: 273
- Joined: Sun Oct 09, 2016 4:38 am
- Libera.chat IRC: NunoLava1998
Re: What is assignment makes pointer from integer without a
Except i'm in protected mode.iansjack wrote:That's why your keyboard handler should be interrupt driven.NunoLava1998 wrote:I need to know how to halt until a key is pressed.
Developing TRIODIUM OS. Or call it Dixium if you want. It doesn't matter.
https://github.com/NunoLava1998/DixiumOS
https://github.com/NunoLava1998/DixiumOS
- hgoel
- Member
- Posts: 89
- Joined: Sun Feb 09, 2014 7:11 pm
- Libera.chat IRC: hgoel
- Location: Within a meter of a computer
Re: What is assignment makes pointer from integer without a
Hardware interrupts are a thing in protected mode.NunoLava1998 wrote:Except i'm in protected mode.iansjack wrote:That's why your keyboard handler should be interrupt driven.NunoLava1998 wrote:I need to know how to halt until a key is pressed.
"If the truth is a cruel mistress, than a lie must be a nice girl"
Working on Cardinal
Find me at [url=irc://chat.freenode.net:6697/Cardinal-OS]#Cardinal-OS[/url] on freenode!
Working on Cardinal
Find me at [url=irc://chat.freenode.net:6697/Cardinal-OS]#Cardinal-OS[/url] on freenode!
Re: What is assignment makes pointer from integer without a
So what?NunoLava1998 wrote:Except i'm in protected mode.iansjack wrote:That's why your keyboard handler should be interrupt driven.NunoLava1998 wrote:I need to know how to halt until a key is pressed.
-
- Member
- Posts: 273
- Joined: Sun Oct 09, 2016 4:38 am
- Libera.chat IRC: NunoLava1998
Re: What is assignment makes pointer from integer without a
We don't have the default real mode/V86 interrupts here in protected mode.So what?
Developing TRIODIUM OS. Or call it Dixium if you want. It doesn't matter.
https://github.com/NunoLava1998/DixiumOS
https://github.com/NunoLava1998/DixiumOS
-
- Member
- Posts: 501
- Joined: Wed Jun 17, 2015 9:40 am
- Libera.chat IRC: glauxosdever
- Location: Athens, Greece
Re: What is assignment makes pointer from integer without a
Hi,
But anyway, next time you should search more thoroughly. This is well-documented stuff.
Regards,
glauxosdever
He didn't mean real-mode interrupts. See PIC (programmable interrupt controller) and Exceptions (protected-mode reserved interrupt vectors).NunoLava1998 wrote:We don't have the default real mode/V86 interrupts here in protected mode.
But anyway, next time you should search more thoroughly. This is well-documented stuff.
Regards,
glauxosdever
Re: What is assignment makes pointer from integer without a
I'm sorry but you really, really don't have the required knowledge for OS development. And the sad part is that you seem totally unable to learn.NunoLava1998 wrote:We don't have the default real mode/V86 interrupts here in protected mode.So what?
Re: What is assignment makes pointer from integer without a
As they told me in my early days of me being on this forum, here spoonfeeding wouldn't get you anywhere. Isn't it enough spoonfeeding? Okay, there is one more spoon...
Strings are pointers to arrays of characters, which by most, if not all standards end with null terminator character (character of value 0).
8-bit characters are one byte integers used in user input and output most commonly used with ASCII, e.g. letters A-Z, numbers 0-9, many interpuction signs, some teletype instructions and text art symbols.
***Tries to write an OS without understanding most programming concepts.***
It may be very hard to stop yourself from your dream and goal, but you are 9 and should realise, that most of projects, including the ones not related to programming and computers, fail, especially those hobbyistic, goal-less and ones that does not make money. At least you made some experience.
Now you are ready to press that "Delete account". We may miss you couple months at least.
Strings are pointers to arrays of characters, which by most, if not all standards end with null terminator character (character of value 0).
8-bit characters are one byte integers used in user input and output most commonly used with ASCII, e.g. letters A-Z, numbers 0-9, many interpuction signs, some teletype instructions and text art symbols.
***Tries to write an OS without understanding most programming concepts.***
It may be very hard to stop yourself from your dream and goal, but you are 9 and should realise, that most of projects, including the ones not related to programming and computers, fail, especially those hobbyistic, goal-less and ones that does not make money. At least you made some experience.
Now you are ready to press that "Delete account". We may miss you couple months at least.
Re: What is assignment makes pointer from integer without a
x86 CPUs support the same 256 interrupt vectors in any processor mode.NunoLava1998 wrote:We don't have the default real mode/V86 interrupts here in protected mode.
Oh, you mean you can't use the BIOS interrupt handlers any more? You don't need them anyway.