The MASM Forum

Specialised Projects => Assembler/Compiler Technology => Topic started by: Ficy on June 25, 2012, 02:14:38 AM

Title: JWASM is updated.
Post by: Ficy on June 25, 2012, 02:14:38 AM
Looks like "Japheth" is back from his grave. :greensml:

http://www.japheth.de/JWasm.html (http://www.japheth.de/JWasm.html)
Title: Re: JWASM is updated.
Post by: jj2007 on June 25, 2012, 03:46:38 AM
Champagne :eusa_dance:

My fattest source (RichMasm) assembles fine, in 1000 ms against 1660 for ML6.15
MasmBasic shows little problems:
  pMRB equ <[4+edi.MESSAGE_RESOURCE_BLOCK]>
  mov edx, pMRB.LowId --->Error A2271: structure field expected
Besides, it still expands macros inside quoted text...

But otherwise, this is good news for the assembly community :biggrin:
Title: Re: JWASM is updated.
Post by: Vortex on June 25, 2012, 04:20:38 AM
Hi Ficy,

Thanks for the good news :t
Title: Re: JWASM is updated.
Post by: Greenhorn on June 26, 2012, 01:19:28 AM
Yep, this are very good news.  :eusa_dance:
Title: Re: JWASM is updated.
Post by: KeepingRealBusy on June 26, 2012, 02:38:48 AM
But still no source for this release.

Dave.
Title: Re: JWASM is updated.
Post by: anta40 on June 26, 2012, 02:49:27 AM
Wait untill it reaches the stable version, then the source code will be released.
AFAIK that's the way Japheth does it.
Title: Re: JWASM is updated.
Post by: KeepingRealBusy on June 27, 2012, 11:44:39 AM
Hurray! He just touched my problem (from last Dec), will be fixed in version 7! He's back!

Dave.
Title: Re: JWASM is updated.
Post by: johnsa on June 27, 2012, 10:17:17 PM
This is fantastic news!

I really hope we can get the CV8 debug info in and the changes Habran worked on. (This would certainly take the pressure of my own development, although I wouldn't stop just because jwasm is complete for my needs).
Title: Re: JWASM is updated.
Post by: Greenhorn on July 03, 2012, 04:12:35 AM
I really hope we can get the CV8 debug info in and the changes Habran worked on.

The wrong offset calculation of LOCALs is fixed, but if you mean the mean the manipulation of RSP before/after every INVOKE I'm not sure.
There seems to be a Bug Tracker on this issue, but Japheth stated in the comment that he don't understand what is meant.
So, the author of this Tracker should get more specific about it ...

BTW, JWasm 2.07rc2 is out ...  :t
Title: Re: JWASM is updated.
Post by: jcfuller on July 03, 2012, 05:43:07 AM
BTW, JWasm 2.07rc2 is out ...  :t

Looks to be 2.07rc3.

James
Title: Re: JWASM is updated.
Post by: Greenhorn on July 03, 2012, 05:45:27 AM
Looks to be 2.07rc3.

Ooops, my fault. Yes, of course I meant the rc3...  :redface:
Title: Re: JWASM is updated.
Post by: johnsa on July 03, 2012, 04:56:25 PM
I'm referring to the RSP modification before/after every invoke as well as actual CodeView V8 format symbolic debug info in the OBJ file so you can actually debug a project :)
I spoke to Japheth and he says it might be a feature for 2.08 .. I can't stress how important it is.. I really wish it would just get done already.
Title: Re: JWASM is updated.
Post by: anta40 on July 06, 2012, 06:41:15 PM
the final release of 2.7 is now available  ;)
Title: Re: JWASM is updated.
Post by: Greenhorn on July 08, 2012, 05:48:20 AM
japheth compiled a x64 binary of JWasm, but he states that it is slower than the x86 binary...

http://sourceforge.net/projects/jwasm/forums/forum/927109/topic/5409021 (http://sourceforge.net/projects/jwasm/forums/forum/927109/topic/5409021)
Title: Re: JWASM is updated.
Post by: Ficko on July 13, 2012, 06:38:27 AM
There is a preliminary "208bw" to be tested at http://www.japheth.de/Download/JWasm/ (http://www.japheth.de/Download/JWasm/)

Quote
   Bugfixes:
   -  forward references of structures in an expression may have failed
      (see regression test assume7.aso).
   -  if C-style expressions in runtime conditional directives were too
      complicated, the generated code may have caused 'symbol not defined'
      errors.
Title: Re: JWASM is updated.
Post by: jj2007 on July 13, 2012, 07:16:01 AM
No progress...

Quote
include \masm32\include\masm32rt.inc

chr$ MACRO TheArgs:VARARG
LOCAL NewString, arg, TheString
   arg equ <TheArgs>
   TheString CATSTR arg
  .DATA
   NewString db TheString, 0
  .CODE
   EXITM <OFFSET NewString>
ENDM

right MACRO
   EXITM <wrong()>
ENDM

.code
start:
   inkey chr$("right()")        ; ML output: right(), Jwasm output: wrong()
   exit

end start
Title: Re: JWASM is updated.
Post by: ToutEnMasm on August 11, 2012, 03:11:24 AM
Hello,
I have made a test with my own headers.

Quote
   .486
   .model flat,stdcall
   option casemap:none   ; case sensitive
   include translate.inc
   include windows.sdk
   includelib kernel32.lib
        ;.data       -------> not accepted
   DATA SEGMENT    ;------> accepted
   
   titre db "Adresse Email trouvé",0

   .code

   start:
   invoke ExitProcess,0
There is more defines in the windows.sdk than in the windows.inc.
The replacement of ".data" by "DATA SEGMENT" allow a correct compilation.
Quote
JWasm v2.08rc3, Aug  9 2012, Masm-compatible assembler.
Portions Copyright (c) 1992-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License


Title: Re: JWASM is updated.
Post by: jj2007 on August 11, 2012, 03:26:12 AM
By the way, the bug mentioned above has been fixed some time ago. Thanks Japheth :t
Title: Re: JWASM is updated.
Post by: ToutEnMasm on August 11, 2012, 04:14:01 AM

Some times ago ?
My post is on the
Quote
JWasm v2.08rc3, Aug  9 2012, Masm-compatible assembler.
Portions Copyright (c) 1992-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License
Not so old
Title: Re: JWASM is updated.
Post by: jj2007 on August 11, 2012, 05:40:05 AM
I meant "my" bug, Yves. Yours seems to be related to Windows.sdk - where did you get that file? Which error messages do you get?
Title: Re: JWASM is updated.
Post by: ToutEnMasm on August 11, 2012, 04:29:11 PM

To JJ2007,
That file is part of the "ready to use sdk",here:
http://luce.yves.pagesperso-orange.fr/header.htm (http://luce.yves.pagesperso-orange.fr/header.htm)
clic on the SDK link
More details on the subject:
Quote
JWasm v2.08rc3, Aug  9 2012, Masm-compatible assembler.
Portions Copyright (c) 1992-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.

test_jwasm.asm(11) : Error A2069: Segment, group or segment register expected
Need to modify ".data" by "DATA SEGMENT" and all is ok in this code
Quote
   .486
   .model flat,stdcall
   option casemap:none   ; case sensitive
   include translate.inc
   include windows.sdk
   includelib kernel32.lib
        .data       ;-------> not accepted
   ;DATA SEGMENT    ;------> accepted
   
   titre db "Adresse Email trouvé",0

   .code

   start:
   invoke ExitProcess,0
;-----------------------------------------------------------------------------------


;################################################################   
end start      
The build environment is this one:
Quote
   @echo off
   CLS
   call C:\PROGRA~1\MICROS~1.0\Common7\Tools\vsvars32.bat
   SET INCLUDE=\SDKRC7
   SET PATH=%PATH%;E:\jwasm
   
   SET FILE=test_jwasm
   : -------------------------------
   : if resources exist, build them
   : -------------------------------
   
   if exist %1.obj del %FILE%.obj
   if exist %1.exe del %FILE%.exe
   
   : -----------------------------------------
   : assemble Appender.asm into an OBJ file
   : -----------------------------------------
   jwasm -coff %FILE%.asm > jwasm.txt
   if errorlevel 1 goto errasm
   if not exist rsrc.rc goto nores
   Rc.exe /v rsrc.rc
   Cvtres.exe /machine:ix86 rsrc.res
   
   if not exist rsrc.obj goto nores
   ECHO ----------------------------           
   ECHO ******* avec RESSOURCE ******
   ECHO -----------------------------                 
   : --------------------------------------------------
   : link the main OBJ file with the resource OBJ file
   : --------------------------------------------------
   Link  /SUBSYSTEM:WINDOWS %FILE%.obj rsrc.obj
   if errorlevel 1 goto errlink
   GOTO FINLINK
   
   :nores
   ECHO ---------------------------                   
   ECHO ***** SANS ressource ******
   ECHO ------------------------------                   
   Link.exe /SUBSYSTEM:WINDOWS %FILE%.obj
   
   :FINLINK
   
   dir %FILE%.*
   
   goto TheEnd
   
   :errlink
   : ----------------------------------------------------
   : display message if there is an error during linking
   : ----------------------------------------------------
   echo.
   echo There has been an error while linking this project.
   echo.
   goto TheEnd
   
   :errasm
   : -----------------------------------------------------
   : display message if there is an error during assembly
   : -----------------------------------------------------
   echo.
   echo There has been an error while assembling this project.
   echo.
   goto TheEnd
   
   :TheEnd
   pause
