Chapter 3. Using the Monitor/Debug Firmware
3-41
TRAP #15 Functions
asm (“ trap#15”);
/* make the call */
#endif
}
3.5.2
IN_CHAR
This function (function code 0x0010) returns an input character (from terminal) to the
caller. The returned character is in D1.
Assembly example:
move.l
#$0010,d0
Select the function
trap
#15
Make the call, the input character is in d1.
C example:
int board_in_char (void)
{
asm (“ move.l#0x0010,d0”);
/* select the function */
asm (“ trap#15”);
/* make the call */
asm (“ move.ld1,d0”);
/* put the character in d0 */
}
3.5.3
CHAR_PRESENT
This function (function code 0x0014) checks if an input character is present to receive. A
value of zero is returned in D0 when no character is present. A non-zero value in D0 means
a character is present.
Assembly example:
move.l
#$0014,d0
Select the function
trap
#15
Make the call, d0 contains the response (yes/no).
C example:
int board_char_present (void)
{
asm (“ move.l#0x0014,d0”);
/* select the function */
asm (“ trap#15”);
/* make the call */
}
Содержание M5271EVB
Страница 1: ...M5271EVBUM Rev 1 0 6 2004 M5271EVB User s Manual Supports Devices MCF5271 MCF5270 ...
Страница 8: ...8 M5271EVB User s Manual MOTOROLA CONTENTS Paragraph Number Title Page Number ...
Страница 37: ...Chapter 2 Initialization and Setup 2 7 Installation and Setup Figure 2 5 Jumper Locations ...
Страница 84: ...A 4 M5271EVB User s Manual MOTOROLA Troubleshooting Network Problems ...
Страница 85: ...MOTOROLA Appendix B Schematics B 1 Appendix B Schematics B 1 M5271EVB Schematics ...
Страница 86: ...B 2 M5271EVB User s Manual MOTOROLA M5271EVB Schematics ...
Страница 100: ...B 16 M5271EVB User s Manual MOTOROLA M5271EVB Schematics ...