Hi I have just started learning about hex assembling yesterday and at first I had some problems with making my first program to work properly but I got it working now but it's still not really working like I want it to.
I want it to simply print abcde on my screen. but instead I get this as output.
Asm(prgmASM) a Done b c d e
This is the code I use (I will try to use standard asm but Ill write my hex codes next to it)
;AsmPrgm LD (hl),(9DA1) ;21A19D LD A,(HL) ;7E BCALL(PutS) ;EF0A45 CP (HL) ;BE JP NZ,(9D98) ;C2989D ret ;C9 .db string1 "abcde",0 ;616263646500
Could someone tell me why putS is not displaying the whole string so that I have to write a loop to make display each character and why curRow and curCol go up by 1 each time ?
EDIT: I know Cp (HL) is not really correct yet but Ill find a way.. :P
EDIT2: I couldn't find a better solution for Cp (HL). it terminates my program at the right moment But.. if I have for example abbcde then it will exit after the first b. That is not what I want so could someone tell me how to do this ?
I am sorry for those basic questions.. :/