I use only the sdk,ddk and vc++ lib.
It's for that i calles the vsvars32.bat
I hope it's more clear now ?



Title: Re: JWASM is updated.
Post by: jj2007 on August 11, 2012, 06:19:38 PM

To JJ2007,
That file is part of the "ready to use sdk",here:
http://luce.yves.pagesperso-orange.fr/header.htm (http://luce.yves.pagesperso-orange.fr/header.htm)
clic on the SDK link

No download link there, Yves. However, since all my sources (even the huge and complex ones) assemble just fine with JWasm, Masm 6.5, 8.0, 9.0 and 10.0, I am inclined to believe that the problem is somewhere in Windows.sdk
Title: Re: JWASM is updated.
Post by: ToutEnMasm on August 11, 2012, 09:42:16 PM

Quote
No download link there ???????????
the "SDK" underligned letters in BLUE must be clic that all.
The sample is perfectly compiled by ml (any versions).
The problem isn't in "Windows.sdk".
I will not have posted it,in this case.



Title: Re: JWASM is updated.
Post by: jj2007 on August 11, 2012, 10:07:53 PM
Quote
No download link there ???????????
the "SDK" underligned letters in BLUE must be clic that all.

"SDK" underligned letters in BLUE point to http://luce.yves.pagesperso-orange.fr/header.htm#Nouveaut%C3%A9 - and that is clearly not windows.sdk., Yves :(

However, by scrolling one line up, the link becomes visible. Wow, 2339 files in the *.cab :dazzled:
My advice: forget JWasm, stick to Masm :biggrin:
Title: Re: JWASM is updated.
Post by: ToutEnMasm on August 11, 2012, 11:00:34 PM

If you are afraid with the 1348 files of the SDK and the masm32 samples files:
USE SCRIPT  :biggrin:
Title: Re: JWASM is updated.
Post by: japheth on August 11, 2012, 11:18:26 PM
Quote
test_jwasm.asm(11) : Error A2069: Segment, group or segment register expected

this error message gives a good hint. jwasm translates .DATA to

Code: [Select]
          _DATA segment
          assume cs:ERROR

and error A2069 can only occur with the ASSUME. Hence the reason why jwasm doesn't like your code is: there's somewhere in your SDK a text macro ERROR defined.

Workaround: define ERROR as a number, not as text. Then it's not processed by the preprocessor.
Title: Re: JWASM is updated.
Post by: ToutEnMasm on August 12, 2012, 12:44:23 AM

Thanks to japheth for answer.
I have found two defines for ERROR in the SDK
Quote
adoint.sdk
1062   : Error MACRO  Function:REQ, args:VARARG
This one is an interface,renamed in Ierror
Wingdi.sdk and .h        ERROR equ <0>
I have just put this one in comment
ALL is good now


Title: Re: JWASM is updated.
Post by: ToutEnMasm on August 12, 2012, 01:30:20 AM

This source file (compiled ok with ml) is richedit using OLE (photos)
I get this error
Quote
JWasm v2.08rc3, Aug  9 2012, Masm-compatible assembler.
Portions Copyright (c) 1992-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.

invoke CoInitializeEx ,NULL, COINIT_APARTMENTTHREADED
include shlobj.sdk
richedit.asm(73) : Error A2080: Block nesting error: _TEXT
richedit.asm: 73 lines, 1 passes, 484 ms, 0 warnings, 1 errors
Title: Re: JWASM is updated.
Post by: jj2007 on August 12, 2012, 02:55:36 AM
I have just put this one in comment
ALL is good now

No need to comment it out - to solve your namespace pollution problem, you can just call it erreur MACRO  :biggrin:
Title: Re: JWASM is updated.
Post by: japheth on August 12, 2012, 04:05:18 AM
Quote
invoke CoInitializeEx ,NULL, COINIT_APARTMENTTHREADED
include shlobj.sdk
richedit.asm(73) : Error A2080: Block nesting error: _TEXT

Ok, I downloaded your sdk and this sample.

"ready to use sdk" is perhaps a little bit euphemistic, but with some experience in this matter it's no problem at all to make it work.

The "block nesting error" is a bit misleading, because it claims _TEXT to be the segment causing trouble. In fact, it's a few  "DATA SEGMENT" directives that still occur in the source files that cause this error. It's an error, because the segment is opened but never "closed" ( with a DATA ENDS directive ).

