OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 8:49 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: What is assignment makes pointer from integer without a
PostPosted: Thu Dec 08, 2016 6:44 am 
Offline
Member
Member

Joined: Sun Feb 01, 2009 6:11 am
Posts: 1070
Location: Germany
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)


Top
 Profile  
 
 Post subject: Re: What is assignment makes pointer from integer without a
PostPosted: Thu Dec 08, 2016 8:07 am 
Offline
Member
Member

Joined: Sun Oct 09, 2016 4:38 am
Posts: 273
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


Top
 Profile  
 
 Post subject: Re: What is assignment makes pointer from integer without a
PostPosted: Thu Dec 08, 2016 8:10 am 
Offline
Member
Member
User avatar

Joined: Sun Feb 09, 2014 7:11 pm
Posts: 89
Location: Within a meter of a computer
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 #Cardinal-OS on freenode!


Top
 Profile  
 
 Post subject: Re: What is assignment makes pointer from integer without a
PostPosted: Thu Dec 08, 2016 8:45 am 
Online
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
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?


Top
 Profile  
 
 Post subject: Re: What is assignment makes pointer from integer without a
PostPosted: Thu Dec 08, 2016 12:04 pm 
Offline
Member
Member

Joined: Sun Oct 09, 2016 4:38 am
Posts: 273
Quote:
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


Top
 Profile  
 
 Post subject: Re: What is assignment makes pointer from integer without a
PostPosted: Thu Dec 08, 2016 1:11 pm 
Offline
Member
Member

Joined: Wed Jun 17, 2015 9:40 am
Posts: 501
Location: Athens, Greece
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


Top
 Profile  
 
 Post subject: Re: What is assignment makes pointer from integer without a
PostPosted: Thu Dec 08, 2016 1:21 pm 
Online
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
NunoLava1998 wrote:
Quote:
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.


Top
 Profile  
 
 Post subject: Re: What is assignment makes pointer from integer without a
PostPosted: Thu Dec 08, 2016 2:52 pm 
Offline
Member
Member
User avatar

Joined: Mon Dec 28, 2015 11:11 am
Posts: 401
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.


Top
 Profile  
 
 Post subject: Re: What is assignment makes pointer from integer without a
PostPosted: Fri Dec 09, 2016 6:00 am 
Offline
Member
Member

Joined: Sun Feb 01, 2009 6:11 am
Posts: 1070
Location: Germany
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)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 53 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group