4 Replies - 657 Views - Last Post: 29 July 2017 - 12:34 PM

#1 aryansayna  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 27-July 17

Tasm errors please help

Posted 27 July 2017 - 04:16 PM

hi
After compiling by Tasm 5 and 3 (i tried with both version of Tasm) it show me a few Error! that I dont know why!
please help me
thanks a lot

Quote

==============Error messages==
C:\TASM>tasm fonts.txt

Turbo Assembler Uersion 3.0(also: TURBO ASSEMBLER 5.0) Copyright © 1988, 1991 Borland International

Assembling file: fonts.txt

*-*Error*-» fonts.txt(4) Illegal instruction

*-*Error*-» fonts.txt(15) Illegal instruction

*-*Error*-» fonts.txt( 148) Undefined symbol: FONT1

*-*Error*-» fonts.txt( 154) Undefined symbol: FONT2

Error messages: 4

Warning messages: None

Passes: 1

Rema ining memory: 470k


========My code====
.MODEL LARGE, PASCAL
.386
.DATA
FONT1
db 000h,000h,000h,000h,000h,000h,000h,030h,048h,048h,030h,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,060h,070h,070h,038h,018h,018h,008h,008h,008h,000h,000h,000h
db 000h,000h,000h,000h,044h,0FCh,0F8h,060h,030h,030h,010h,010h,010h,000h,000h,000h
db 000h,000h,000h,000h,04Ah,0FEh,0F4h,060h,030h,030h,010h,010h,010h,000h,000h,000h
db 000h,000h,000h,000h,04Eh,0F0h,0FEh,07Ch,030h,030h,010h,010h,010h,000h,000h,000h
db 000h,000h,000h,000h,030h,038h,02Ch,044h,042h,082h,092h,0FEh,06Ch,000h,000h,000h
db 000h,000h,000h,000h,040h,07Ch,03Ch,004h,004h,004h,006h,007h,003h,000h,000h,000h
db 000h,000h,000h,000h,082h,0C6h,0C6h,06Ch,028h,038h,010h,010h,010h,000h,000h,000h
db 000h,000h,000h,000h,010h,010h,010h,038h,028h,06Ch,0C6h,0C6h,082h,000h,000h,000h
db 000h,000h,000h,000h,070h,0F8h,088h,0F8h,078h,008h,00Ch,00Eh,006h,000h,000h,000h
FONT2
db 000h,000h,000h,000h,000h,000h,000h,030h,048h,048h,030h,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,030h,038h,038h,01Ch,00Ch,00Ch,004h,004h,004h,000h,000h,000h
db 000h,000h,000h,000h,022h,07Eh,07Ch,030h,018h,018h,008h,008h,008h,000h,000h,000h
db 000h,000h,000h,000h,025h,07Fh,07Ah,030h,018h,018h,008h,008h,008h,000h,000h,000h
db 000h,000h,000h,000h,027h,078h,07Fh,03Eh,018h,018h,008h,008h,008h,000h,000h,000h
db 000h,000h,000h,000h,018h,01Ch,016h,022h,021h,041h,041h,07Fh,036h,000h,000h,000h
db 000h,000h,000h,000h,042h,07Eh,03Eh,004h,004h,004h,006h,003h,003h,001h,000h,000h
db 000h,000h,000h,000h,041h,063h,063h,036h,014h,01Ch,008h,008h,008h,000h,000h,000h
db 000h,000h,000h,000h,008h,008h,008h,01Ch,014h,036h,063h,063h,041h,000h,000h,000h
db 000h,000h,000h,000h,038h,07Ch,044h,07Ch,03Ch,004h,004h,006h,007h,003h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,018h,020h,038h,038h,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,000h,000h,0FFh,0FFh,000h,000h,000h,000h,000h
db 000h,000h,000h,01Ch,03Eh,022h,020h,010h,008h,008h,000h,008h,000h,000h,000h,000h
db 000h,002h,032h,04Ch,000h,010h,018h,018h,018h,018h,018h,018h,000h,000h,000h,000h
db 000h,000h,000h,000h,008h,010h,008h,011h,001h,0FFh,0FEh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,00Ch,010h,00Ch,00Ah,014h,008h,000h,000h,000h,000h
db 000h,000h,000h,010h,018h,018h,018h,018h,018h,018h,018h,018h,000h,000h,000h,000h
db 000h,000h,000h,008h,008h,008h,008h,008h,008h,00Fh,007h,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,041h,081h,0FFh,07Eh,000h,008h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,001h,001h,0FFh,0FEh,000h,020h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,041h,081h,0FFh,07Eh,000h,028h,010h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,001h,001h,0FFh,0FEh,000h,050h,020h,000h,000h
db 000h,000h,000h,000h,000h,028h,000h,041h,081h,0FFh,07Eh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,028h,000h,001h,001h,0FFh,0FEh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,010h,028h,000h,041h,081h,0FFh,07Eh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,010h,028h,000h,001h,001h,0FFh,0FEh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,01Ch,026h,003h,01Fh,03Fh,060h,044h,040h,061h,03Eh
db 000h,000h,000h,000h,000h,000h,01Ch,026h,003h,0FFh,0FEh,000h,008h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,01Ch,026h,003h,01Fh,03Fh,060h,04Ah,044h,061h,03Eh
db 000h,000h,000h,000h,000h,000h,01Ch,026h,003h,0FFh,0FEh,000h,038h,010h,000h,000h
db 000h,000h,000h,000h,000h,000h,01Ch,026h,003h,01Fh,03Fh,060h,040h,040h,061h,03Eh
db 000h,000h,000h,000h,000h,000h,01Ch,026h,003h,0FFh,0FEh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,008h,000h,01Ch,026h,003h,01Fh,03Fh,060h,040h,040h,061h,03Eh
db 000h,000h,000h,000h,008h,000h,01Ch,026h,003h,0FFh,0FEh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,00Ch,006h,003h,03Fh,03Eh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,008h,000h,00Ch,006h,003h,03Fh,03Eh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,002h,007h,003h,003h,006h,00Eh,03Ch,000h,000h
db 000h,000h,000h,000h,000h,002h,000h,002h,007h,003h,003h,007h,00Eh,03Ch,000h,000h
db 000h,000h,000h,000h,004h,00Ah,000h,002h,007h,003h,003h,006h,00Eh,03Ch,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,001h,015h,09Fh,09Eh,098h,088h,088h,0F8h,070h
db 000h,000h,000h,000h,000h,000h,000h,001h,049h,0FFh,0FEh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,008h,014h,000h,001h,015h,09Fh,09Eh,098h,088h,088h,0F8h,070h
db 000h,000h,000h,000h,008h,014h,000h,001h,049h,0FFh,0FEh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,003h,005h,015h,09Fh,09Eh,098h,088h,088h,0F8h,070h
db 000h,000h,000h,000h,000h,000h,006h,009h,051h,0FFh,0FEh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,008h,000h,003h,005h,015h,09Fh,09Eh,098h,088h,088h,0F8h,070h
db 000h,000h,000h,000h,004h,000h,006h,009h,051h,0FFh,0FEh,000h,000h,000h,000h,000h
db 000h,000h,000h,020h,020h,020h,02Eh,031h,021h,0FFh,0FEh,000h,000h,000h,000h,000h
db 011h,044h,011h,044h,011h,044h,011h,044h,011h,044h,011h,044h,011h,044h,011h,044h
db 055h,0AAh,055h,0AAh,055h,0AAh,055h,0AAh,055h,0AAh,055h,0AAh,055h,0AAh,055h,0AAh
db 0DDh,077h,0DDh,077h,0DDh,077h,0DDh,077h,0DDh,077h,0DDh,077h,0DDh,077h,0DDh,077h
db 018h,018h,018h,018h,018h,018h,018h,018h,018h,018h,018h,018h,018h,018h,018h,018h
db 018h,018h,018h,018h,018h,018h,018h,018h,018h,0F8h,018h,018h,018h,018h,018h,018h
db 018h,018h,018h,018h,018h,018h,018h,0F8h,018h,0F8h,018h,018h,018h,018h,018h,018h
db 036h,036h,036h,036h,036h,036h,036h,036h,036h,0F6h,036h,036h,036h,036h,036h,036h
db 000h,000h,000h,000h,000h,000h,000h,000h,000h,0FEh,036h,036h,036h,036h,036h,036h
db 000h,000h,000h,000h,000h,000h,000h,0F8h,018h,0F8h,018h,018h,018h,018h,018h,018h
db 036h,036h,036h,036h,036h,036h,036h,0F6h,006h,0F6h,036h,036h,036h,036h,036h,036h
db 036h,036h,036h,036h,036h,036h,036h,036h,036h,036h,036h,036h,036h,036h,036h,036h
db 000h,000h,000h,000h,000h,000h,000h,0FEh,006h,0F6h,036h,036h,036h,036h,036h,036h
db 036h,036h,036h,036h,036h,036h,036h,0F6h,006h,0FEh,000h,000h,000h,000h,000h,000h
db 036h,036h,036h,036h,036h,036h,036h,036h,036h,0FEh,000h,000h,000h,000h,000h,000h
db 018h,018h,018h,018h,018h,018h,018h,0F8h,018h,0F8h,000h,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,000h,000h,0F8h,018h,018h,018h,018h,018h,018h
db 018h,018h,018h,018h,018h,018h,018h,018h,018h,01Fh,000h,000h,000h,000h,000h,000h
db 018h,018h,018h,018h,018h,018h,018h,018h,018h,0FFh,000h,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,000h,000h,0FFh,018h,018h,018h,018h,018h,018h
db 018h,018h,018h,018h,018h,018h,018h,018h,018h,01Fh,018h,018h,018h,018h,018h,018h
db 000h,000h,000h,000h,000h,000h,000h,000h,000h,0FFh,000h,000h,000h,000h,000h,000h
db 018h,018h,018h,018h,018h,018h,018h,018h,018h,0FFh,018h,018h,018h,018h,018h,018h
db 018h,018h,018h,018h,018h,018h,018h,01Fh,018h,01Fh,018h,018h,018h,018h,018h,018h
db 036h,036h,036h,036h,036h,036h,036h,036h,036h,037h,036h,036h,036h,036h,036h,036h
db 036h,036h,036h,036h,036h,036h,036h,037h,030h,03Fh,000h,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,03Fh,030h,037h,036h,036h,036h,036h,036h,036h
db 036h,036h,036h,036h,036h,036h,036h,0F7h,000h,0FFh,000h,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,0FFh,000h,0F7h,036h,036h,036h,036h,036h,036h
db 036h,036h,036h,036h,036h,036h,036h,037h,030h,037h,036h,036h,036h,036h,036h,036h
db 000h,000h,000h,000h,000h,000h,000h,0FFh,000h,0FFh,000h,000h,000h,000h,000h,000h
db 036h,036h,036h,036h,036h,036h,036h,0F7h,000h,0F7h,036h,036h,036h,036h,036h,036h
db 018h,018h,018h,018h,018h,018h,018h,0FFh,000h,0FFh,000h,000h,000h,000h,000h,000h
db 036h,036h,036h,036h,036h,036h,036h,036h,036h,0FFh,000h,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,0FFh,000h,0FFh,018h,018h,018h,018h,018h,018h
db 000h,000h,000h,000h,000h,000h,000h,000h,000h,0FFh,036h,036h,036h,036h,036h,036h
db 036h,036h,036h,036h,036h,036h,036h,036h,036h,03Fh,000h,000h,000h,000h,000h,000h
db 018h,018h,018h,018h,018h,018h,018h,01Fh,018h,01Fh,000h,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,01Fh,018h,01Fh,018h,018h,018h,018h,018h,018h
db 000h,000h,000h,000h,000h,000h,000h,000h,000h,03Fh,036h,036h,036h,036h,036h,036h
db 036h,036h,036h,036h,036h,036h,036h,036h,036h,0FFh,036h,036h,036h,036h,036h,036h
db 018h,018h,018h,018h,018h,018h,018h,0FFh,018h,0FFh,018h,018h,018h,018h,018h,018h
db 018h,018h,018h,018h,018h,018h,018h,018h,018h,0F8h,000h,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,000h,000h,01Fh,018h,018h,018h,018h,018h,018h
db 0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh
db 000h,000h,000h,000h,000h,000h,000h,000h,000h,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh
db 0F0h,0F0h,0F0h,0F0h,0F0h,0F0h,0F0h,0F0h,0F0h,0F0h,0F0h,0F0h,0F0h,0F0h,0F0h,0F0h
db 00Fh,00Fh,00Fh,00Fh,00Fh,00Fh,00Fh,00Fh,00Fh,00Fh,00Fh,00Fh,00Fh,00Fh,00Fh,00Fh
db 0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,000h,000h,000h,000h,000h,000h,000h
db 000h,000h,000h,020h,024h,020h,02Eh,031h,021h,0FFh,0FEh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,00Ch,01Eh,020h,03Eh,03Eh,040h,080h,080h,0C1h,0FEh,07Ch
db 000h,000h,000h,000h,000h,000h,038h,044h,038h,03Fh,04Fh,080h,080h,0C2h,0FCh,078h
db 000h,000h,000h,000h,000h,000h,01Ch,022h,01Ch,0FFh,0E7h,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,00Ch,01Eh,020h,0FEh,0FCh,000h,000h,000h,000h,000h
db 000h,000h,000h,004h,000h,00Ch,01Eh,020h,03Eh,03Eh,040h,080h,080h,0C1h,0FEh,07Ch
db 000h,000h,000h,000h,010h,000h,038h,044h,038h,03Fh,04Fh,080h,080h,0C2h,0FCh,078h
db 000h,000h,000h,000h,008h,000h,01Ch,022h,01Ch,0FFh,0E7h,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,004h,000h,00Ch,01Eh,020h,0FEh,0FCh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,002h,000h,002h,047h,085h,0FFh,07Eh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,002h,000h,002h,007h,005h,0FFh,0FEh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,014h,000h,002h,007h,005h,087h,081h,081h,083h,07Eh,03Ch,000h
db 000h,000h,000h,000h,00Ah,000h,002h,007h,005h,0FFh,0FEh,000h,000h,000h,000h,000h
db 000h,001h,003h,006h,00Ch,008h,00Ch,086h,083h,0FFh,07Eh,000h,000h,000h,000h,000h
db 000h,001h,003h,006h,00Ch,008h,00Ch,006h,003h,0FFh,0FEh,000h,000h,000h,000h,000h
db 000h,005h,00Bh,016h,00Ch,008h,00Ch,086h,083h,0FFh,07Eh,000h,000h,000h,000h,000h
db 000h,005h,00Bh,016h,00Ch,008h,00Ch,006h,003h,0FFh,0FEh,000h,000h,000h,000h,000h
db 000h,000h,000h,001h,001h,001h,001h,001h,001h,001h,081h,081h,0FEh,07Ch,000h,000h
db 000h,000h,000h,001h,061h,031h,019h,009h,005h,007h,00Eh,038h,000h,000h,000h,000h
db 000h,000h,000h,001h,001h,001h,001h,001h,001h,0FFh,0FEh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,006h,00Bh,07Fh,0FEh,080h,080h,080h,080h,080h
db 000h,000h,000h,000h,000h,000h,000h,006h,00Fh,0FDh,0FFh,006h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,000h,010h,001h,081h,081h,081h,0FEh,07Ch,000h
db 000h,000h,000h,000h,000h,004h,000h,001h,001h,0FFh,0FEh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,006h,009h,00Fh,00Fh,003h,00Eh,03Ch,000h,000h
db 000h,000h,000h,000h,004h,00Eh,00Fh,013h,013h,01Fh,00Eh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,000h,010h,0F3h,0F3h,00Ch,004h,000h,000h,000h
db 000h,000h,000h,000h,000h,00Ch,01Eh,03Fh,0C9h,0FFh,0FEh,000h,000h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,000h,007h,007h,00Eh,083h,081h,0FFh,07Eh,000h
db 000h,000h,000h,000h,000h,000h,006h,00Fh,010h,01Eh,08Fh,081h,081h,0FEh,07Ch,000h
db 000h,000h,000h,000h,000h,000h,000h,001h,001h,0FFh,0FEh,000h,024h,000h,000h,000h
db 000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h
.CODE

Assume    es:@DATA
public    Font
FONT     proc   PASCAL
lea     bp, FONT1
mov     dx,48
mov     bx,1000h
mov     cx,10
mov     ax,1110h
int     10h
lea     bp,FONT2
mov     dx,128
push    ds
pop     es
mov     bx,1000h
mov     cx,127
mov     ax,1110h
int     10h
ret
FONT   ENDP
END


This post has been edited by no2pencil: 27 July 2017 - 11:11 PM
Reason for edit:: Added Code Tags


Is This A Good Question/Topic? 0
  • +

Replies To: Tasm errors please help

#2 no2pencil  Icon User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6552
  • View blog
  • Posts: 30,682
  • Joined: 10-May 07

Re: Tasm errors please help

Posted 27 July 2017 - 11:12 PM

** Added Code Tags & moved topic to Assembly sub-forum **
Was This Post Helpful? 0
  • +
  • -

#3 aryansayna  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 27-July 17

Re: Tasm errors please help

Posted 29 July 2017 - 11:23 AM

Hi agein,
no any solution for it?
becaus it's urgent and urgent! :bigsmile:
thanks a lot
Was This Post Helpful? 0
  • +
  • -

#4 Salem_c  Icon User is offline

  • void main'ers are DOOMED
  • member icon

Reputation: 2130
  • View blog
  • Posts: 4,196
  • Joined: 30-May 10

Re: Tasm errors please help

Posted 29 July 2017 - 12:17 PM

Shouldn't your labels have a : at the end?

Eg.
FONT1:
Was This Post Helpful? 0
  • +
  • -

#5 aryansayna  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 27-July 17

Re: Tasm errors please help

Posted 29 July 2017 - 12:34 PM

thank you Salem_C
I already used a ":" after these Names(label)
but after compile, it show me error (CS UNREACHABLE FROM CURRENT SEGMENT(LINE 4,15))
:helpsmilie: :nottalkingtoyou:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1