Just replace the "DATA SEGMENT" with ".data" and it should work.

Btw., the "ERROR macro" is no problem, because a macro procedure is expanded only if it occurs at position 0 or 2 (after a label, followed by a ':' ).

Title: Re: JWASM is updated.
Post by: ToutEnMasm on August 12, 2012, 04:50:15 AM

I am not sure to understand very well this
Quote
The "block nesting error" is a bit misleading, because it claims _TEXT to be the segment causing trouble. In fact, it's a few  "DATA SEGMENT" directives that still occur in the source files that cause this error. It's an error, because the segment is opened but never "closed" ( with a DATA ENDS directive ).

Just replace the "DATA SEGMENT" with ".data" and it should work.
I don't use "DATA SEGMENT" in the richedit source code.
What is sure,is that i have several .data.



Title: Re: JWASM is updated.
Post by: ToutEnMasm on August 12, 2012, 05:15:42 AM

Don't take care of my last post.
There was "DATA SEGMENT" (a modify for the first problem).
I had forgotten to replace them.
Title: Re: JWASM is updated.
Post by: ToutEnMasm on August 12, 2012, 05:54:03 AM
This one is a problem with nested MACRO  (compiled ok with ml)

Quote
;.NOLIST         ;signifie: ne rien mettre dans le listing
;------ emplacement des déclarations
;.NOLIST

   .486
   .model flat,stdcall
   option casemap:none   ; case sensitive
   include translate.inc
   include windows.sdk
   IFDEF ERROR
   ECHO error defined
   ENDIF
   includelib kernel32.lib
   ;-----------------------------------------------------------
   PuPo    MACRO Var1, Var2
   push     Var2
   pop     Var1
   ENDM
   REMPLIRnmhdr MACRO hwndFrom:REQ,idFrom:REQ,message:REQ   ;NMHDR
      PuPo nmhdr.hwndFrom,hwndFrom
      PuPo nmhdr.idFrom,idFrom
      mov nmhdr.code,message
   ENDM
        ;-----------------------------------------------------------------

        .data          one dd 0
   two dd 5
   nmhdr NMHDR <>
   
   titre db "Adresse Email trouvé",0

   .code
   

   start:
   REMPLIRnmhdr one,two,526      ;<<<<<<<<<<<<<<<error ?
   PuPo one,two
   invoke ExitProcess,0
;-----------------------------------------------------------------------------------


;################################################################   
end start      
don't accept the line:
REMPLIRnmhdr one,two,526

Quote
test_jwasm.asm(35) : Error A2102: Symbol not defined : one
 PuPo(2)[test_jwasm.asm]: Macro called from
  REMPLIRnmhdr(1)[test_jwasm.asm]: Macro called from
   test_jwasm.asm(35): Main line code
test_jwasm.asm(35) : Error A2102: Symbol not defined : two
 PuPo(2)[test_jwasm.asm]: Macro called from
  REMPLIRnmhdr(2)[test_jwasm.asm]: Macro called from
   test_jwasm.asm(35): Main line code

Title: Re: JWASM is updated.
Post by: japheth on August 12, 2012, 11:15:29 PM
Quote
This one is a problem with nested MACRO  (compiled ok with ml)

Yes, this is a small incompatibility. It's not really related to "nested" macros, because the very same behavior also occurs with ECHO and one or two other directives. I call it "small" because it's generally not a very good idea to select argument or local names in a macro that match the names of other items in the namespace. If it works, as in your case, it kind of works "by chance" only. From a technical point of view the problem is that in jwasm the macro argument/local substitution is implemented "one level too deep". It's on my todo list to fix this, but won't happen for v2.08.
Title: Re: JWASM is updated.
Post by: jj2007 on October 06, 2012, 07:33:09 AM
Compliments :t

Short 100-lines proggie, with MasmBasic (includes masm32rt.inc):
JWasm:   *** Assembling and linking took 391 milliseconds ***
ML 6.15: *** Assembling and linking took 765 milliseconds ***
ML 10.0: *** Assembling and linking took 781 milliseconds ***


RichMasm source, 14,000 lines, with MasmBasic (includes masm32rt.inc):
JWasm:   *** Assembling and linking took 1031 milliseconds ***
ML 6.15: *** Assembling and linking took 1650 milliseconds ***
ML 10.0: *** Assembling and linking took 1730 milliseconds ***


For comparison, building a tiny C proggie with VS Express takes almost ten seconds ;-)
Title: Re: JWASM is updated.
Post by: Gunther on October 06, 2012, 08:07:00 AM
Hi Jochen,

