Re: My view on this "Is blah an assembler"

From: Herbert Kleebauer (klee_at_unibwm.de)
Date: 08/16/04


Date: Mon, 16 Aug 2004 21:41:02 +0200

C wrote:
 
> add ax, bx -> add.w a, b
> mov ax, bx -> mov.w a, b
> mov cs, dx -> mov.sw c, d

ax -> a bx -> b cx -> c dx -> d
bp -> ? si -> ? di -> ? sp -> ?
ah -> ? bh -> ? ch -> ? dh -> ?

Wouldn't it be better to number the registers (r0 - r7) instead
of using different single letter names?

> movzx eax, bl -> mov.db a, b

    movsx eax, bl -> ?

This instructions are not simple move instruction and
therefore deserve an own opcode: movs.bd movs.bw movs.wd
                                 muvu.bd movs.bw movs.wd

> movsb -> mov.ab

What is .ab? It is a simple byte move with register indirect
addressing with auto postincrement (postdecrement).

mov.b (r5)+,(r6)+
mov.b (r5)-,(r6)-



Relevant Pages

  • Re: GAS-style syntax issue...
    ... when parsing each opcode, it initially starts off assuming that the ... a 'GAS' flag is set for the opcode. ... A few instructions end in two size letters like the sign-extended move ... movq, you end up with 'mov' as the instruction, when one choice is 'mov' ...
    (alt.lang.asm)
  • Re: Expanding opcode question
    ... > xxx instructions with yyy registers ... In effect this is a two bit opcode. ... Design an expanding opcode to allow all the ...
    (comp.programming)
  • Re: Bison/Flex To ByteCode
    ... I would assume there are 2 stacks my compiler ... How would this instruction get handled and represented on a stack ... integers get pushed to the stack with a special opcode that simply ... -> jump instructions, call instructions, comparisons, conditonal jumps, ...
    (comp.lang.cpp)
  • Re: The coming death of all RISC chips.
    ... Dont get me wrong, I LIKE RISC and HATE x86, its just that all the RISC ... With registers moved into the instruction ... that support four operand instructions. ... The third opcode word will be used ...
    (comp.arch)
  • Variable length instructions, the future for all CPU designs.
    ... Variable length instructions, the future for all CPU designs. ... registers, while most of the code I disassemble on MIPS tend to use ... extension opcode bytes. ...
    (comp.arch)