Search a program in an array and print whetehr it's positive or negative
This sounds like homework, tell us what you are trying to do and what you have written.
Hi Nabho,
as Hutch already mentioned: The best way to get help is to post your code here and to describe your goals. We can look over your code, can give hints, tips and tricks, but we won't do your homework for you.
Gunther
I don't know anything about asm and the teachers asked me to do it without any help
here's the code i used in MSAM32 ide
.386
.model flat,stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\user32.lib
.data
a db 02h,02h,02h,02h,02h,02h,02h,02h,02h,02h
.code
start: mov ax,@data
mov ds,axa
mov cl,10
lea si,a
mov ax,0000h
again: add al,[si]
inc si
dec cl
jnz again
mov cl,0ah
div cl
mov ah,4ch
int 21h
end start
.end
whenever i click on assemble and link on ide i get error s
line 26:error A2155:cannot use 16-bit register with a 32-bit address
line 16:error A2004:symbol type conflict
Hi:
mov ds, axa
should be mov ds, ax
Regrds herge