* @(#)trap15.eq 1.5 2/23/87 * Note: * The M68340Bug User's Manual refers to this file as 340SCALL ********************************************* * TRAP15 Macro definition and call equates * ********************************************* * * Define the macro first * SYSCALL MACRO TRAP #15 CALL THE BUG TRAP DC.W \1 PASS THE USER ARGUMENT LIST ENDM * * Define the entry points * * Input functions .INCHR EQU $0000 Input character .INSTAT EQU $0001 Serial port status input .INLN EQU $0002 Input line (pointer/pointer format) .READSTR EQU $0003 Input string (pointer/count format) .READLN EQU $0004 Input line (pointer/count format) .CHKBRK EQU $0005 Check for break * Disk functions .DSKRD EQU $0010 Disk read .DSKWR EQU $0011 Disk write .DSKCFIG EQU $0012 Disk configure .DSKINIT EQU $0013 Disk initialize .DSKFMT EQU $0014 Disk format .DSKCTRL EQU $0015 Disk control * Output functions .OUTCHR EQU $0020 Output character .OUTSTR EQU $0021 Output string (pointer/pointer format) .OUTLN EQU $0022 Output line (pointer/pointer format) .WRITE EQU $0023 Output string (pointer/count format) .WRITELN EQU $0024 Output line (pointer/count format) .WRITDLN EQU $0025 Output line with data (pointer/count format) .PCRLF EQU $0026 Output carriage return and line feed .ERASLN EQU $0027 Erase line .WRITD EQU $0028 Output string with data (pointer/count format) .SNDBRK EQU $0029 Send BREAK * Timer functions .TM_INI EQU $0040 Timer initialization .TM_STR0 EQU $0041 Start timer at T=0 .TM_RD EQU $0042 Read timer .DELAY EQU $0043 Delay function * General functions .REDIR EQU $0060 Redirect I/O of a trap 15 function .REDIR_I EQU $0061 Redirect input .REDIR_O EQU $0062 Redirect output .RETURN EQU $0063 Return to 020 bug .BINDEC EQU $0064 Convert binary to decimal .SIOSTAT EQU $0065 Status of specified I/O port (input/output/error) .CHANGEV EQU $0067 Prompt & change caller's variable .STRCMP EQU $0068 Compare two strings in pointer/count format .MULU32 EQU $0069 32 bit unsigned multiply function .DIVU32 EQU $006A 32 bit unsigned divide function *