Assembly language (asm) programming questions. Also specify the processor or instruction set your question is related to as well as what assembler you are using. **NOTE**: For .NET assemblies, use the tag [.net-assembly] instead.
-1
votes
1answer
24 views
Isnt there a better way to program in assembly on windows?
I want to learn assembly for some time now. But I get put off by the fact that in windows you have to call API functions, and everything is about win32 and nothing really about the console.
I have ...
1
vote
0answers
24 views
Writing assembler in lisp [on hold]
Currently I have a decent understanding of Common Lisp, and little to no assembly. If I was interested in writing an assembler in CL for amd64 for a learning exercise in both, would this be a ...
0
votes
0answers
6 views
I am trying to assemble and link this program in masm32 version 6.14. but would get errors.
This is the program I am trying to assemble & link. but would get linker error:
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
...
0
votes
0answers
15 views
Assembly Language, CUSP query
I'm not sure how many of you can help since this is a unique assembly language and I don't think it's all too common outside of my textbook. The problem is to read in a whole file from a file of type ...
0
votes
0answers
10 views
Which version of assembly does OllyDbg disassemble binary to?
So I understand that there are many assemblers such as MASM, FASM, NASM, etc.
But which version is the disassembler in OllyDbg and Cheat Engine?
1
vote
1answer
30 views
Using a String vector in assembly
I need to do a array of strings in intel 8086 assembly like this, for example:
.DATA
myvec dw 5 dup('string1','string2','string3','string4','string5')
(...)
.CODE
lea si, myvec[1]
call ...
0
votes
1answer
39 views
understanding Nvidia Kepler Assembly instructions
I came across this document
cuobjdump.pdf.
It lists the Fermi and Kepler instruction but with no additional explanation.
Apart from the usual add, subtract, multiply, etc .. I do not get what ...
1
vote
0answers
21 views
Why are .dynsym entries in ELF64 executable uninitialized?
I have an x86-64 executable and I am trying to analyze it using static methods. Starting from _start, I see a jump to 0x400648 - an address within the PLT - which contains the instruction jmp ...
1
vote
2answers
34 views
How can I determine which instructions are supported on which Intel processor families?
Just as an example, I want to know exactly which of the x86 processor families support the fisttp instruction. I'm pretty certain that it's supported on the Pentium 4 and beyond, but I'd like to have ...
0
votes
1answer
29 views
Assembly, the meaning behind the colon “:”
(TASM)
I'm new to assembly and I'm currently reading a guide that would frequently express things like "ax:bx","ds:dx","ss:sp".
I'll use one of the above in an example from the book.
"Notice that ...
0
votes
0answers
21 views
How to actually schedule 2 programs in linux?
I have 2 .asm programs (x86 assembly) P1.asm and P2.asm which I want to schedule in the following manner - P1 ----> P2 ----> P1 . I want schedule these programs based on a priority (P1 has more ...
5
votes
2answers
148 views
Need an explanation of a particular security optimisation
I was reading a book [rus] (I'm sorry, I can not find an English version at the moment) written by Kris Kaspersky explaining the philosophy and techniques of software security.
There is one example ...
5
votes
1answer
54 views
How can I write self-modifying code that runs efficiently on modern x64 processors?
I'm trying to speed up a variable-bitwidth integer compression scheme and I'm interested in generating and executing assembly code on-the-fly. Currently a lot of time is spent on mispredicted ...
-2
votes
1answer
30 views
Warped cursor in assembly [on hold]
Using BIOS video interrupts, I can finally move my cursor around the screen but when it reaches the end of the screen it disappears. I need for it to appear on the other side, I mean if it goes ...
1
vote
2answers
42 views
What's the corresponding prefix in arm assembly for “lock” in x86?
I have a x86 assembly code:
unsigned int oldval;
__asm__ __volatile__ (
"movl $1, %0 \n"
"lock xaddl %0, (%1) \n"
: "=a" (oldval) : "b" (n))l;
return oldval;
and I want to translate it ...