Compliments :t

Short 100-lines proggie, with MasmBasic (includes masm32rt.inc):
JWasm:   *** Assembling and linking took 391 milliseconds ***
ML 6.15: *** Assembling and linking took 765 milliseconds ***
ML 10.0: *** Assembling and linking took 781 milliseconds ***


RichMasm source, 14,000 lines, with MasmBasic (includes masm32rt.inc):
JWasm:   *** Assembling and linking took 1031 milliseconds ***
ML 6.15: *** Assembling and linking took 1650 milliseconds ***
ML 10.0: *** Assembling and linking took 1730 milliseconds ***


For comparison, building a tiny C proggie with VS Express takes almost ten seconds ;-)

but you know: compile times are not the only point.

Gunther
Title: Re: JWASM is updated.
Post by: ragdog on October 30, 2012, 04:10:09 AM
Hi

I wish Radasm3 is complete Jwasm Compatible
What is the commandline settings for

Standart Builds

This is for Masm

0=Window Release,'/v "$R"',"$R.res",'/c /coff /Cp "$C"',"$C.obj",'/SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /OUT:$O $C $M $R',"$C.exe",'',
1=Window Debug,'/v "$R"',"$R.res",'/c /coff /Cp /Zi /Zd "$C"',"$C.obj",'/SUBSYSTEM:WINDOWS /DEBUG /VERSION:4.0 /OUT:$O $C $M $R',"$C.exe",'',
2=Console Release,'/v "$R"',"$R.res",'/c /coff /Cp "$C"',"$C.obj",'/SUBSYSTEM:CONSOLE /RELEASE /VERSION:4.0 /OUT:$O $C $M $R',"$C.exe",'',
3=Console Debug,'/v "$R"',"$R.res",'/c /coff /Cp /Zi /Zd "$C"',"$C.obj",'/SUBSYSTEM:CONSOLE /DEBUG /VERSION:4.0 /OUT:$O $C $M $R',"$C.exe",'',
4=Dll Release,'/v "$R"',"$R.res",'/c /coff /Cp "$C"',"$C.obj",'/SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /DLL /DEF:$D /OUT:$O $C $M $R',"$C.dll",'',
5=Dll Debug,'/v "$R"',"$R.res",'/c /coff /Cp /Zi /Zd "$C"',"$C.obj",'/SUBSYSTEM:WINDOWS /DEBUG /VERSION:4.0 /DLL /DEF:$D /OUT:$O $C $M $R',"$C.dll",'',
6=Library,'',,'/c /coff /Cp "$C"',"$C.obj",'',,'/VERBOSE /SUBSYSTEM:WINDOWS /OUT:$O $C $M',"$C.lib"

Greets,
Title: Re: JWASM is updated.
Post by: ragdog on October 30, 2012, 08:53:56 PM
Ok i have now all figured out

But i have a problem to build dll files

jwasm -coff  "source.asm"
jwlink format windows nt dll file "source.obj" @make.rsp
My rsp

Code: [Select]
export {
   Test1='Test1'
   Test2='Test2'
}

Or can i use a .def like Masm?


Code: [Select]
LIBRARY source.dll
EXPORTS
   Test1
   Test2
Title: Re: JWASM is updated.
Post by: japheth on October 30, 2012, 10:56:12 PM
Or can i use a .def like Masm?

No. This issue is covered pretty detailed on the jwlink site: http://www.japheth.de/JWlink.html (http://www.japheth.de/JWlink.html)
Title: Re: JWASM is updated.
Post by: ragdog on October 30, 2012, 11:18:29 PM
Thanks but i have not found about def files
Title: Re: JWASM is updated.
Post by: japheth on October 31, 2012, 12:04:59 AM
Thanks but i have not found about def files

Code: [Select]
There's no direct replacement for MS link's /DEF option, which tells the linker to scan a so-called Module Definition File.
However, since the main usage of such files is to define exports, it's simple to replace them with standard linker directive
files.

Here's an example. Module Definition File MYDLL.DEF:

    LIBRARY MYDLL
    EXPORTS
     MyFunction1
     MyFunction2
     MyFunction3

can be replaced by linker directive file MYDLL.RSP:

    OP MODNAME=MYDLL
    OP FUZZYEXPORT
    EXPORT {
     MyFunction1
     MyFunction2
     MyFunction3
    }

and that file is added to JWlink's commandline with the @ directive:

jwlink format win pe dll file mydll.obj @MYDLL.RSP
Title: Re: JWASM is updated.
Post by: ragdog on October 31, 2012, 07:47:09 AM
Danke japheth



