Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PSG_select  equ $FF8800
  2. PSG_write   equ $FF8802
  3.  
  4.     clr.l   -(sp)  
  5.     move.w  #$20,-(sp) 
  6.     trap    #1 
  7.     addq.l  #6,sp  
  8.     move.l  d0,old_ssp
  9. super
  10.     movea.l #PSG_select,a3
  11.     movea.l #PSG_write,a4
  12.  
  13.     move.b  #$0,(a3)
  14.     move.b  #%11101101,(a4)
  15.    
  16.     move.b  #$1,(a3)
  17.     move.b  #%1111,(a4)
  18.    
  19.     move.b  #$2,(a3)
  20.     move.b  #%00110111,(a4)
  21.  
  22.     move.b  #$3,(a3)
  23.     move.b  #%0011,(a4)
  24.  
  25.     move.b  #$7,(a3)
  26.     move.b  #%11011101,(a4)
  27.    
  28.     move.b  #$8,(a3)
  29.     move.b  #%1011,(a4)
  30.    
  31.     move.b  #$9,(a3)
  32.     move.b  #%1001,(a4)
  33.  
  34.     move.b  #$b,(a3)
  35.     move.b  #%01001001,(a4)
  36.    
  37.     move.l  #QuitMsg,-(sp)
  38.     move.w  #$09,-(sp)
  39.     trap    #1
  40.     addq.l  #6,sp
  41.  
  42.     move.w  #$01,-(sp)
  43.     trap    #1
  44.     addq.l  #2,sp
  45.  
  46.     move.l  old_ssp(pc),-(sp)  
  47.     move    #$20,-(sp)     
  48.     trap    #1
  49.     addq.l  #6,sp
  50.  
  51. old_ssp ds.l    1
  52. QuitMsg dc.b    13,10,"Press a key to exit",13,10,0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement