Warning ensamblador
Publicado por Edu (1 intervención) el 12/12/2006 11:37:39
Hola, tengo un problema con unos warnings que me da el emsamblador,aqui os dejo el trozo de codigo por si me podeis ayudar.
Codigo:
NumMines dw 17
deu dw 10
reste dw ?
ActualitzaTauler:
push NumMines
push deu
push reste
call MostraDigits
MostraDigits:
push bp
mov bp,sp
mov al,[bp+8]
div [bp+6]
add al,48
mov [bp+4],ah
add [bp+4],48
mov dh,Filcur
mov dl,Colcur
mov bh,00h
mov ah,02h
int BIOSSERVICE
mov al,al
mov ah,00h
mov bl,07h
mov cx,1
mov ah,09h
int BIOSSERVICE
inc Colcur
mov dh,Filcur
mov dl,Colcur
mov bh,00h
mov ah,02h
int BIOSSERVICE
mov al,[bp+4]
mov ah,00h
mov bl,07h
mov cx,1
mov ah,09h
int BIOSSERVICE
y estos son los errores que me devuelve el tasm:
Turbo Assembler Version 3.1 Copyright (c) 1988, 1992 Borland International
Assembling file: mines1.ASM
div [bp+6]
*Warning* mines1.ASM(226) Argument needs type override
add [bp+4],48
*Warning* mines1.ASM(229) Argument needs type override
Error messages: None
Warning messages: 2
Passes: 1
Remaining memory: 446k
A parte he intentado ejecutar y me da un error "desbordamiento por division" y termina el programa.
mi pregunta:
Supongo ya de entrada que no sera como yo creo que es ,pero cuando sale el error "Argument needs type override" se supone que es porque los archivos no son del mismo tipo no?pero yo los he declarado de tipo dw(word) todos.
Saludos y muchas gracias por vuestra atención.
Codigo:
NumMines dw 17
deu dw 10
reste dw ?
ActualitzaTauler:
push NumMines
push deu
push reste
call MostraDigits
MostraDigits:
push bp
mov bp,sp
mov al,[bp+8]
div [bp+6]
add al,48
mov [bp+4],ah
add [bp+4],48
mov dh,Filcur
mov dl,Colcur
mov bh,00h
mov ah,02h
int BIOSSERVICE
mov al,al
mov ah,00h
mov bl,07h
mov cx,1
mov ah,09h
int BIOSSERVICE
inc Colcur
mov dh,Filcur
mov dl,Colcur
mov bh,00h
mov ah,02h
int BIOSSERVICE
mov al,[bp+4]
mov ah,00h
mov bl,07h
mov cx,1
mov ah,09h
int BIOSSERVICE
y estos son los errores que me devuelve el tasm:
Turbo Assembler Version 3.1 Copyright (c) 1988, 1992 Borland International
Assembling file: mines1.ASM
div [bp+6]
*Warning* mines1.ASM(226) Argument needs type override
add [bp+4],48
*Warning* mines1.ASM(229) Argument needs type override
Error messages: None
Warning messages: 2
Passes: 1
Remaining memory: 446k
A parte he intentado ejecutar y me da un error "desbordamiento por division" y termina el programa.
mi pregunta:
Supongo ya de entrada que no sera como yo creo que es ,pero cuando sale el error "Argument needs type override" se supone que es porque los archivos no son del mismo tipo no?pero yo los he declarado de tipo dw(word) todos.
Saludos y muchas gracias por vuestra atención.
Valora esta pregunta
0