Xref: utzoo comp.os.msdos.programmer:2705 comp.sys.ibm.pc.misc:5315 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!wuarchive!udel!rochester!kodak!uupsi!sunic!news.funet.fi!funic!santra!saha.hut.fi!c37189h From: c37189h@saha.hut.fi (Harri "Haba" Suomalainen) Newsgroups: comp.os.msdos.programmer,comp.sys.ibm.pc.misc Subject: Re: 386 and EGA-card Message-ID: <1991Jan7.165104.25541@santra.uucp> Date: 7 Jan 91 16:51:04 GMT References: Sender: news@santra.uucp (Cnews - USENET news system) Reply-To: c37189h@saha.hut.fi (Harri "Haba" Suomalainen) Organization: Helsinki University of Technology, FINLAND Lines: 26 sverrehu@ifi.uio.no (Sverre H Huseby) writes: >I have tried clearing the EGA graphics screen (mode 10h) >in the following two ways: > 8086: > xor ax, ax > mov cx, NUM_BYTES / 2 > rep stosw > 80386: > xor eax, eax > mov cx, NUM_BYTES / 4 > rep stosd > >The 386-routine takes almost the same amount of time as >does the 8086-routine. If it were 32 bit memory 386 would be a lot faster. However, I doubt you haveing a 32 bit EGA. Instead your EGA is 8 or 16 bit. As accessing memory on EGA board is the speed limiting factor there shouldn't be big differences in speed if both EGAs are the same type. (Of cource, higher clock speed with 386 speeds up things unless you gotta use waitstates for the EGA). -hs -- Harri Suomalainen c37189h@saha.hut.fi haba@otax.tky.hut.fi