Re: from elsewhere, an assembler



Betov wrote:
Herbert Kleebauer <klee@xxxxxxxxx> écrivait

I appreciate your humour, but some could read your sentences
without being aware that you are against the usage of Assembly
for writing Application, which is the very true and only purpose
of the RosAsm environment, and where there are many reasons for
multi-Instructions lines, for self-evident means, like readability,
coherency of the sources organizations,... and also for Multi-
Lines Statements, as fully evident with statements like:

call 'USER32.CreateWindowExA' &WS_EX_CLIENTEDGE,
WindowClassName,
WindowCaption,
&WS_OVERLAPPEDWINDOW__&WS_VISIBLE,
D$WindowX, D$WindowY,
D$WindowW, D$WindowH,
0,
D$MenuHandle,
D$hInstance,
0

And why should this be better readable than using real
assembly code?

moveq.l #0, -(sp) ; lpParam
move.l wc_hInstance, -(sp) ; hInstance
moveq.l #0, -(sp) ; hMenu
moveq.l #0, -(sp) ; hWndParent
move.l VWIN, -(sp) ; nHeight
move.l HWIN, -(sp) ; nWidth
moveq.l #0, -(sp) ; y
moveq.l #0, -(sp) ; x
move.l #$90000000, -(sp) ; dwStyle =WS_POPUP|WS_VISIBLE
move.l #text_null, -(sp) ; lpWindowName
move.l #text_erde, -(sp) ; lpClassName
moveq.l #0, -(sp) ; dwExStyle =default style
jsr.l (CreateWindowExA)
.



Relevant Pages

  • Intro to Writing "Good" Code
    ... Intro to Writing "Good" Code ... The first rule of programming is "take ... Readability: Eventually somebody is going to have to ... The reason for this is that the ...
    (comp.programming)
  • Re: RosAsm User Interface
    ... defeats all known rules of readability. ... seen any normal human writing a so stupid way. ... If some Instructions have, exceptionaly, to be commented, ... xor edx,edx | mov ebx,10 | div ebx ...
    (alt.lang.asm)
  • Re: How Lisps Nested Notation Limits The Languages Utility
    ... The important thing is to make the writing easy. ... This, of course, is true of all programming languages, not just Lisp. ... We can lump a lot of things into readability, ... "Algebra is the metaphysics of arithmetic." ...
    (comp.lang.lisp)
  • Re: if(a);
    ... discussion about differences in readability, rather than in semantics, ... misinterpret, and then *wrote* code that did the exact opposite. ... Writing is different from reading. ...
    (comp.lang.c)
  • Re: Relationship between "textese" and history of USENET [Re: SYNCHRONIZING problem]
    ... Not using capital letters to ... start sentences and in the pronoun I further reduces ... readability. ... writing is of correspondingly low quality. ...
    (comp.lang.java.programmer)