I ran into a problem in my program. Basically what i want to do check if there is a space after a dot in a string and if there isn't i add a space right after the dot. However i don't get how to go about this since my buffer is limited size, therefore if i add the space, the last letter of the buffer will be erased? or am i doing this wrong? thank you for the help in advance :) For example: Hello.Hi = Hello. Hi
MOV cx, ax
MOV si, offset readBuf
MOV di, offset writeBuf
work:
MOV dl, [si]
CMP dl, '.'
JE dot
increase:
MOV [di], dl
INC si
INC di
LOOP work
dot:
CMP dl+1, ' '
JNE noSpace
JMP increase
noSpace: