How can I find the current date in intel x86 Assembly?
I need to find the find the current date in binary for Intel x86 Assembly on Windows. I'm allowed to use Windows procedures. ...
I need to find the find the current date in binary for Intel x86 Assembly on Windows. I'm allowed to use Windows procedures. ...
What was your favorite assembly language? ...
I have been searching online for the last two hours and the only thing I have found that matches what I need does not seem to work. I am trying to create a sleep/delay procedure in 16bit MASM Assembly x86 that will, say, print a character on the screen every 500ms. From the research I have done, it seems that there are three methods to ...
Hello community. I have an interesting question today. I need to convert some pokemon audio files to a list of 8-bit samples (0-255 values). I am writing an assembly routine on the MC6800 chipset that will require these sounds to be played. I plan on including an array with the 8-bit samples that the program will loop through when a fun...
.386 .model small,C .data .code AdjustedSum proc uses ebx ecx esi edi numbers:ptr, used:dword ;int AdjustedSum(int numbers[], int used);{ mov ebx, numbers ;move base address of array in ebx mov eax,0 ...
How is assembly faster than compiled languages if both are translated to machine code. I'm talking about truly compiled languages which are translated to machine code? Not C# or Java which are compiled to an intermediate language first and then compiled to native code by a software interpreter etc. In Wikipedia, I found something which ...
Why is returning a std::pair or boost::tuple so much less efficient than returning by reference? In real codes that I've tested, setting data by non-const reference rather than by std::pair in an inner kernel can speed up the code by 20%. As an experiment, I looked at three simplest-case scenarios involving adding two (predefined) integ...
I am writing a static analysis tool for an assignment, it analyses Java bytecode using the ASM library. One of the parts of ASM that we use requires (or at least, appears to require) that the class be loaded from the ClassLoader. We were hoping the tool would be able to analyse .class files without requiring them on the classpath. We al...
I'm trying to break into SSE2 and tried the following example program: #include "stdafx.h" #include <emmintrin.h> int main(int argc, char* argv[]) { __declspec(align(16)) long mul; // multiply variable __declspec(align(16)) int t1[100000]; // temporary variable __declspec(align(16)) int t2[100000]; // temporary variable __m128i mul...
EDIT: This is a followup to SSE2 Compiler Error This is the real bug I experienced before and have reproduced below by changing the _mm_malloc statement as Michael Burr suggested: Unhandled exception at 0x00415116 in SO.exe: 0xC0000005: Access violation reading location 0xffffffff. At line label: movdqa xmm0, xmmword ptr [t1+...
Using objdump to understand a binary and I realize I'm not fluent enough in ASM syntax. What does the following notion mean? xor %al,-0x1(%edx,%ecx,1) And while you're at it - what should I search for in order to find docs about such notions? ...
Hi, I'm tackling a trivial buffer overflow (yes, exploitation; but unrelated to the problem) I'm trying to figure out the fields in the memory map, when GCC's stack protector is enabled. As an illustration: $ ./overflow *** stack smashing detected ***: ./overflow terminated ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6(__for...
I have two packed quadword integers in xmm0 and I need to add them together and store the result in a memory location. I can guarantee that the value of the each integer is less than 2^15. Right now, I'm doing the following: int temp; .... movdq2q mm0, xmm0 psrldq xmm0, 8 movdq2q mm1, xmm0 paddq mm0,mm1 movd temp, mm0...
I'm attempting to write a very simple OS in ASM and C. (NASM assembler) I would like to access the sound card directly, with or without drivers. If I don't need drivers, how could I access and send a sample audio file to the sound card? (An example would be nice) If I do need drivers, is there anyway to interface them and call functions ...
I am trying to find references about different designs of metamorphic generators can someone point me to the right direction. I have gone through some papers in ACM but couldn't find what I am looking for. ...
Trying to understand how to link a function that is defined in a struct, the function is in the assembly code, and am trying to call it from c. I think am missing a step cause when I call the function, I get an unresolved external symbol... ;Assembly.asm .686p .mmx .xmm .model flat include Definitions.inc .code ?Initialize@Foo@@SIXPA...
As the title states, why would one use "movl $1, %eax" as opposed to, say, "movb $1, %eax", I was told that movl would zero out the high order bits of %eax, but isn't %eax a register that's equivalent to the size of the system's wordsize? meaning that movl is in actuality an integer operation (and not a long?) I'm clearly a bit confused...
Hey guys how can i open cd drive in assembly(masm 6.1)? platform is 32bit and os is windows thanx ...
I recently developed a Visual C++ console application which uses inline SSE2 instructions. It works fine on my computer, but when I tried it on another, it returns the following error: The system cannot execute the specified program Note that the program worked on the other computer before introducing the SSE2 code. Any suggestions? ...
I'm doing some assembly-level debugging in gdb. Is there a way to get gdb to show me the current assembly instruction in the same way that it shows the current source line? The default output after every command looks like this: 0x0001433f 990 Foo::bar(p); This gives me the address of the current instruction, but I have t...