Download RX Debug - Renesas Electronics
Transcript
CubeSuite+ V1.03.00 APPENDIX B I/O FUNCTIONS PUTC Outputs 1 byte to standard output. [Function Code (R1 Register)] 1 byte 0x01 1 byte 1 byte 1 byte 0x22 0x00 0x00 [Parameter Block (R2 Register)] 1 byte 1 byte +0 Beginning address of +2 output buffer [Parameters] Parameter Beginning address of output buffer (input) Description Beginning address of the output buffer that contains output data [Detailed Description] - Outputs 1 byte to standard output. [Example] _charput: MOV.L #IO_BUF,R2 ; Set the address of the output buffer in R2. MOV.B R1,[R2] ; Set the value of R1 (output character) in the output MOV.L #1220000h,R1 ; Set the function code of PUTC in R1. MOV.L #PARM,R3 ; Set the address of the parameter block in R3. MOV.L R2,[R3] ; Set the address of the output buffer in the output MOV.L R3,R2 ; buffer. ; buffer. ; Set the value of R3 (address of the parameter block) ; in R2. MOV.L #SIM_IO,R3 ; Set the address of the system call in R3. JSR R3 ; System call RTS ; Return to the address where the function was called. .SECTION PARM: .BLKL .SECTION IO_BUF: .BLKL B,DATA,ALIGN=4 1 ; Parameter block area B_1,DATA 1 R20UT2175EJ0100 Rev.1.00 Oct 01, 2012 ; Input/output buffer Page 451 of 471
Related documents
RX Debug - Renesas Electronics
CS+ V3.02.00 Integrated Development Environment User`s Manual
RH850 Debug - Renesas Electronics
Part 1 - Hobbico Brands
RX Family Application Note Board Support Package Module Using
CS+ V3.02.00 Integrated Development Environment User`s Manual
E1/E20 Emulator Additional Document for User`s Manual: High
E1 On-Chip Debugging Emulator