User Tools

Site Tools


x68000:trap_codes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
x68000:trap_codes [2017/08/14 12:38] neko68kx68000:trap_codes [2019/08/27 20:45] (current) – external edit 127.0.0.1
Line 6: Line 6:
 |2|〃(pcm8.x)| |2|〃(pcm8.x)|
 |3|〃(zmusic.x、zmsc3.x、middrv.r)| |3|〃(zmusic.x、zmsc3.x、middrv.r)|
-|4|〃(mxdrv.x、madrv.x、mld.x、mcdrv.x)|+|[[trap_codes#trap4|4]]|〃(mxdrv.x、madrv.x、mld.x、mcdrv.x)|
 |5|〃| |5|〃|
 |6|〃| |6|〃|
Line 12: Line 12:
 |8|Breakpoint(ROM Debugger)| |8|Breakpoint(ROM Debugger)|
 |9|〃 (db.x、scd.x)| |9|〃 (db.x、scd.x)|
-|10|Reset/power off handling| +|[[trap_codes#trap10|10]]|Reset/power off handling| 
-|11|BREAK key processing| +|[[trap_codes#trap11|11]]|BREAK key processing| 
-|12|COPY key processing| +|[[trap_codes#trap12|12]]|COPY key processing| 
-|13|CTRL+C processing| +|[[trap_codes#trap13|13]]|CTRL+C processing| 
-|14|Error handling| +|[[trap_codes#trap14|14]]|Error handling| 
-|15|IOCS call|+|[[trap_codes#trap15|15]]|IOCS call|
  
 +<BOOKMARK:trap4>
 +===trap #4 MXDRV===
 + Args d0.l = Command
 +
 +^Command^Name^Function^
 +|  0x00  |  UNLINK  | |
 +|  0x01  |  ERROR  | |
 +|  0x02  |  LOADMML  |Set MDX data \\ Args: \\ a1 = address \\ d1 = length|
 +|  0x03  |  LOADPCM  |Set PDX data \\ Args: \\ a1 = address \\ d1 = length|
 +|  0x04  |  M_PLAY  |Play with no muting. See 0x0F|
 +|  0x05  |  M_END  |Stop playback|
 +|  0x06  |  M_STOP  |Pause playback|
 +|  0x07  |  M_CONT  |Resume playback|
 +|  0x08  |  MMLNAME  |Get Title address|
 +|  0x09  |  PCMNAME  |Get PDX filename|
 +|  0x0A  |  VOLADD  | |
 +|  0x0B  |  PCMCUT  | |
 +|  0x0C  |  FADEOUT  |Fade out \\ Args: \\ d1 = speed|
 +|  0x0D  |  AMPLAY  |Set ignore keys \\ Args: \\ D1 = mask \\ Return: \\ d0 = old value|
 +|  0x0E  |  CHMASK  |Set channel mask|
 +|  0x0F  |  M_PLAY2  |Play with channel mute mask \\ Args: \\ d1 = mask (1 = mute)|
 +|  0x10  |  WORKS  |Get FM buffer address|
 +|  0x11  |  TIMSET  | |
 +|  0x12  |  M_STAT  |Get playing flags \\ Return: \\ d0 = flags|
 +|  0x13  |  KEYBCONT  | |
 +|  0x14  |  M_STAT2  | |
 +|  0x15  |  EXMODE  |(?) Dont check for Performance End command right after a loop end|
 +|  0x16  |  TRACEMODE  |Stop playback and disable timer writes depending \\ Args: \\ d1 = new value \\ Return: \\ d0 = old value|
 +|  0x17  |  TRACESTEP  | |
 +|  0x18  |  PCM4WORKS  |Get PCM buffer address|
 +|  0x19  |  EXCHWORKS  |(?)PCM Key On work|
 +|  0x1A  | | |
 +|  0x1B  | | |
 +|  0x1C  | | |
 +|  0x1D  | | |
 +|  0x1E  | | |
 +|  0x1F  | | |
 +
 +<BOOKMARK:trap10>
 ===trap #10 Reset/power off handling=== ===trap #10 Reset/power off handling===
  
Line 35: Line 74:
 It will be called after it ends. It will be called after it ends.
  
 +<BOOKMARK:trap11>
 ===trap #11 - BREAK key processing=== ===trap #11 - BREAK key processing===
  
Line 51: Line 91:
 a reentrant structure. a reentrant structure.
  
 +<BOOKMARK:trap12>
 ===trap #12 - COPY key handling=== ===trap #12 - COPY key handling===
  
Line 70: Line 111:
   * OPT.2 + COPY LF 〃   * OPT.2 + COPY LF 〃
  
 +<BOOKMARK:trap13>
 ===trap #13 - CTRL+C handling=== ===trap #13 - CTRL+C handling===
  
Line 78: Line 120:
 so they can be used by users. so they can be used by users.
  
 +<BOOKMARK:trap14>
 ===trap #14 - Error handling=== ===trap #14 - Error handling===
  
Line 94: Line 137:
 keyboard and sets d7.w to 1 (reexecution) or 2 (ignore) and keyboard and sets d7.w to 1 (reexecution) or 2 (ignore) and
 return. If abort is specified (will not return). return. If abort is specified (will not return).
- 
-Error number 
  
 ^Code^Description^Other info^ ^Code^Description^Other info^
Line 149: Line 190:
  
 If the low-order byte is 0 the user can specify the character string to be displayed. The address of the character string is passed in a5.l and the character string must not be more than the display witdh 52 digits. However, as the error code of the device driver, if the low byte (3rd byte from the head of the request header) is 0, it is handled as normal ternimation and it is impossible to pass the address of the character string, so this function can not be used. If the low-order byte is 0 the user can specify the character string to be displayed. The address of the character string is passed in a5.l and the character string must not be more than the display witdh 52 digits. However, as the error code of the device driver, if the low byte (3rd byte from the head of the request header) is 0, it is handled as normal ternimation and it is impossible to pass the address of the character string, so this function can not be used.
- + 
 +<BOOKMARK:trap15>
 ===trap #15 - IOCS processing=== ===trap #15 - IOCS processing===
  
x68000/trap_codes.1502678292.txt.gz · Last modified: 2019/08/27 20:44 (external edit)