News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

why dont uasm assemble even with prototypes?

Started by daydreamer, April 27, 2021, 02:38:04 AM

Previous topic - Next topic

daydreamer


C:\masm32\16bit>/masm32/bin/uasm /c uasmtst8.asm
UASM v2.49, Jun 21 2019, Masm-compatible assembler.
Portions Copyright (c) 1992-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.

uasmtst8.asm(60) : Error A2091: Language type must be specified
uasmtst8.asm(61) : Error A2091: Language type must be specified
\masm32\16bit\ptext16.inc(156) : Error A2091: Language type must be specified
\masm32\16bit\ptext16.inc(156): Included by
  uasmtst8.asm(177): Main line code
\masm32\16bit\ptext16.inc(172) : Error A2091: Language type must be specified
\masm32\16bit\ptext16.inc(172): Included by
  uasmtst8.asm(177): Main line code
uasmtst8.asm: 178 lines, 1 passes, 23 ms, 0 warnings, 4 errors

C:\masm32\16bit>/masm32/bin/link16 /tiny uasmtst8.obj;

Microsoft (R) Segmented Executable Linker  Version 5.60.339 Dec  5 1994
Copyright (C) Microsoft Corp 1984-1993.  All rights reserved.

LINK : fatal error L1093: uasmtst8.obj : object file not found

C:\masm32\16bit>dir uasmtst*.*
Volume in drive C is Windows
Volume Serial Number is 22B7-801A

Directory of C:\masm32\16bit

2021-04-26  18:31             3 138 uasmtst8.asm
2021-04-26  18:09             1 484 uasmtst8.com
2021-04-26  18:32               454 uasmtst8.err
2021-04-24  16:35               101 uasmtstcompile.bat
               4 File(s)          5 177 bytes
               0 Dir(s)  217 622 761 472 bytes free

C:\masm32\16bit>pause
Press any key to continue . . .


main source file

  isoto2d proto xx,yy:WORD
    twodtoiso proto xx,yy:WORD


in separate .inc file

;*********************************************************************
isoto2d proc xx,yy:WORD
LOCAL xtmp,ytmp:WORD
mov ax,yy
add ax,ax
mov dx,ax
add ax,xx
sub dx,xx
sar ax,1
sar dx,1
mov xtmp,ax
mov ytmp,dx
;sal dx,10; 8   ;256*y
;add dx,ax     ;add x

ret 8
isoto2d endp
twodtoiso proc xx,yy:WORD
mov ax,xx
sub ax,yy
mov dx,xx
add dx,yy
sar dx,1



ret 8
twodtoiso endp

;¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

Solved, added option language:C
And changed to Uasm proto syntax
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

it reports errors using the old switch/case/endsw
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding