Войти или зарегистрироваться
Что за error A2119?
Тема в разделе «WASM.BEGINNERS», создана пользователем Tweak07, 17 июл 2007.
-
Tweak07
New Member
- Публикаций:
-
0
- Регистрация:
- 17 июл 2007
- Сообщения:
- 3
читаю уроки Iczelion’a и когда пытаюсь скомпилировать программу из 2 урока , masm пишет :
Assembling: D:masm32Lessonsless1.asm
D:masm32Lessonsless1.asm(1) : error A2008: syntax error : integer
D:masm32Lessonsless1.asm(3) : error A2085: instruction or register not accepted in current CPU mode
masm32includewindows.inc(45) : error A2119: language type must be specified
masm32includewindows.inc(46) : error A2119: language type must be specified
………………………………………………………………………………………………..
masm32includekernel32.inc(124) : fatal error A1012: error count exceeds 100; stopping assemblyкак от этого избавиться?
Tweak07,
17 июл 2007
#1
-
PaCHER
New Member
- Публикаций:
-
0
- Регистрация:
- 25 мар 2006
- Сообщения:
- 852
Исправить ошибки в 1ой 3ей строке.
PaCHER,
17 июл 2007
#2
-
Tweak07
New Member
- Публикаций:
-
0
- Регистрация:
- 17 июл 2007
- Сообщения:
- 3
Да там вроде недолжно быть ошибок , я из урока прям копировал код:
386.model flat,stdcall
option casemap:none
Tweak07,
17 июл 2007
#3
-
Sturgeon
New Member
- Публикаций:
-
0
- Регистрация:
- 17 окт 2006
- Сообщения:
- 111
Скорее всего когда указывал тип процессора забыл поставить перед ним точку
386
а надо так
.386
Sturgeon,
17 июл 2007
#4
-
Tweak07
New Member
- Публикаций:
-
0
- Регистрация:
- 17 июл 2007
- Сообщения:
- 3
Спасибо разобрался
Tweak07,
17 июл 2007
#5
(Вы должны войти или зарегистрироваться, чтобы ответить.)
- Ваше имя или e-mail:
- У Вас уже есть учётная запись?
-
- Нет, зарегистрироваться сейчас.
- Да, мой пароль:
-
Забыли пароль?
-
Запомнить меня
Поиск
-
- Искать только в заголовках
- Сообщения пользователя:
-
Имена участников (разделяйте запятой).
- Новее чем:
-
- Искать только в этой теме
- Искать только в этом разделе
- Отображать результаты в виде тем
-
Быстрый поиск
- Последние сообщения
Больше…
Вадим77 1 / 1 / 0 Регистрация: 21.04.2016 Сообщений: 161 |
||||
1 |
||||
MASM 15.07.2017, 16:09. Показов 2766. Ответов 9 Метки нет (Все метки)
Где может быть ошибка? Кликните здесь для просмотра всего текста
C:masm32binwindows.inc(78) : error A2119: language type must be specified
__________________
0 |
Programming Эксперт 94731 / 64177 / 26122 Регистрация: 12.04.2006 Сообщений: 116,782 |
15.07.2017, 16:09 |
9 |
Модератор 8278 / 4182 / 1595 Регистрация: 01.02.2015 Сообщений: 13,004 Записей в блоге: 3 |
|
15.07.2017, 19:55 |
2 |
0 |
1 / 1 / 0 Регистрация: 21.04.2016 Сообщений: 161 |
|
15.07.2017, 20:31 [ТС] |
3 |
ФедосеевПавел, После компиляции запускаю. Пишет прекращена работа программы Миниатюры
0 |
Модератор 8278 / 4182 / 1595 Регистрация: 01.02.2015 Сообщений: 13,004 Записей в блоге: 3 |
|
15.07.2017, 20:39 |
4 |
Внимательно прочитайте пример из того сообщения. Также, существуют отладчики: OllyDbg, x64dbg. Можно выполнить программу по шагам и понять, на какой команде происходит аварийный останов. Попробуйте найти ошибку в отладчике.
0 |
1 / 1 / 0 Регистрация: 21.04.2016 Сообщений: 161 |
|
15.07.2017, 20:59 [ТС] |
5 |
ФедосеевПавел, А есть отладчик на русском языке?
0 |
Модератор 8278 / 4182 / 1595 Регистрация: 01.02.2015 Сообщений: 13,004 Записей в блоге: 3 |
|
15.07.2017, 21:08 |
6 |
Не знаю. Никогда не задумывался. Я учился во времена, когда русификация программ была исключением и вызывала удивление. Вы учите ассемблер, а перед этим уже пробовали другие языки? Так, чтобы пошаговую отладку выполнить?
0 |
1 / 1 / 0 Регистрация: 21.04.2016 Сообщений: 161 |
|
15.07.2017, 21:14 [ТС] |
7 |
ФедосеевПавел, Учил с++, отладку никогда не делал. Потом перешел на ассемблер.
0 |
ФедосеевПавел Модератор 8278 / 4182 / 1595 Регистрация: 01.02.2015 Сообщений: 13,004 Записей в блоге: 3 |
||||
15.07.2017, 21:35 |
8 |
|||
Мне трудно понять в каком месте в вашей программе некорректный вызов процедур
Добавлено через 1 минуту
1 |
Эксперт Hardware 5436 / 1975 / 362 Регистрация: 29.07.2014 Сообщений: 2,893 Записей в блоге: 4 |
|
15.07.2017, 22:14 |
9 |
invoke wsprintf если память не изменяет, то за принтф нужно стек подчищать, поэтому
0 |
Модератор 8278 / 4182 / 1595 Регистрация: 01.02.2015 Сообщений: 13,004 Записей в блоге: 3 |
|
15.07.2017, 22:40 |
10 |
При работе в FASM — да. Но masm берёт это на себя. Миниатюры
0 |
IT_Exp Эксперт 87844 / 49110 / 22898 Регистрация: 17.06.2006 Сообщений: 92,604 |
15.07.2017, 22:40 |
Помогаю со студенческими работами здесь Квадратный корень
квадратный корень
Искать еще темы с ответами Или воспользуйтесь поиском по форуму: 10 |
I am using the 64-bit version of the Visual C++ 7.1 libraries and build tools and I am receiving an error when compiling the assembly files which I have been unable to fix and am hoping that somebody will be able to tell me how to fix. The ML64.EXE compiler will not accept .586p or .model. I believe the language type needs to be in the PROC statement.
ml64.exe /c /Cx «.asmMD4_asm.asm»
Microsoft (R) Macro Assembler (AMD64) Version 8.00.40121
Copyright (C) Microsoft Corporation. All rights reserved.
Assembling: .asmMD4_asm.asm
.asmMD4_asm.asm(1) : error A2008: syntax error : .
.asmMD4_asm.asm(2) : error A2008: syntax error : .model
.asmMD4_asm.asm(178) : error A2119: language type must be specified
.asmMD4_asm.asm(180) : error A2008: syntax error : pusha
.asmMD4_asm.asm(238) : error A2008: syntax error : popa
NMAKE : fatal error U1077: ‘ml64.exe’ : return code ‘0x1’
Stop.
Line 1-2
.586p
.model flat, C
Lines 178-183
MD4_Add_p5 PROC PUBLIC, _this:DWORD, _Data:DWORD, _nLength:DWORD
pusha
__this textequ <[esp+36]> ; different offset due to pusha
__Data textequ <[esp+40]>
__nLength textequ <[esp+44]>
I wrote a prog. that does nothing
but it doesnt assemble
How to solve this problem ?
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997. All rights reserved.Assembling: C:masm32…TestMath10.asm
***********
ASCII build
***********masm32includewindows.inc(78) : error A2119: language type must be specified
masm32includewindows.inc(79) : error A2119: language type must be specified
masm32includewindows.inc(80) : error A2119: language type must be specified
masm32includewindows.inc(81) : error A2119: language type must be specified
masm32includewindows.inc(82) : error A2119: language type must be specified
masm32includewindows.inc(83) : error A2119: language type must be specified
masm32includewindows.inc(84) : error A2119: language type must be specified
masm32includewindows.inc(85) : error A2119: language type must be specified
masm32includewindows.inc(86) : error A2119: language type must be specified
masm32includewindows.inc(87) : error A2119: language type must be specified
masm32includewindows.inc(88) : error A2119: language type must be specified
masm32includewindows.inc(89) : error A2119: language type must be specified
masm32includewindows.inc(90) : error A2119: language type must be specified
masm32includewindows.inc(91) : error A2119: language type must be specified
masm32includewindows.inc(92) : error A2119: language type must be specified
masm32includewindows.inc(93) : error A2119: language type must be specified
masm32includewindows.inc(94) : error A2119: language type must be specified
masm32includewindows.inc(95) : error A2119: language type must be specified
masm32includewindows.inc(96) : error A2119: language type must be specified
masm32includewindows.inc(97) : error A2119: language type must be specified
masm32includewindows.inc(98) : error A2119: language type must be specified
masm32includewindows.inc(99) : error A2119: language type must be specified
masm32includewindows.inc(100) : error A2119: language type must be specified
masm32includewindows.inc(101) : error A2119: language type must be specified
masm32includewindows.inc(102) : error A2119: language type must be specified
masm32includewindows.inc(156) : error A2004: symbol type conflict : bool
masm32includewindows.inc(7835) : error A2179: structure improperly initialize
d
masm32includewindows.inc(7835) : error A2008: syntax error : in structure
masm32includewindows.inc(9045) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9045) : error A2008: syntax error : in structure
masm32includewindows.inc(9058) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9058) : error A2008: syntax error : in structure
masm32includewindows.inc(9070) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9070) : error A2008: syntax error : in structure
masm32includewindows.inc(9075) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9075) : error A2008: syntax error : in structure
masm32includewindows.inc(9080) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9080) : error A2008: syntax error : in structure
masm32includewindows.inc(9085) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9085) : error A2008: syntax error : in structure
masm32includewindows.inc(9090) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9090) : error A2008: syntax error : in structure
masm32includewindows.inc(9097) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9097) : error A2008: syntax error : in structure
masm32includewindows.inc(9104) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9104) : error A2008: syntax error : in structure
masm32includewindows.inc(9111) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9111) : error A2008: syntax error : in structure
masm32includewindows.inc(9116) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9116) : error A2008: syntax error : in structure
masm32includewindows.inc(9122) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9122) : error A2008: syntax error : in structure
masm32includewindows.inc(9130) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9130) : error A2008: syntax error : in structure
masm32includewindows.inc(9131) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9131) : error A2008: syntax error : in structure
masm32includewindows.inc(9135) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9135) : error A2008: syntax error : in structure
masm32includewindows.inc(9141) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9141) : error A2008: syntax error : in structure
masm32includewindows.inc(9148) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9148) : error A2008: syntax error : in structure
masm32includewindows.inc(9155) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9155) : error A2008: syntax error : in structure
masm32includewindows.inc(9160) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9160) : error A2008: syntax error : in structure
masm32includewindows.inc(9168) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9168) : error A2008: syntax error : in structure
masm32includewindows.inc(9175) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9175) : error A2008: syntax error : in structure
masm32includewindows.inc(9183) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9183) : error A2008: syntax error : in structure
masm32includewindows.inc(9190) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9190) : error A2008: syntax error : in structure
masm32includewindows.inc(9200) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9200) : error A2008: syntax error : in structure
masm32includewindows.inc(9201) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9201) : error A2008: syntax error : in structure
masm32includewindows.inc(9205) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9205) : error A2008: syntax error : in structure
masm32includewindows.inc(9206) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9206) : error A2008: syntax error : in structure
masm32includewindows.inc(9211) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9211) : error A2008: syntax error : in structure
masm32includewindows.inc(9217) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9217) : error A2008: syntax error : in structure
masm32includewindows.inc(9224) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9224) : error A2008: syntax error : in structure
masm32includewindows.inc(9231) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9231) : error A2008: syntax error : in structure
masm32includewindows.inc(9237) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9237) : error A2008: syntax error : in structure
masm32includewindows.inc(9248) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9248) : error A2008: syntax error : in structure
masm32includewindows.inc(9256) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9256) : error A2008: syntax error : in structure
masm32includewindows.inc(9267) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9267) : error A2008: syntax error : in structure
masm32includewindows.inc(9279) : error A2179: structure improperly initialize
d
masm32includewindows.inc(9279) : error A2008: syntax error : in structure
masm32includewindows.inc(9287) : fatal error A1012: error count exceeds 100;
stopping assembly
_
Assembly Error
;*********************************************+
; File: TestMath10.asm
; by: RuiLoureiro
; ----------------------------------------
include masm32includewindows.inc
include masm32macrosmacros.asm ; masm32 macro file
include masm32includemasm32.inc ; masm32 library include
include masm32includeuser32.inc
include masm32includekernel32.inc
include masm32includegdi32.inc
include masm32includecomdlg32.inc
include masm32includecomctl32.inc
include masm32includewinspool.inc
include masm32includewinmm.inc
includelib masm32libuser32.lib
includelib masm32libkernel32.lib
includelib masm32libgdi32.lib
includelib masm32libcomdlg32.lib
includelib masm32libcomctl32.lib
includelib masm32libwinspool.lib
includelib masm32libwinmm.lib ; som
includelib masm32libmasm32.lib ; masm32 static library
WndProc proto :DWORD,:DWORD,:DWORD,:DWORD
Compute proto :DWORD
IDC_Out1 equ 5010
IDC_Out2 equ 5020
IDC_Out3 equ 5030
IDC_Out4 equ 5040
IDC_Out5 equ 5050
IDC_Compute equ 500
IDC_Close equ 501
;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
.data
hInstance dd ?
hDlg dd ?
_hHook1 dd ?
;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
.code
start:
invoke GetModuleHandle, 0
mov hInstance, eax
invoke InitCommonControls
invoke DialogBoxParam,hInstance,500,0,ADDR WndProc,0
invoke ExitProcess,eax
; ««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««
WndProc proc hWnd:DWORD, uMsg:DWORD, wParam:DWORD, lParam:DWORD
SWITCH uMsg
CASE WM_INITDIALOG
push hWnd
pop hDlg
CASE WM_CLOSE
_Quit: invoke EndDialog, hWnd, 0
_Exit: mov eax, TRUE
ret
CASE WM_COMMAND
switch wParam
case IDC_Compute
invoke Compute, hWnd
case IDC_Close
jmp _Quit
endsw
ENDSW
_fim: mov eax, FALSE
ret
WndProc endp
; «««««««««««««««««««««««««««««««««««««««««««««««««
Compute proc hWnd:DWORD
ret
Compute endp
;..................................................
end start
;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
KnowledgeBase Archive
An Archive of Early Microsoft KnowledgeBase Articles
View on GitHub
Article: Q75248
Product(s): Microsoft Macro Assembler
Version(s): MS-DOS:5.1,5.10a,6.0
Operating System(s):
Keyword(s):
Last Modified: 04-MAY-2001
-------------------------------------------------------------------------------
The information in this article applies to:
- Microsoft Macro Assembler (MASM), versions 5.1, 5.10a, 6.0
-------------------------------------------------------------------------------
SUMMARY
=======
The PROC directive used with arguments requires a language specifier in the
.MODEL directive in the Microsoft Macro Assembler (MASM) versions 5.1, 5.1a, and
6.0, and also in the Microsoft QuickAssembler versions 2.01 and 2.51. The
language specifier is required because it determines which parameter passing
convention will be used with the PROC arguments. If you do not specify a
language on the PROC line, the error
A2022: Operand must be type specifier
will be generated by MASM 5.1 and 5.1a, and by QuickAssembler 2.01 and 2.51. The
error
A2119: language type must be specified
will be generated by MASM 6.0.
MORE INFORMATION
================
To correct the code, specify a language in the .MODEL statement. To correct the
following program, replace the statement ".MODEL small" with ".MODEL small,
language" where language is either FORTRAN, PASCAL, Basic, or C.
Sample Code
-----------
; Assemble options needed: none
.MODEL small
.CODE
PUBLIC proc1
proc1 PROC arg1:WORD
proc1 ENDP
END
Additional query words: kbinf 5.10 5.10a s_quickasm 6.00
======================================================================
Keywords :
Technology : kbMASMsearch kbAudDeveloper kbMASM510 kbMASM600
Version : MS-DOS:5.1,5.10a,6.0
=============================================================================
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS
PROVIDED «AS IS» WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS
ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO
EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION
OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES
SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.
recently,i have started larning about assembly & computer physical stuffs,& when i arrived at writing assembly codes,i tried to link the first program the book i was using gave me but whenever i try to do so i get the following error messages:
E:masm32code.asm(1) : error A2008: syntax error : floating point constant
E:masm32code.asm(2) : error A2085: instruction or register not accepted in cur
rent CPU mode
masm32includewindows.inc(78) : error A2119: language type must be specified
...
masm32includemasm32.inc(153) : error A2119: language type must be specified
masm32includemasm32.inc(154) : fatal error A1012: error count exceeds 100; st
opping assembly
Im using MASM32 on windows xp & the code im trying to assemble & link:
386.
model flat, stdcall.
option casemap :none
include masm32includewindows.inc
include masm32includekernel32.inc
include masm32includemasm32.inc
includelib masm32libkernel32.lib
includelib masm32libmasm32.lib
data.
HelloWorld db "Hello World!", 0
code.
start:
invoke StdOut, addr HelloWorld
invoke ExitProcess, 0
end start
& Thnx in advance.