Re: from elsewhere, an assembler




Wannabee skrev:
[]
As my background is mainly hardware related, I also prefer
to see all instructions in the order they will be executed.
______
label:
push ...
push ...
call API
______

So I may save on many lines as I can insert conditional
push options if required.

The C-style may be an advantage for programmers who are more
familiar with HLLism than with the CPU-instructions.

Why?
there are more books and schools for HLL than for ASM.

Thanks Rene for having both options in RosAsm.
btw: is there a way to reenable 'db hex ..' compilation ? :)

Agree. But I like better it enabled in a way to avoid the DB.

routine:
057 0f5 0C3

db is a reserved word. when rosasm encounters a number, in code path,
could it not just parse it as hex directly?

This might come in conflict with the other structures ?
It would need a leading label, so my (standard) prefered

cmp al 0a |db 72 02 |add al 7 |add al 30

woldn't work then and will need a rewrite of many source code.

__
wolfgang




.



Relevant Pages

  • Compilers, Aho/Sethi/Ullman, Exercise 2.15
    ... push v onto the stack ... throw away value on top of stack ... next instruction is taken from statement with label l ... jump if it is nonzero ...
    (comp.compilers)
  • Re: DJ Premier - God VS The Devil (New mixtape)...
    ... emcee ever for my money) if he dont sell records the label aint gonna ... so listeners aint gonna get to hear him and if they dont hear ... But how's he going to sell if the label don't push him? ...
    (rec.music.hip-hop)
  • Re: heavy loop functions slow
    ... #hashRange[out] is basically calling a hash in the following context. ... #the push = hashRangeis whats slowing everything down. ... i.e. each interval an int can be in has a label. ...
    (comp.lang.ruby)
  • Re: Assembly Language Question
    ... usually preceded by a label. ...
    (alt.lang.asm)
  • Re: cast in memcpy()
    ... have to pass a pointer to a const object as a pointer to a non-const ... to fix his API. ... Be sure to push the button of the bottom, and push the button of the ...
    (comp.lang.c)