Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         section text
  2.  
  3.         move.l  4(sp),a5            ;Store basepage addr
  4.         move.l  $0c(a5),d0          ;Text
  5.         add.l   $14(a5),d0          ;Data
  6.         add.l   $1c(a5),d0          ;BSS
  7.         add.l   #$100,d0            ;Basepage
  8.         add.l   #$1000,d0           ;Stack
  9.         move.l  a5,d1               ;Basepage
  10.         add.l   d0,d1               ;End
  11.         and.l   #-2,d1              ;Even
  12.         move.l  d1,sp               ;Stackaddr
  13.  
  14.         move.l  d0,-(sp)            ;mshrink()
  15.         move.l  a5,-(sp)
  16.         move.w  d0,-(sp)
  17.         move.w  #$4a,-(sp)
  18.         trap    #1
  19.         lea 12(sp),sp
  20.  
  21.  
  22.         move.w  #-1,-(sp)           ;VsetMode() get current mode in d0
  23.         move.w  #$58,-(sp)
  24.         trap    #14
  25.         addq.l  #4,sp
  26.  
  27.         bset    #5,d0               ;Set PAL flag in modecode
  28.  
  29.         move.w  d0,-(sp)            ;VsetMode() set same screenmode with PAL flag set
  30.         move.w  #$58,-(sp)
  31.         trap    #14
  32.         addq.l  #4,sp
  33.  
  34.         clr.w   -(sp)
  35.         trap    #1
  36.  
  37.         end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement