Skip to content

Instantly share code, notes, and snippets.

@Godzil
Created June 3, 2017 14:12
Show Gist options
  • Save Godzil/137df6e0732cb37fb4fac1096701f1fb to your computer and use it in GitHub Desktop.
Save Godzil/137df6e0732cb37fb4fac1096701f1fb to your computer and use it in GitHub Desktop.
00000000 loc_0:
00000000 bsr.s loc_10+1
00000000 ; ---------------------------------------------------------------------------
00000002 dc.b 1
00000003 dc.b 1
00000004 dc.b $43 ; C
00000005 dc.b $76 ; v
00000006 dc.b $73 ; s
00000007 dc.b $6C ; l
00000008 dc.b 4
00000009 dc.b $E8 ; Þ
0000000A dc.b 0
0000000B dc.b 0
0000000C dc.b 0
0000000D dc.b 0
0000000E dc.b 0
0000000F dc.b 0
00000010 ; ---------------------------------------------------------------------------
00000010
00000010 loc_10:
00000010 lea loc_0,a0
00000014 nop
00000016 nop
00000018 bra.w *+4
0000001C ; ---------------------------------------------------------------------------
0000001C
0000001C loc_1C:
0000001C link a6,#0
00000020 tst.w 8(a6)
00000024 beq.s loc_32
00000026 clr.w -(sp)
00000028 move.w 8(a6),-(sp)
0000002C jsr Close
00000030 addq.l #2,sp
00000032
00000032 loc_32:
00000032 unlk a6
00000034 rts
00000036 Close:
00000036
00000036 arg_0 = 8
00000036 arg_2 = $A
00000036
00000036 link a6,#-$32
0000003A movea.l sp,a0
0000003C move.w arg_0(a6),$18(a0)
00000042
00000042 loc_42:
00000042 _Close
00000044 move.w d0,arg_2(a6)
00000048 unlk a6
0000004A movea.l (sp)+,a0
0000004C addq.l #2,sp
0000004E jmp (a0)
0000004E ; End of function Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment