flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > OS Construction > CD/DVD/BD Loader: INT 13h, Function 42 help...

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



Joined: 02 Apr 2010
Posts: 372
Location: Munich
I wonder if there is a difference between

TIMES 33 db 0

and

db 33 dup(0)

Shocked
Post 09 Mar 2012, 00:39
View user's profile Send private message Send e-mail Reply with quote
smiddy



Joined: 31 Oct 2004
Posts: 417

revolution wrote:
smiddy: Are you sure that 0x1fe stack is enough? Have you determined why you code failed on loading to 0xf000? I can understand why 0xf800 failed because of stack overwriting but why fail at 0xf000 unless the stack usage is more than 0x800.

It started at SS=0 and SP=0, it decremented towards 0:FFFF, 0:FFFE, ..., 0:F000 or somewhere within that 2048 bytes, I assume. I reverted back from using single sector loads to 32 sectors per load, and that also worked now. I researched the INT 13h Function 42h buffer, and I couldn't find anything to indicate it writes outside of the BIOS area. I will continue to monitor it to see how it goes, but for now it loads my OS and the OS runs as expected (minus the bugs it already had). Smile
Post 09 Mar 2012, 03:03
View user's profile Send private message Reply with quote
smiddy



Joined: 31 Oct 2004
Posts: 417

edfed wrote:
Smile it looks like a tutorial with all the comments. cool! Very Happy

That is kind of the plan. My in line with my own learning versus coming back to it many years later. I wrote my OS originally in 2005 and it wasn't much, but now I'm having fits trying to remember what I did and in the places where I didn't comment I am having to relearn it. That's not too bad, because that is the point of what I'm doing, to learn to code and to learn the x86 hardware better. Smile Thanks for the complement!
Post 09 Mar 2012, 03:28
View user's profile Send private message Reply with quote
smiddy



Joined: 31 Oct 2004
Posts: 417

shutdownall wrote:
I wonder if there is a difference between

TIMES 33 db 0

and

db 33 dup(0)

Shocked

Convention? I like the way you did the second one better perhaps, uses less space. Wink
Post 09 Mar 2012, 03:29
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, 3

< 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 cannot download files in this forum


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2012, Tomasz Grysztar.