Title: Re: JWASM is updated.
Post by: ToutEnMasm on April 07, 2013, 10:48:28 PM
Hello,
I have a problem with dynamic call.
Quote
;-------- sprintf_s PROTO C :DWORD ,:DWORD ,:DWORD , :VARARG -------------------------
EXTERNDEF ADRsprintf_s:DWORD     ;sprintf_s use a vararg en couldn't be call in the library
Psprintf_s TYPEDEF PROTO C :DWORD ,:DWORD ,:DWORD , :VARARG
Fsprintf_s TYPEDEF PTR Psprintf_s
sprintf_s TEXTEQU <Fsprintf_s ptr ADRsprintf_s>
.code
.LISTALL
invoke sprintf_s,addr sz_buffer,sizeof sz_buffer,write("Friendlyname : %s"), addr buffer               
invoke o_printcrlf,addr sz_buffer         
.NOLIST

Ml is ok
Code: [Select]
Microsoft (R) Macro Assembler Version 6.15.8803     04/07/13 10:40:24
mat_enum.asm      Page 1 - 1

 00000055  0000
      C .LISTALL
     1C LOCAL txt
 00000863      1C .data
 00000863 46 72 69 65 6E     1C ??002D db "Friendlyname : %s",0
   64 6C 79 6E 61
   6D 65 20 3A 20
   25 73 00
     1C align 4
 000009F8      1C .code
     1C EXITM <ADDR ??002D>
      C  invoke sprintf_s,addr sz_buffer,sizeof sz_buffer,write("Friendlyname : %s"), addr buffer
 000009F8  8D 85 FFFFFEDC  *     lea    eax, byte  ptr ss:[ebp]+0DCh
 000009FE  50    *     push   eax
 000009FF  68 00000863 R   *     push   OFFSET ??002D
 00000A04  68 00000100    *     push   +000000100h
 00000A09  68 00000301 R   *     push   OFFSET sz_buffer
 00000A0E  FF 15 00000000 E *     call   dword  ptr ADRsprintf_s
 00000A14  83 C4 10    *     add    esp, 000000010h
      C invoke o_printcrlf,addr sz_buffer
 00000A17  68 00000301 R   *     push   OFFSET sz_buffer
 00000A1C  E8 FFFFFB6A    *     call   o_printcrlf

Jwasm don't agree


JWasm v2.10rc10, Apr  4 2013
mat_enum.asm
                              C          .LISTALL
00000000                     1C    .data
                            *1C _TEXT ends
00000863                    *1C _DATA segment
                            *1C assume cs:ERROR
                             1C    ??002D db "Friendlyname : %s",0
                             1C    align 4
00000000                     1C    .code
                            *1C _DATA ends
00000A13                    *1C _TEXT segment
                            *1C assume cs:FLAT
00000A13                      C          invoke Fsprintf_s ptr ADRsprintf_s,addr sz_buffer,sizeof sz_buffer,ADDR ??002D, addr buffer               
00000A13                    * C  lea eax, buffer               
00000A19                    * C  push eax
00000A1A                    * C  push offset ??002D
00000A1F                    * C  push sizeof sz_buffer
00000A24                    * C  push offset sz_buffer
00000A29                    * C  call Fsprintf_s ptr ADRsprintf_s
 Error A2182: Instruction operand must have size
00000A2F                    * C  add esp, 16
00000A32                      C          invoke o_printcrlf,addr sz_buffer         
00000A32                    * C  push offset sz_buffer         
00000A37                    * C  call o_printcrlf






Title: Re: JWASM is updated.
Post by: jj2007 on April 08, 2013, 01:15:28 AM
http://sourceforge.net/tracker/?group_id=255677&atid=1126895 is the best address to flag this problem.
Title: Re: JWASM is updated.
Post by: ToutEnMasm on April 08, 2013, 01:48:31 AM
I know,I have an interesing question when trying to "add new"
Quote
Error
Artifact: This ArtifactType Does Not Allow Anonymous Submissions. Please Login. .
How to login ?
Later : In the upper right corner in the page where is this message
Title: Re: JWASM is updated.
Post by: ToutEnMasm on April 08, 2013, 06:04:40 PM

