What is assignment makes pointer from integer without a cast

Programming, for all ages and all languages.
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: What is assignment makes pointer from integer without a

Post by Kevin »

NunoLava1998 wrote:I realized this is beacuse i put the thing in a loop.
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.
Developer of tyndur - community OS of Lowlevel (German)
NunoLava1998
Member
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

Post by NunoLava1998 »

iansjack wrote:
NunoLava1998 wrote:I need to know how to halt until a key is pressed.
That's why your keyboard handler should be interrupt driven.
Except i'm in protected mode.
Developing TRIODIUM OS. Or call it Dixium if you want. It doesn't matter.

https://github.com/NunoLava1998/DixiumOS
User avatar
hgoel
Member
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

Post by hgoel »

NunoLava1998 wrote:
iansjack wrote:
NunoLava1998 wrote:I need to know how to halt until a key is pressed.
That's why your keyboard handler should be interrupt driven.
Except i'm in protected mode.
Hardware interrupts are a thing in protected mode.
"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!
User avatar
iansjack
Member
Member
Posts: 4689
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: What is assignment makes pointer from integer without a

Post by iansjack »

NunoLava1998 wrote:
iansjack wrote:
NunoLava1998 wrote:I need to know how to halt until a key is pressed.
That's why your keyboard handler should be interrupt driven.
Except i'm in protected mode.
So what?
NunoLava1998
Member
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

Post by NunoLava1998 »

So what?
We don't have the default real mode/V86 interrupts here in protected mode.
Developing TRIODIUM OS. Or call it Dixium if you want. It doesn't matter.

https://github.com/NunoLava1998/DixiumOS
glauxosdever
Member
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

Post by glauxosdever »

Hi,

NunoLava1998 wrote:We don't have the default real mode/V86 interrupts here in protected mode.
He didn't mean real-mode interrupts. See PIC (programmable interrupt controller) and Exceptions (protected-mode reserved interrupt vectors).

But anyway, next time you should search more thoroughly. This is well-documented stuff.


Regards,
glauxosdever
User avatar
iansjack
Member
Member
Posts: 4689
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: What is assignment makes pointer from integer without a

Post by iansjack »

NunoLava1998 wrote:
So what?
We don't have the default real mode/V86 interrupts here in protected mode.
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.
User avatar
Ycep
Member
Member
Posts: 401
Joined: Mon Dec 28, 2015 11:11 am

Re: What is assignment makes pointer from integer without a

Post by Ycep »

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.
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: What is assignment makes pointer from integer without a

Post by Kevin »

NunoLava1998 wrote:We don't have the default real mode/V86 interrupts here in protected mode.
x86 CPUs support the same 256 interrupt vectors in any processor mode.

Oh, you mean you can't use the BIOS interrupt handlers any more? You don't need them anyway.
Developer of tyndur - community OS of Lowlevel (German)
Post Reply