DMA Problems

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
FlashBurn

DMA Problems

Post by FlashBurn »

These are my dma functions. The Problem is now that I get these errors from Bochs:

Code: Select all

[DMA  ] write to command register: value(14h) not 0x00
[DMA  ] write to command register: value(10h) not 0x00
What make I wrong?

[attachment deleted by admin]
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:DMA Problems

Post by Pype.Clicker »

well, it looks like BOCHS do not like you to put some non-nul value in the 0x08 (dma command) register ...

i dunno where it comes from, but you should maybe re-read your doc ...
FlashBurn

Re:DMA Problems

Post by FlashBurn »

OK, there seems not to be a problem with dma. Now I?ve read a sector from the floppy with dma. But the data is in the wrong order.

This is the data:

Code: Select all

4E000FE9
And so it has to be:

Code: Select all

E90F004E
Why is the data in the wrong order?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:DMA Problems

Post by Pype.Clicker »

hey, remember on intel, numbers are encoded with the least-significant byte first . so if you try to display 0x12345678 as a string (or if you look at it in memory), it will show as
0x78 0x56 0x34 0x12 ...
Post Reply