The dynamic call has been corrected by:
Quote
JWasm v2.10rc11, Apr  8 2013
It had been done so fast  :t
thanks
Title: Re: JWASM is updated.
Post by: Adamanteus on September 20, 2013, 01:31:47 AM
 Yes, works fine. I even decided for advertising purposes make it on my libraries - and,  if somebody wants to test the result, could download it from here (http://www.amslook.com/soft)  :t
Title: JWasm v2.11
Post by: japheth on October 21, 2013, 09:44:40 PM

JWasm v2.11 has been released.

This version is dedicated to Friedrich August von Hayek ( "The Road to Serfdom" ) .
Title: Re: JWASM is updated.
Post by: jj2007 on October 21, 2013, 09:56:28 PM
20-Oct-2013 09:54 works fine with my sources :t

(Hayek, really?? ::))
Title: Re: JWasm v2.11
Post by: TWell on October 21, 2013, 10:36:08 PM
JWasm v2.11 has been released.
Thank's.
JWAsm + POLink + POIDE is good learning/debugging environment for me!
Title: Re: JWASM is updated.
Post by: nidud on October 22, 2013, 02:12:22 AM
(Hayek, really?? ::))

Yea, heil to the rich!
A typical spoiled-prat-born-rich-with-an-attitude kind of guy.

Well, you know the type: slightly right-wing, a picture of "Maggie" beside the king hanging in the toilet, a fetish for uniforms, constantly paranoid of the working middle-class socialistic union men who's only purpose in life is to steal their money, applaud poverty and individual barging rights because it gives them endless access to cheap labour, the pipe dream of removing the government and privatise everything.

There is however a major fault in this logic since the only way to create demand in the economy is to have a rich middle-class which are the supposed "customers" for the product produced by the "cheap labour", but if Volk can't afford to by the Wagon you may as well close down the factory.

The ideal society for this people are based on greed and ignorance, and work more or less as a gypsy camp. But even the gypsy-kings depends on the evil-working-middle-class-socialistic-union-men-society for their income, so they send their "cheap labour" there to do their bidding.

You may argue that it was Reagan and Thatcher who crush the union in the west, but it was the labour movement itself who continued the final destruction of it by swallowing the blue pill. This was fronted by people like Tony Blair and Gerhard Schröder. They demanded the freeze of wages to create "cheap labour", and thereby removing the "customers" which was the base of the western worlds wealth. The argument used for this was to stabilize the almighty currency.

One of the countries who didn't swallow this crap was Norway since the union here demanded their fair share of the profit. As a result of this the wages increased synchronous with the profit and is now around 70% higher than the average in EU, and in some cases a few hundred percent higher than in the US. Some may argue that it is the oil-industry which finance this, but the fact is that income from this can not be used inside the country since that will generate mass inflation.

Here is an image which compare wages to profit:
(http://rdwolff.com/sites/default/files/graph.JPG)

This is the real reason for the dept problems of the nations. The income to the state comes from these wages which is frozen, and the cost of running the state increases during this time, and this is financed by borrowing.

This will then be the result of this "right-wing" philosophy: it is capable of generating huge profits by selling cheap products to rich people, but at the same time convert these "rich people" to "cheap labour".

The good thing about a dysfunctional, uneducated, slave-driven society is the fact that it has the potential to produce good music. The bad thing about it is, well, the pile of shit you end up living in.

The solution to this problem, Japheth, will then be to move to Norway. We have one of the best health-care system on the planet. The cost of this is less then 10% of the health-care system in the US, and the service here is even better. However, the people who won the election here have the same attitude as your "friend", so they are going to privatise everything now. Salaries are going to be cut down to the bear minimum, and they are of course going to crush the evil union and spend a shit load of oil money to encourage a huge inflation.

This means that the serfs (person forced by a landowner to work on the land in a feudal system, or worker treated harshly or like a slave) will be fully implemented into serf-dom (social and economic system under which land was cultivated by serfs).

So now you know "The Road to Serfdom"  :biggrin:
Title: Re: JWASM is updated.
Post by: Gunther on October 22, 2013, 02:39:59 AM
Andreas may dedicate jWasm to whom he want. Anyway, it's an excellent tool.

Gunther
Title: Re: JWASM is updated.
Post by: jj2007 on October 22, 2013, 03:57:40 AM
The solution to this problem, Japheth, will then be to move to Norway
Malta has a much better climate, though ;-)

Quote
So now you know "The Road to Serfdom"  :biggrin:
One of my teachers was an ardent admirer of Hayek - we used to call him "paleo-liberal" :biggrin:
Title: Re: JWASM is updated.
Post by: caballero on October 22, 2013, 04:02:45 AM
I wonder if anyone  can argue according to its ideas (http://en.wikipedia.org/wiki/The_Emperor's_New_Clothes) or should only do so if it is within the politically correct, regardless of it is correct or not. It is usual to divide the world into good and evil and think that some respond to certain political ideas and others to the contrary. One rich and other poor , some bad, and some good ...

At this point of global crisis would be interesting to stop for a bit and think if only our ideas are correct or should at least allow a debate.

Probably not Mr. Hayek neither Mr. Keynes are 100 % accurate neither 100 % misguided. But using a Keynes' base for governments spend huge amounts of money trying to "stimulate" the economy, when what they really do is throw money away in exchange for winning some months time, I find most than irregular. Meanwhile, the super- wealthy gentlemen who buy sovereign debt are getting richer while others are becoming more indebted, and therefore poorer... and demanding that markets keep on buying our debt and thereby making us poorer .

I do not know the details for all countries, but it seems none of them have achieved bridle the deficit. And in return keep on issuing debt or print more money hoping to avoid inflation. If we look back, and compare our situation with which we had 5/6 years ago I think we would have vertigo.

Make love, not war... ;)
Title: Re: JWASM is updated.
Post by: japheth on October 22, 2013, 04:21:47 AM
Malta has a much better climate, though ;-)

