Description:
Bulletin Board and Q&A for x86 assembly language topics. (Moderated)
|
|
|
unsigned/signed in asm
|
| |
Hi
How can i make sure, that an 32-Bit-Value (on a 32-Bit-System) is
unsigned (positive).
As exapmple : 0FFFFFFFFh : How can i make sure, that this is not -1 ?
If i call a function, that allows positive and negative arguments, what
have i to do ?
Here an example:
var dword 0
...... more »
|
|
How compilers implement objects in x86 assembly
|
| |
Hi, I'm learning x86 assembly on my free time and I'm trying to find how does high level compilers implement classes and objects in x86 asm. So far I saw some toy compilers that use structs, but the way I understand it, structs are abstraction feature provided by assemblers like MASM e FASM. How would they implement classes and objects without structs? Arrays and offsets?... more »
|
|
Challenge: More Instructions in Fewer Bytes
|
| |
Hi all,
I'm sorry if this is a bit naive. Long ago, in an IRC channel far
far away, the following idea for a challenge appeared:
Write two versions of the same routine/algorithm where the one using
more instructions is fewer bytes in the resulting binary.
This may be trivial, particularly since I'm not giving any restrictions... more »
|
|
How does this instruction assemble ?
|
| |
Hallo,
I have to use an assembler that can only assemble <= 386 instructions (don't ask ...).
I want to use instruction:
movnti es:[bx],eax
from a 16-bit (!) code segment. Does this assemble as:
; movnti es:[bx],eax
db 026h,00fh,0c3h,007h
026h : es segment override prefix... more »
|
|
Forcing reading and writing uncached
|
| |
Hallo,
I need to read/write memory mapped registers.
Suppose the BIOS / OS has not properly marked that memory mapped range as unc-cachable (UC).
Is there any instruction in the Intel instruction set so that on read I can bypass the cache and likewise on writing so as to ensure I don't read some... more »
|
|
Trying to find old versions of Tran's PMODE
|
| |
Trying to find old versions of Tran's PMODE,
preferably something in the late v2's
Anyone have an old copy or know where it's still available?
--
Brent C
(any direct replies should be sent to x87asm,
remove spam tastes awful and the periods)
|
|
masm include-problem
|
| |
Hi. I installed the masm32v11r
And then i geht this errors, when i start assembling:
\masm32\include\windows.inc(15 6) : error A2004: symbol type conflict : bool
\masm32\include\windows.inc(78 35) : error A2179: structure improperly
initialized
This are the parts of windows.inc:
Here at line 156: (symbol type conflict : bool)... more »
|
|
My Sincerest Apologies
|
| |
This is a message for Frank B. Kotler
Frank,
I just want to say how sorry I am that a minor metaphor matastasized
into a mountain of misery. At least, it did for me and those around
me.
It is often the case that we stumble in our ignorance, but I just want
you to know no harm was intended. I was just being a jerk in response... more »
|
|
"Wrap around" in protected mode ?
|
| |
Sorry if this is the wrong newsgroup:
I have a question about protected mode under x86:
Consider this instruction:
mov eax, ds:[bx] (mov eax, [bx])
talking about "normal" (not expand down) segments and for sake of simplicity a segment with 1-byte limit granularity:
the limit of a segment is compared against the OFFSET specified in say a... more »
|
|
Knuth's "Man or Boy"
|
| |
The following is a PL/I version of Donald Knuth's "Man or Boy" compiler test program:
morb: proc options (main) reorder;
dcl sysprint file;
dcl i fixed bin (31);
do i = 0 to 30;
put skip edit('i = ', i, a((i), x1, x2, x3, x4, x5))
(a(4), p'z9b', P'---,---,--9');... more »
|
|
|