Recent Posts

Pages: [1] 2 3 ... 10
1
ObjAsm / Re: Playing with Neural Network
« Last post by LiaoMi on Today at 08:30:00 PM »
Hi!!

The project was modified to work with ObjAsm (only in 32 bits now  :biggrin:), mainly Matrix object.

Some object error names in ObjErrs.inc must be actualized.

Solved the problem of object error (that don't affected the results).

After crashes because DebugCenter type, there was a "final crash" because a register is not preserved  :eusa_boohoo:

Still is in development.

Updated in previous post.

Regards, HSE

Hi HSE,

now the program does not start  :sad:

Code: [Select]
Row =    6.83e-001   5.06e-001  -3.00e+000 [ShowMatrix.inc, 54]
Row =    7.79e-001   3.03e+000  -2.75e+000 [ShowMatrix.inc, 54]
Row =    1.51e-001  -3.39e+000   6.74e+000 [ShowMatrix.inc, 54]
Row =    5.06e-001  -3.00e+000   3.48e+000 [ShowMatrix.inc, 54]
──────────────────────────────────────────────────────────────────────
Row =   -1.49e-016 [ShowMatrix.inc, 54]
Row =    2.67e-016 [ShowMatrix.inc, 54]
Row =    2.59e-014 [ShowMatrix.inc, 54]
Vh percentage -------------- [NNet_BG97.inc, 302]
porH[eax*8] =  5.666900849863E-0003 [NNet_BG97.inc, 307]
porH[eax*8] =  1.015015881378E-0002 [NNet_BG97.inc, 307]
porH[eax*8] =  9.841829403364E-0001 [NNet_BG97.inc, 307]
──────────────────────────────────────────────────────────────────────
----------------------------- [Faked.asm, 146]
          Terminу             [Faked.asm, 147]
----------------------------- [Faked.asm, 148]
2
UASM Assembler Development / How to build latest UASM on macOS?
« Last post by anta40 on Today at 04:14:09 PM »
I just pulled the latest UASM, and couldn't built in on macOS (Big Sur)

Code: [Select]
make -f ClangOSX64.mak
gcc -D __UNIX__ -c -IH -D __UNIX__ -DNDEBUG -O2 -ansi -funsigned-char -fwritable-strings -o GccUnixR/dbgcv.o dbgcv.c
In file included from dbgcv.c:13:
H/memalloc.h:49:10: warning: 'alloca' macro redefined [-Wmacro-redefined]
        #define alloca(x)  __builtin_alloca(x)
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/alloca.h:39:9: note: previous definition is here
#define alloca(size)    __alloca(size)
        ^
In file included from dbgcv.c:14:
In file included from H/parser.h:59:
H/instruct.h:1241:10: warning: '/*' within block comment [-Wcomment]
/* #if 0 /* v2.09: added, inactive ( not supported by ML64 v8,9,10 ) */
         ^
dbgcv.c:20:10: fatal error: 'direct.h' file not found
#include <direct.h>
         ^~~~~~~~~~

Of course, there's no direct.h for Linux/OSX/etc. I opened dbgcv.c and added some changes:
  • Replaced <direct.h> with <unistd.h>
  • Added #define _MAX_PATH 4096
  • Replaced _getcwd with getcwd

Also edited ClangOXX64.mak: removed -fwritable-strings from extra_c_flags.

Now the error count is reduced from > 20 to 4.

I have no idea the fix the first 2:
Code: [Select]
dbgcv.c:1572:16: error: use of undeclared identifier '_pgmptr'
                len = strlen(_pgmptr) + 1;
                             ^
dbgcv.c:1573:17: error: use of undeclared identifier '_pgmptr'
                s = strcpy(s, _pgmptr) + len;

_pgmptr looks Windows-specific. Not sure what the Linux/MacOS equivalent of it.

And the last 2 are casting errors:
Code: [Select]
dbgcv.c:1582:41: error: 'char *' and 'uint_8 *' (aka 'unsigned char *') are not pointers to compatible types
                EnvBlock->reclen = (unsigned short)(s - cv.ps - 2);
                                                    ~ ^ ~~~~~
dbgcv.c:1583:9: warning: assigning to 'uint_8 *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign
      [-Wpointer-sign]
                cv.ps = s;
                      ^ ~
dbgcv.c:1587:28: error: 'char *' and 'uint_8 *' (aka 'unsigned char *') are not pointers to compatible types
                cv.section->length += (s - start);
3
Thanks - just installed MASM32 and ran obligatory "Hello World":
>d:\masm32\bin\ml /c /coff mastest.asm   
>d:\masm32\bin\link /subsystem:console mastest.obj   
>mastest.exe
Hello World!

Pretty  :cool: GoAsm and Easy code are next.
4
UASM Assembler Development / Re: UASM 2.52
« Last post by tenkey on Today at 08:31:50 AM »
Thank you for working on UASM! I could build it OK, but an old bug that was present also in the old version 2.49 is still there. The following code

Code: [Select]
.code
tst proc
.for (eax = 0: edx == 0: )
nop
.endfor
tst endp
end

when built with "uasm -elf -3 -mf -Fl -Sa test.s", results in this listing:

Code: [Select]
test.s
                            *   .model FLAT
00000000                    *   _TEXT segment DWORD FLAT PUBLIC 'CODE'
                            *   _TEXT ends
00000000                    *   _DATA segment DWORD FLAT PUBLIC 'DATA'
                            *   _DATA ends
                            *   assume cs:flat,ds:flat,ss:flat,es:flat,fs:ERROR,gs:ERROR
                                .code
00000000                    *   _TEXT segment
                            *   assume cs:FLAT
00000000                        tst proc
00000000                                .for (eax = 0: edx == 0: )
00000000  33C0              *    xor  eax, eax
00000002                    *   @C0001:
00000002  90                                    nop
00000003                                .endfor
00000003  EBFD              *    jmp @C0001
00000005                        tst endp
                                end
00000005                    *   _TEXT ends

As you see, there is no check for the condition.

The bug must be in the "hll.c" file

Here's a version of hll.c for the Terraspace UASM code base that fixes the problem.
5
Hello,

No need to operate under a virtual machine. The zip file does not contain executables. If you are not sure, you can install an antivirus application to scan the content of the zip archive.
6
Thanks maybe I overrreacted. Got the header files.
MASM32 website talks about security. Would it be
safer to run code on say Linux VM (under VMWare)?
7
Hello,

Welcome to the Masm Forum.

The header files created by Donkey :

https://1drv.ms/u/s!AtgCy-XywfO-hswt7RlbeWTxBgjjww

are not infected. Here is Jotti's report :

https://virusscan.jotti.org/en-US/filescanjob/ixp4kaj2gu
8
The Campus / Installing GoAsm? Are the "GoAsm Headers" websites hacked?
« Last post by Behemot on Today at 06:05:16 AM »
I am just starting on assembler - course on LinkedIn suggest GoAsm from:   
http://www.godevtool.com   
Specifically the ECGo.zip. OK so I downloaded it and README says that header files needed are at:   
http://www.donkeysstable.com   
Well that website does not exist - or it is blocked for some reason.
The Header section on GoDevTools also points to:   
https://1drv.ms/u/s!AtgCy-XywfO-hswt7RlbeWTxBgjjww   
which is infinitely suspicious.  Did someone hack into those sites?
9
UASM Assembler Development / Re: krad-uasm-wip 2.54.0 version
« Last post by tenkey on Today at 04:22:25 AM »
Here's the version of hll.c for kradmoonra's UASM code base.
It fixes the .for-.endfor code generation bug.
10
Showcase / MS COFF import library to module definition file converter
« Last post by Vortex on Today at 03:15:39 AM »
Hello,

Here is lib2def V2.2, my MS COFF import library to module definition file converter. A bug causing crash is now fixed. The tool can process 32-bit and 64-bit import libraries. lib2def accepts wildcards like *.lib

http://vortex.masmcode.com/files/lib2def22.zip
Pages: [1] 2 3 ... 10