1
0
Fork 0

no message

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1312
This commit is contained in:
Ulf Wohlers 2003-10-13 19:44:47 +00:00
parent 7b27e666f2
commit 55591a56da
18 changed files with 246 additions and 41 deletions

View file

@ -212,7 +212,7 @@ INLINE void ResetDMA8(DMA_CHANNEL * chan) {
chan->address=(chan->page << 16)+chan->base_address;
chan->current_count=chan->base_count+1;
chan->current_address=chan->base_address;
LOG(LOG_DMA,LOG_NORMAL)("Setup at address %X:%X count %X",chan->page<<12,chan->base_address,chan->current_count);
// LOG(LOG_DMA,LOG_NORMAL)("Setup at address %X:%X count %X",chan->page<<12,chan->base_address,chan->current_count);
}
Bitu DMA_8_Read(Bitu dmachan,Bit8u * buffer,Bitu count) {

View file

@ -24,7 +24,9 @@ IO_WriteBlock IO_WriteTable[IO_MAX];
void IO_Write(Bitu num,Bit8u val) {
if (num<IO_MAX) IO_WriteTable[num].handler(num,val);
else LOG(LOG_IO,LOG_WARN)("IO:Out or range write %X2 to port %4X",val,num);
else {
LOG(LOG_IO,LOG_WARN)("IO:Out or range write %X2 to port %4X",val,num);
}
}
Bit8u IO_Read(Bitu num) {

View file

@ -242,14 +242,20 @@ void mem_memcpy(PhysPt dest,PhysPt src,Bitu size) {
void MEM_BlockRead(PhysPt pt,void * data,Bitu size) {
Bit8u * write=(Bit8u *) data;
while (size--) {
*write++=mem_readb_inline(pt++);
// *write++=mem_readb_inline(pt++);
*write = mem_readb(pt);
write++;
pt++;
}
}
void MEM_BlockWrite(PhysPt pt,void * data,Bitu size) {
Bit8u * read=(Bit8u *) data;
while (size--) {
mem_writeb_inline(pt++,*read++);
// mem_writeb_inline(pt++,*read++);
mem_writeb(pt,*read);
pt++;
read++;
}
}
@ -810,7 +816,7 @@ HostPt MEM_GetBlockPage(void) {
memory.block.cur_page+=4096;
} else {
AllocBlock * newblock=new AllocBlock;
memset(newblock,0,sizeof(AllocBlock)); //zero new allocated memory
memset(newblock,0xcd,sizeof(AllocBlock)); //zero new allocated memory
newblock->next=memory.block.cur_block;
memory.block.cur_block=newblock;
@ -830,6 +836,11 @@ static void MEM_ShutDown(Section * sec) {
}
}
void MEM_SetRemainingMem(Bitu remaining)
{
};
void MEM_Init(Section * sec) {
Bitu i;
Section_prop * section=static_cast<Section_prop *>(sec);

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: timer.cpp,v 1.16 2003-09-01 20:16:59 qbix79 Exp $ */
/* $Id: timer.cpp,v 1.17 2003-10-13 19:44:47 finsterr Exp $ */
#include "dosbox.h"
#include "inout.h"
@ -116,7 +116,7 @@ static void write_latch(Bit32u port,Bit8u val) {
case 0x00: /* Timer hooked to IRQ 0 */
PIC_RemoveEvents(PIT0_Event);
PIC_AddEvent(PIT0_Event,p->micro);
LOG(LOG_PIT,LOG_NORMAL)("PIT 0 Timer at %.3g Hz mode %d",PIT_TICK_RATE/(double)p->cntr,(Bit32u)p->mode);
// LOG(LOG_PIT,LOG_NORMAL)("PIT 0 Timer at %.3g Hz mode %d",PIT_TICK_RATE/(double)p->cntr,(Bit32u)p->mode);
break;
case 0x02: /* Timer hooked to PC-Speaker */
// LOG(LOG_PIT,"PIT 2 Timer at %.3g Hz mode %d",PIT_TICK_RATE/(double)p->cntr,p->mode);