hi... ive tried alot of things already...and i know what the problem is, just not sure how to fix it.
ive isolated it to this part of the code thats giving me problems... and i think that its because the register cant hold the number (hence the overflow error)
MOV AX, number ;for division
MOV CX, 2d ;''
DIV CX ; AX (number) / CX (2) = n/2 in ax
INC AX ;so now its n/2 +1
MOV countmax, AX ;store max var.
number will be from 100-999
since my div skills arent that great...what is the best way to divide something? my book isnt very helpful.
thanks
-g