728x90
str = "abc"라 적으면 메모리에 end of string 0을 인식해서 저장함
스트링을 프린트해서 RS-232C로 내보내는데 EOS가 나타날 때 까지 포인트를 가르킨다.
1. Load a byte data from program memory pointed by Z, and increase Z (lpm rn, Z+)
2. If loaded data is not EOS, then rcall PutChar function with parameters in r0
3. If EOS, Return from sUBROUTINE
4. Jump to 1
z가 설정되어 있다는 가정 하에
728x90
'전기전자공학(전공) > 마이크로프로세서' 카테고리의 다른 글
A/D Converter and CDS Sensor (0) | 2022.05.27 |
---|---|
Serial Communication (0) | 2022.05.13 |
[9.1] External Interrupt Control and application to Clock Control (0) | 2022.05.10 |
Continuous Segment display using delay routine (0) | 2022.05.06 |
[AVR 어셈블리어] Various Addressing Modes (0) | 2022.04.22 |