I am just playing around with assembly trying to get familier with strings. I am trying to determine the length of the string, here is kinda how I started, but I need some help as to it doesnt work :(
mytext: .db "This is text>",0x00
then I figured I need to copy into ram ?
ldi ZL, low(mytext)
ldi ZH, high(mytext)
the call my count function
.def temp =r18
cpi z,temp ; compare against 0
inc count; increment count for number of charectors
inc Z; need to increment the z register ??
havent done anything here , just a loop, until I figure out what I want to do with the count, display on PORTB leds ?
So, I dont know if I am on the right track or not ? Can someone help me out ? Just want to calculate the length of the string, I am a c person, and trying to learn assembyl, so thanks for any help !