flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Interrupts screwin' up? (Lol, sounds like rap)

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
rhyno_dagreat



Joined: 31 Jul 2006
Posts: 487
Location: Maryland, Unol Daleithiau
rhyno_dagreat 24 Sep 2006, 03:15
I have been trying this a couple of times, and realized that when I tried an automatic stringing method in my interrupt (and anywhere else for that matter), I get Error 13 from my OS which is the "General Protection Fault Exception", and I'm not sure why.

Here's the code that I've done for the interrupt version with the string method that my OS doesn't like:

Code:
        mov ax, 10h
        mov ds, ax
        mov ebx, 0B8000h
        mov si, TimerEnabled
        strloop:
                lodsb
                mov byte [ds:ebx], al
                inc ebx
                mov byte [ds:ebx], 1Bh
                cmp ax, 0
                je done
                inc ebx
                inc ax
                jmp strloop
done:
        ret   
    


I'm wondering if I'm exceeding my allotted amount of memory and have to write in info to set up the A20 line... oh well.

Again, thank you for your time and sorry if I am being bothersome to any of you all.

EDIT: Man... I just keep shootin' myself in the foot, don't I?
I replaced the "ret" with "iret", and it worked perfectly!

I guess I thought since done is a standard label, not an interrupt to its own right that I could just use ret... Embarassed Laughing
Post 24 Sep 2006, 03:15
View user's profile Send private message Reply with quote
Niels



Joined: 17 Sep 2006
Posts: 255
Niels 24 Sep 2006, 13:37
Hello rhyno_dagreat,

The best advise that I can give you at this point:

When I play the saxophone on my (musical)keyboard, I have to think/play like a saxophone-player; Of course nothing beats a real sax. Smile

Niels.
Post 24 Sep 2006, 13:37
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 24 Sep 2006, 16:05
rhyno_dagreat wrote:
Thanks again Dex. BTW, I tried your OS, and may I say it's pretty freakin' awesome man. Smile Keep up the good work!

Thanks,
The best advise that I can give you, is to keep doing what your doing and remember in Japan there is only one word for "learn" and that the same word they use for "to copy", your learning just the same way as we all learnt.
Also you only learn by getting mistakes and then fixing them.
Post 24 Sep 2006, 16:05
View user's profile Send private message Reply with quote
Niels



Joined: 17 Sep 2006
Posts: 255
Niels 24 Sep 2006, 16:42
@Dex4u, with all do respect for you:

I don't speak japanese, but I know the japanese-people as integer, honour, insight and wisdom.

So I do think a japanese-sensei would agree when I say:
Many people do copy, but didn't learn. Many will protect what is not understood.


ps.
I do agree, Dex4u, learning by example is the way to learn. Smile
Post 24 Sep 2006, 16:42
View user's profile Send private message Reply with quote
Niels



Joined: 17 Sep 2006
Posts: 255
Niels 24 Sep 2006, 17:24
Many refuse the Way of Won.
Post 24 Sep 2006, 17:24
View user's profile Send private message Reply with quote
rhyno_dagreat



Joined: 31 Jul 2006
Posts: 487
Location: Maryland, Unol Daleithiau
rhyno_dagreat 25 Sep 2006, 04:12
Thank you all for the advice! It's all been taken to mind and heart and hopefully, I will be able to remember all I learn Razz
Post 25 Sep 2006, 04:12
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.