|
Hex digit to numeric value... Hi all, I'm writing a procedure to convert a numeric digit, (hex), passed in AL to it's value. AFAIK, this would involve successive cmp's and jumps. If we can make a few assumptions about the values of the characters, we can reduce the number of compares. The code already assumes that successive decimal dig... 13 Feb 2006 10:44
Confusing stack effects Here's the code I'm trying to get to work: gets: mov ebx,0 again: mov ah,1 int 21h ; Stop on CR cmp al,0Dh je done ; Don't save, but continue reading cmp ebx,5 jae again mov byte [mystring + ebx],al inc ebx nosave: jmp again done: ; end ag... 17 Feb 2006 14:26
Bad habits I'm not sure if this is as good a place as comp.lang.asm.x86, so I'll go ahead and post and see what happens. :-) I've recently started learning assembly language. After a brief flirtation with HLA, FASM, and RosASM (in that order), I find myself working with NASM and I'm enjoying myself thoroughly. However, bein... 12 Feb 2006 05:00
Udis86 Disassembler for x86 and x86-64 Hi, This is to announce that, after a long hiatus and some major code overhaul, version 0.9 of udis86 has been released - http://udis86.sourceforge.net/ Udis86 is an easy-to-use minimalistic disassembler library (libudis86) for the x86 and x86-64 (AMD64) range of instruction set architectures. The... 4 Feb 2006 13:50
Two Click disassembly/reassembly Rene has been making a big deal about how the RosAsm system can disassemble an executable file and then reassemble it with only two clicks. The implication is that the disassembler is completely automatic and produces syntactically correct code that assembles back into the original executable. The impression that... 16 Feb 2006 02:54
Blocks and compilers Hi, I'm using the tricore-gcc v2.8.1 to generate code for my Infineon TriCore DSP. Analyzing the generated code (compiled with -O0), I noticed a strange behavior of the compiler. (My questions do not concern a specific processor but more the theory behind the assembly language.) Here is the code for a simp... 3 Jan 2006 13:30
Origin of the von Neumann architecture I am not much on computer history, but apparently someone who read my book took exception to the idea that von Neumann developed the basic architecture of the computer. Here's what I said: "Modern computer architecture is based off of an architecture called the Von Neumann architecture, named after its crea... 3 Jan 2006 16:38
Check out POASM POASM, a "roughly Intel Syntax assembler" being developed for the Pelles C system is worth taking a look at: http://smorgasbordet.com/phpBB2/viewtopic.php?t=952 Cheers, Randy Hyde ... 3 Jan 2006 04:01
conversion from asm to c code Hello, I try to translate library written in Nasm to c-code, but I have problem with this construction: shmulti1: xor eax, eax lodsb mul bl movzx ecx, mult add eax, DWORD PTR out_text_m_index[ecx*4] ... 2 Jan 2006 18:13
It works... now what? The reason (as I understand it) for writing in asm is for efficiency. So for this reason, once a program is finished, then it's time to make it work better, faster, & with more efficient code. So, could the asm 'know hows' please have a look at my code, & just take a few seconds to explain why things should be do... 2 Jan 2006 19:15 |