Author Topic: why dont uasm assemble even with prototypes?  (Read 512 times)

daydreamer

  • Member
  • *****
  • Posts: 1721
  • building nextdoor
why dont uasm assemble even with prototypes?
« on: April 27, 2021, 02:38:04 AM »
Code: [Select]
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
Code: [Select]
  isoto2d proto xx,yy:WORD
    twodtoiso proto xx,yy:WORD

in separate .inc file

Code: [Select]
;*********************************************************************
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

;¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
SIMD fan and macro fan
why assembly is fastest is because its switch has no (brakes) breaks
:P
only in 16bit assembly you can get away with "Only words" :P

daydreamer

  • Member
  • *****
  • Posts: 1721
  • building nextdoor
Re: why dont uasm assemble even with prototypes?
« Reply #1 on: April 27, 2021, 05:14:03 PM »
Solved, added option language:C
And changed to Uasm proto syntax
SIMD fan and macro fan
why assembly is fastest is because its switch has no (brakes) breaks
:P
only in 16bit assembly you can get away with "Only words" :P

daydreamer

  • Member
  • *****
  • Posts: 1721
  • building nextdoor
Re: why dont uasm assemble even with prototypes?
« Reply #2 on: May 13, 2021, 03:52:16 AM »
it reports errors using the old switch/case/endsw
SIMD fan and macro fan
why assembly is fastest is because its switch has no (brakes) breaks
:P
only in 16bit assembly you can get away with "Only words" :P