view lib/kreiderclib/strtok.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 strtok.r

 section bss

* Initialized Data (class G)
G0000 fcb $00 
 fcb $00 

 endsect  

 section code

strtok: clra   
 clrb   
 pshs  d,u 
 ldu   6,s 
 bne   L000e 
 ldu   G0000,y 
 beq   L003a 
L000e ldx   8,s 
 pshs  x 
 pshs  u 
 lbsr  strspn 
 leas  4,s 
 leau  d,u 
 ldb   ,u 
 beq   L003a 
 stu   ,s 
 ldx   8,s 
 pshs  x 
 pshs  u 
 lbsr  strpbrk 
 leas  4,s 
 std   G0000,y 
 beq   L003a 
 tfr   d,x 
 clr   ,x+ 
 stx   G0000,y 
L003a puls  d,u,pc 

 endsect