I find the summers in Germany too hot for my taste, usually.

Don't think I want to live in an oven.

Quote from: nidud
... ... ...
no comment  :icon_mrgreen:
Title: Re: JWASM is updated.
Post by: dedndave on October 22, 2013, 04:56:32 AM
you wouldn't like Arizona, then - at least not the southern half
here it is, nearing halloween, and it still gets over 90F

you must be in the southern part of Germany
some of my ancestors came from Baden-Baden   :P
Title: Re: JWASM is updated.
Post by: nidud on October 22, 2013, 05:55:05 AM
Andreas may dedicate jWasm to whom he want.

Yes Gunther, and he does.

He is also a European economist, and he dedicate his work to an economic theory which is in my view bad for the European economy, and one would for this reason try to wind him up a bit  :lol:

Probably not Mr. Hayek neither Mr. Keynes are 100 % accurate neither 100 % misguided. But using a Keynes' base for governments spend huge amounts of money trying to "stimulate" the economy, when what they really do is throw money away in exchange for winning some months time, I find most than irregular. Meanwhile, the super- wealthy gentlemen who buy sovereign debt are getting richer while others are becoming more indebted, and therefore poorer... and demanding that markets keep on buying our debt and thereby making us poorer .

Think the right are right about this: the government should not be given the power to "control" the economy at all. This should be a struggle between the "serfs" and the "landowners", and neither of them should be in charge. If the serfs are in charge we get communism and that's no good for the economy. If the landowner wins we get slavery, and as mention above, that is not good for the economy either. The foundation with regards to financial growth is competition, which in this case is about how to share the loot (the profit). If they are equally powerful the curve in the picture will be synchronized, and that's good for the economy. The situation now is that the union is broken.

With regards to the "political theories" they will be limited to "fix" or "avoid" financial crisis. They are all political construct for short term political gain.

Don't think I want to live in an oven.
no comment  :icon_mrgreen:
Title: Re: JWASM is updated.
Post by: hutch-- on November 04, 2013, 05:25:00 PM
We used to have a viable alternative to "serfdom" here in OZ, years ago if a pile of kids pooled their dole payments they could rent a house near a good surfing beach and enter into "sUrfdom". They got the suntan and lifestyle for free. Sad to say (for them) the government wised up on the deal and put an end to it.  :P
Title: Re: JWASM is updated.
Post by: dedndave on November 04, 2013, 09:39:02 PM
sounds like one of those surfers may have been called "Hutch"   :biggrin:
never tried surfing - it looks like it might be fun - and a little dangerous, maybe
more fun to watch the gals, maybe - lol
always wanted to try scuba, though

here in AZ, we don't get a lot of time on the beach
Title: Re: JWASM is updated.
Post by: Gunther on November 05, 2013, 03:42:57 AM
Dave,

here in AZ, we don't get a lot of time on the beach

That is in the nature of the things.  :lol:

Gunther
Title: Re: JWASM is updated.
Post by: dedndave on November 05, 2013, 03:48:33 AM
 :biggrin:
well - unless you want to call the Mohave Desert a "beach"   :lol:
Title: Re: JWASM is updated.
Post by: Gunther on November 05, 2013, 03:50:23 AM
Dave,

:biggrin:
well - unless you want to call the Mohave Desert a "beach"   :lol:

oh no. That would be a very hot beach.

Gunther
Title: Re: JWASM is updated.
Post by: hutch-- on December 03, 2013, 03:30:36 PM
Dave,

You could always try Hawaii, they have the REAL THING[tm] there in terms of surf.
Title: Re: JWASM is updated.
Post by: dedndave on December 04, 2013, 12:26:01 AM
i'd probably enjoy a visit to "the islands"
but - kind of expensive over there   :P

the scenery is what would get my attention - not the surf, so much
and, by scenery, i mean beautiful landscapes - lol
they also have a nice telescope that would be worth visiting