TABLE OF CONTENTS
M68CPU32BUG/D REV 1
iii
CHAPTER 4 ASSEMBLER/DISASSEMBLER (continued)
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
CHAPTER 5 SYSTEM CALLS
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
5.2.23 Output String Using Character Count (.WRITE/WRITELN)................................ 5-29
Содержание M68CPU32BUG
Страница 16: ...GENERAL INFORMATION M68CPU32BUG D REV 1 1 8 ...
Страница 30: ...DEBUG MONITOR DESCRIPTION M68CPU32BUG D REV 1 2 14 ...
Страница 102: ...DEBUG MONITOR COMMANDS M68CPU32BUG D REV 1 3 72 ...
Страница 168: ...DIAGNOSTIC FIRMWARE GUIDE M68CPU32BUG D REV 1 6 24 ...