Hi,
I want to write a kind of basic-compiler, which compiles a basic language into assembler-code (MASM). I've already finished the scanner and the parser, but now I have problems with creating the asm-code. I must admit that I have no great knowledge about assembler and so I need some help. In the moment my greatest problem is to concatenate two strings. In the MASM-Package I found the szMultiCat and the szCopy function, which help my with this problem.
.Data
stext1 DB "Hallo ",0
stext2 DB "World!",0
.Data?
StringBuffer DB 100 DUP(?)
.Code
push Offset stext2
push Offset stext1
push Offset StringBuffer
push 2
call szMultiCat
push Offset stext1
push Offset StringBuffer
call szCopy
But if the string is to small to hold the new content, other strings will be overwritten. I hope you can help my.