you need to do some kind of compare string function. In some languages, you compare each value in the string to see if its the one you are looking for, if not, then go to next.
Like a for next loop, or do while. some logic might be ...
get value
check value for 45h
if not next value
if yes...
Not exactly sure what you are looking for for, but I know assembly code.
cmp al, 30 this compares a byte value in Al register to 30
jb short snake if its below then it jumps a short dist (less 128 bytes) to label snake at offset #.
if its not below it falls thru the...
Im presuming you know the amount of digits the person entered. Hope this routine works, I wrote it on the fly, didnt have one avail.
mov ebx,LenofInval ;get amount of chars entered
mov ecx,1 ;init our mutliplier
mov newval,0 ;value to be stored here
@loop...
Not quite sure on mixxing the 2, but I know masm32 - windows assembly - can access and allocate memmory upto 128 meg. with 32 bit code. Might be able to have masm32 do it and then return the location to VB to use.
Thaz
I believe mode 12 is either CGA or EGA graphics. If thats the case, the 16kb buffer would be at b000:8000h. Writing screen code for CGA or EGA differs from VGA. They have levels of screens rather then 1 pixel per color.
Thaz
From what I remember, I dont think you can 'jump' out of a procedure, you might need to 'return' instead. When you call a procedure, you put the return address on the stack, if you jump to instead of return, you're stack pointer gets messed up.
Thaz
Need a 'ret' command before endp of Str_concat. All procedures need ret except main, which has exit. Cant see all the code, but also looks like you're missing 'start' and 'end start'.
Thaz
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.