view lib/kreiderclib/realloc.as @ 2866:854ef52e512f lwtools-port

3rdparty/packages/arcadepak: Resolve ia.fnt copy conflict Smash and Thexter ship the same ia.fnt file so to avoid "file already exists" errors when copying these files to the disk image, use os9copy -r to overwrite.
author Tormod Volden <debian.tormod@gmail.com>
date Tue, 01 Oct 2013 00:04:17 +0200
parents 1647f1874cdf
children
line wrap: on
line source

* Disassembly by Os9disasm of realloc.r

 section code

realloc: pshs  d,y,u 
 ldd   10,s 
 std   ,s 
 lbsr  malloc 
 std   ,s 
 beq   L003d 
 cmpd  8,s 
 beq   L003d 
 ldu   8,s 
 beq   L003d 
 tfr   d,x 
 ldu   8,s 
 ldd   -2,u 
 subd  #1 
 lslb   
 rola   
 lslb   
 rola   
 cmpd  10,s 
 bls   L002a 
 ldd   10,s 
L002a tfr   d,y 
L002c ldd   ,u++ 
 std   ,x++ 
 leay  -2,y 
 bne   L002c 
 ldd   8,s 
 pshs  d 
 lbsr  free 
 puls  d 
L003d puls  d,y,u,pc 

 endsect