•  Back 
  •  Assembler 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : Pure Assembler Documentation
Author      : John Kormylo
Version     : PASM.HYP 1.0
Subject     : Documentation/Pure Assembler
Nodes       : 740
Index Size  : 20262
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : en
@default    : 
@help       : Help
@options    : +g -i -s +x +z -t4
@width      : 75
View Ref-File[ TRAP ]

TRAP #data

    Causes a TRAP exception (vector 32 + data).
    data = 0 to 15

    TRAP is used by Atari for ROM function calls:
      TRAP #1   ;GEMDOS
      TRAP #2   ;AES & VDI
      TRAP #13  ;BIOS
      TRAP #14  ;XBIOS
    Arguments are pushed onto the stack in cdecl fashion.
    A word function number is then pushed onto the stack.
    The TRAP is executed.

Sizes: Byte

CPUs: 01234

Flags: N=* Z=* V=0 C=0

68000 Time: 34 clocks


See also BKPT, ILLEGAL, RTE, TRAPcc, TRAPV