Motorola M68CPU32BUG User Manual page 5

Debug monitor
Table of Contents

Advertisement

4.2.1.3
Disassembled Source Line .............................................................................. 4-4
4.2.1.4
Mnemonics and Delimiters ............................................................................. 4-5
4.2.1.5
Character Set ................................................................................................... 4-6
4.2.2
Addressing Modes.................................................................................................... 4-6
4.2.3
Define Constant Directive (DC.W) .......................................................................... 4-9
4.2.4
System Call Directive (SYSCALL) ....................................................................... 4-10
4.3 Entering and Modifying Source Program ......................................................................... 4-10
4.3.1
Executing the Assembler/Disassembler ................................................................. 4-11
4.3.2
Entering a Source Line ........................................................................................... 4-11
4.3.3
Entering Branch and Jump Addresses.................................................................... 4-12
4.3.4 Assembler Output/Program Listings ................................................................................ 4-12
5.1 Introduction......................................................................................................................... 5-1
5.1.1
Executing System Calls Through TRAP #15........................................................... 5-1
5.1.2
Input/Output String Formats..................................................................................... 5-2
5.2 System Call Routines.......................................................................................................... 5-2
5.2.1
Calculate BCD Equivalent Specified Binary Number (.BINDEC).......................... 5-4
5.2.2
Parse Value, Assign to Variable (.CHANGEV)....................................................... 5-5
5.2.3
Check for Break (.CHKBRK) .................................................................................. 5-7
5.2.4
Timer Delay Function (.DELAY)............................................................................. 5-8
5.2.5
Unsigned 32 x 32 Bit Divide (.DIVU32) ................................................................. 5-9
5.2.6
Erase Line (.ERASLN)........................................................................................... 5-10
5.2.7
Input Character Routine (.INCHR) ........................................................................ 5-11
5.2.8
Input Line Routine (.INLN).................................................................................... 5-12
5.2.9
Input Serial Port Status (.INSTAT)........................................................................ 5-13
5.2.10 Unsigned 32 x 32 Bit Multiply (.MULU32)........................................................... 5-14
5.2.11 Output Character Routine (.OUTCHR).................................................................. 5-15
5.2.12 Output String Using Pointers (.OUTLN/OUTSTR)............................................... 5-16
5.2.13 Print <CR><LF> (.PCRLF) ................................................................................... 5-17
5.2.14 Read Line to Fixed-Length Buffer (.READLN)..................................................... 5-18
5.2.15 Read String Into Variable-Length Buffer (.READSTR)........................................ 5-19
5.2.16 Return to CPU32Bug (.RETURN)......................................................................... 5-20
5.2.17 Send Break (.SNDBRK)......................................................................................... 5-21
5.2.18 Compare Two Strings (.STRCMP) ........................................................................ 5-22
5.2.19 Timer Initialization (.TM_INI)............................................................................... 5-23
5.2.20 Read Timer (.TM_RD)........................................................................................... 5-24
5.2.21 Start Timer at T=0 (.TM_STR0) ............................................................................ 5-25
5.2.22 Output String with Data (.WRITD/WRITLN) ....................................................... 5-27
M68CPU32BUG/D REV 1
TABLE OF CONTENTS
iii

Advertisement

Table of Contents
loading

Table of Contents