CI>Hello everybody! ;)
CI>Is anyone here able tell me how to make direct access to the memory??
CI>I'm very new to assembler so a hints would certainly be very appreciated.
Do you want to access it in real mode or protected mode? The access methods
are slightly different.
CI>Is it possible at all under Win95 (I am planning fast graphics for the
CI>Winslows)
Unfortunately, *I* am unable to be of much help here, since I don't yet have
Windows 95.
CI>I also like to know which of the following is the quickest :
CI>IF thing1 > 0;
this one is reasonably fast ; 486 386 286 8086 clocks
MOV AX, [thing1] ; 1 4 5 14
CMP AX, 0 ; 1 2 3 4
JG @@1 ; 1 3 3 4
; 3 9 11 22
; whether it is a jg, jng, ja, or jna, etc. makes little difference, since
; they all take the same amount of time. The times shown are for it not
; jumping.
CI>IF Not thing1 = 0;
smart compilers would do this:
MOV AX, [thing1] ; 1 4 5 14
OR AX, AX ; 1 2 2 3
JNZ @@1 ; 1 3 3 4
; 3 9 10 21
CI>or is there some other way??
If you're trying to do it through assembly language instead of a high level
language, then you can make a minor speed improvement:
CMP [thing1], 0 ; 2 5 6 16
JNZ @@1 ; 1 3 3 4
; 3 8 9 20
One clock less for processors before the 486.
CI>I am using it for a transparent filtering procedure. All black should be
CI>"invisible" (or any other color)
If you're trying to do sprite transparency, I suggest using some type of run-
length encoding for the images.
((Cloud))
MauveCloud@juno.com
* OLX 2.2 * Call The Wrong Number BBS (209/943-1880) - 4nodes @14.4k
--- PCBoard (R) v15.3/M 10
---------------
* Origin: Next time, Dial The Wrong Number! (209) 943-1880 (1:208/205)
|