you dont install it.
just run it normally from the commandline.
No offence though, if you cant get this then i doubt you are up to OS development. Also, its called NASM not nasam.
~Andrew
Search found 387 matches
- Wed Oct 13, 2010 7:32 pm
- Forum: Assembly Language
- Topic: [how to install NASM-2.09.02 on XP
- Replies: 2
- Views: 32398
- Sat Aug 21, 2010 11:22 pm
- Forum: Beginning OS Development
- Topic: compute next cluster
- Replies: 9
- Views: 53921
Re: compute next cluster
The multiplication by 8 is subtle. It is because you are taking an integer and using it as a byte offset.
- Fri Aug 13, 2010 9:13 am
- Forum: Beginning OS Development
- Topic: Problem with floppy driver - IRQ6 not firing
- Replies: 17
- Views: 40089
Re: Problem with floppy driver - IRQ6 not firing
The intel manual is stating that interupts should not be enabled during the execution of an interrupt routine. As a programmer, you have 2 choices in the IDT. You can use an Interrupt Gate which will automatically disable interrupts for you, or you can use a Trap Gate which wont. Therefore, the actu...
- Thu Aug 12, 2010 7:49 pm
- Forum: Beginning OS Development
- Topic: Problem with floppy driver - IRQ6 not firing
- Replies: 17
- Views: 40089
Re: Problem with floppy driver - IRQ6 not firing
I point you both at the intel developer manual which has the following snippets in: Trap and Interrupt gates are similar, and their descriptors are structurally the same, they differ only in the type field. The difference is that for interrupt gates, interrupts are automatically disabled upon entry ...
- Thu Aug 12, 2010 7:09 pm
- Forum: Beginning OS Development
- Topic: loading second stage bootloader
- Replies: 4
- Views: 14696
Re: loading second stage bootloader
More importently, if you are wanting to support FAT12 then stage2 will almost certainly not be on the second sector of the disk, unless you mess around with the number of reserved sectors
~Andrew
~Andrew
- Thu Aug 12, 2010 1:53 pm
- Forum: Beginning OS Development
- Topic: Offset?
- Replies: 12
- Views: 27648
Re: Offset?
Because your questions are not making logical sense. You asked "what does offset mean" and had two answers. One for the question "what does the word offset mean" and one for the question "what does the offset in this specific case mean". The fact that you are still asking the same origininal questio...
- Thu Aug 12, 2010 1:46 pm
- Forum: Beginning OS Development
- Topic: Offset?
- Replies: 12
- Views: 27648
Re: Offset?
Is english your first language?
- Tue Aug 10, 2010 7:14 pm
- Forum: General Programming
- Topic: OS Development Series code question
- Replies: 34
- Views: 159848
Re: OS Development Series code question
That maths is looking ok to me.
However, if your kernel is coded correctly then a 1K stack should be fine. After the initial setup, all stack is needed for is interrupt handlers.
Having said that, a 22K kernel is rather small and you will need more space than that eventually.
~Andrew
However, if your kernel is coded correctly then a 1K stack should be fine. After the initial setup, all stack is needed for is interrupt handlers.
Having said that, a 22K kernel is rather small and you will need more space than that eventually.
~Andrew
- Tue Aug 10, 2010 5:12 pm
- Forum: Beginning OS Development
- Topic: Problem with floppy driver - IRQ6 not firing
- Replies: 17
- Views: 40089
Re: Problem with floppy driver - IRQ6 not firing
I cant see anything obviously wrong.
Can you get the interrupt to fire in non DMA mode?
Can you get the interrupt to fire in non DMA mode?
- Tue Aug 10, 2010 5:07 pm
- Forum: Beginning OS Development
- Topic: compute next cluster
- Replies: 9
- Views: 53921
Re: compute next cluster
Thats an implementation detail of FAT12. In FAT12, each cluster pointer is 12 bits long, but stored in a packed format. Therefore, we get the index which we are looking for, multiply it by 8 to get it in terms of bytes, then multiply by 3/2 to get in terms of 12bits per entry. Then we have the locat...
- Tue Aug 10, 2010 2:29 pm
- Forum: Beginning OS Development
- Topic: compute next cluster
- Replies: 9
- Views: 53921
Re: compute next cluster
This takes a bit of understanding of binary arithmatic. mov cx, ax ; copy current cluster mov dx, ax ; copy current cluster This means that ax = cx = dx; They are all the same value shr dx, 0x0001 ; divide by two This takes dx and divides it by two. dx now equals ax/2 (and by association, cx/2) add ...
- Tue Aug 10, 2010 2:24 pm
- Forum: Beginning OS Development
- Topic: Offset?
- Replies: 12
- Views: 27648
Re: Offset?
Nope.
I have no idea where you got "offset segmentation" from but its really confusing matters.
The Offset is a number, and the Segment is a number. 'Offset' and 'Segment' are just names for numbers, in the same way you might use x or y in algebra.
~Andrew
I have no idea where you got "offset segmentation" from but its really confusing matters.
The Offset is a number, and the Segment is a number. 'Offset' and 'Segment' are just names for numbers, in the same way you might use x or y in algebra.
~Andrew
- Tue Aug 10, 2010 2:21 pm
- Forum: Beginning OS Development
- Topic: Problem with floppy driver - IRQ6 not firing
- Replies: 17
- Views: 40089
Re: Problem with floppy driver - IRQ6 not firing
You are right - no one has used 5" floppies.About the 5" floppies, i see no reason why you would want to support it, who ever has those?
However, what I assume you mean is 5.25" floppies from back in the day, which would make me, and quite a few other people nobody.
~Andrew
- Tue Aug 10, 2010 2:04 pm
- Forum: Beginning OS Development
- Topic: Offset?
- Replies: 12
- Views: 27648
Re: Offset?
Can you explain this in detail Real mode (16bit mode) addressing works using the Segment:Offset method. Both segment and offset are two numbers. In this case, offset is just a name for a number. Im not sure how else to describe it. In the case that you gave, the segment value was 0x7C0 and the offs...
- Mon Aug 09, 2010 10:31 pm
- Forum: General Programming
- Topic: OS Development Series code question
- Replies: 34
- Views: 159848
Re: OS Development Series code question
That will move the stack pointer. However, make sure that you disable interupts whilst doing so otherwise the pipeline creates a state where you dont actually have a valid stack. Also, ensure that the address you are moving to is readable and writeable by the kernel (at the least) and if you have en...