assembly

Address Error in Assembly (ColdFire MCF5307)

Taking my first course in assembly language, I am frustrated with cryptic error messages during debugging... I acknowledge that the following information will not be enough to find the cause of the problem (given my limited understanding of the assembly language, ColdFire(MCF5307, M68K family)), but I will gladly take any advice. ......

x86 asm instruction set: Any _searchable_ offline reference?

I'm somewhat new to assembly and have to look up the x86 instructions every now and then. Searching the web for every other opcode gets annoying after a while. Then there are the Intel Reference Manuals, but the contents page doesn't have direct links to the various sections in the pdf file, and doesn't list the 'true' page name but inst...

Is there a complete x86 assembly language reference that uses AT&T syntax?

Ideally there would be a version of Intel's Software Developer's Manuals written in AT&T syntax, but I would be happy to find anything that is close enough. ...

What is the difference between assembly code and bytecode?

While in the search for the various differences in the meanings of source code, bytecode, assembly code, machine code, compilers, linkers, interpreters, assemblers and all the rest, I only got confused on the difference between bytcode and assembly code. Particularly the introduction this wikipedia article to describe CIL confused me ...

MSVC x86 inline assembler switch statement

how do i declare a jump table in inline assembly language? I want to do the code below, but msvc is not taking the dd lines. I also tried _asm _emit offset label1 but it only spit out 1 byte _asm _emit (offset label1) >> 8 doesn't compile either so I can't do it a byte at a time. _asm { jmp skiptable jmptable: dd offset label...

Read a buffer of unknown size (Console input)

Hi. I'm a little behind in my X86 Asm class, and the book is making me want to shoot myself in the face. The examples in the book are insufficient and, honestly, very frustrating because of their massive dependencies upon the author's link library, which I hate. I wanted to learn ASM, not how to call his freaking library, which calls mor...

MASM32 What does 'default code distance mean'?

Dear All, This symbol used in MASM32: @CodeSize Returns an integer representing the default code distance. I'm trying to understand what 'default code distance' means? Tony ...

tell gdb to disassemble "unknown" code

hi, is it possible to configure gdb in order to debug assembly code when there are no debug symbols or no sources available ? I mean showing assembly instruction by assembly instruction when performing a step by step debug (next /step commands) (not desassembling all the function. just the next instruction that will be executed) Regards...

Assembler and C++ relation

Is there any tutorial or explanation anywhere on how C++ objects translate into assembler instructions moving data between registers... I don't really understand how we are manipulating object in higher level languages where in Assembler you're essentially moving data between registers? Plus doing some basic operations on them. ...

moving data between Assembler Registers

Dear All, What is the purpose of just several 'mov' type statements one after another in Assembler. It seems to me that just moving data between different registers is rather 'purposeless', although it most likely not so. Example: Worker work = new Worker(); // C# statement 00000035 B9 40 9E 31 00 mov ecx,319E40h 0000003...

Extended Interrupt 13, Reading an unformatted Disk.

It's been a while since I did any ASM, and decided to once again try and write a small bootloader, testing with qemu. My issue is with interupt 13, for some reason the carry flag is being set, so the read is failing. Currently, my disk image looks like: 512 Byte BootLoader <- This (as far as I'm aware) Is block 0 in LBA Main Function <...

C++, an "impossible" behavior

If you've been programming for a while then you probably noticed something completely impossible occurs every now and then for which you are convinced there is no possible explanation ("IT'S A COMPILER BUG!!"). After you find out what it was caused by though you are like "oooohhh". Well, it just happened to me :( Here AuthDb is NOT NUL...

lower level assembly language? (how are processor instructions implemented?)

So the lowest level we can "program" is individual instructions on a processor, but those instructions had to be programmed somehow in the first place. How does a processor know what to do when an instruction is run? ...

Assembly: Invalid effective address

I'm new to assembly (as you can plainly see) and I'm trying to compile the following: hex_charmap db '0123456789ABCDE' mov al, [hex_charmap + ax] However I get the following error on line 2: error: invalid effective address What does this mean and how can I fix it? ...

Getting Jersey and Hibernate to work together?

I've got a project which requires both Jersey and Hibernate. Problem is they both use incompatible versions of a Jar file (asm.jar) under the covers. I've looked around Google and it appears that it's possible to get Hibernate to use another facility called Javassist, but when I try to follow the instructions it falls flat. I still get ...

Initial state of program registers and stack on Linux ARM

I'm currently playing with ARM assembly on Linux as a learning exercise. I'm using 'bare' assembly, i.e. no libcrt or libgcc. Can anybody point me to information about what state the stack-pointer and other registers will at the start of the program before the first instruction is called? Obviously pc/r15 points at _start, and the res...

Classic assembly language texts not using x86?

I'm looking for texts that give detailed treatment of assembly programming principles and don't use x86 as the target architecture. I haven't found any recent books like that, but I would expect that there were some good ones written in the 1970s and 1980s, when whole applications were still written in assembly. The architecture used sho...

Just finished learning x86 assembly language. What can I do with it?

Hi, I just finished learning assembly language. But I couldn't understand what could I implement (for practice/like small project). Would be great if its something useful for anyone. ...

Why am I getting an error upon assembling?

I am trying to translate global array vector but whenever I assemble it I get an error. I am using indexed addressing and I don't understand why this is wrong. Figure 6.34 DECO vector,x ; << vector[i];ERROR: This instruction cannot have this addressing mode. ...

Reduce assembly number of instructions

I want to reduce (manually) the number of instructions from a Linux assembly file. This will be basically done by searching predefined reductions in an abstract syntax tree. For example: pushl <reg1> popl <reg1> Will be deleted because it makes no sense. Or: pushl <something1> popl <something2> Will become: movl <something1>,...